Add GoLogin Proxy
Add high-quality GoLogin proxies to a profile using a country code (e.g., 'us').
await GL.addGologinProxyToProfile(profileId, 'us')
Set Custom Proxy
Manually set a proxy for a profile using an object containing mode, host, port, username, and password.
await GL.changeProfileProxy(profileId, { mode: 'http', host: '...', ... })
Add Cookies
Import cookies into a profile before starting the browser. The array should contain objects with name, value, domain, path, expirationDate, httpOnly, and secure fields.
Update User Agent
Keep user agents up to date across multiple profiles.
await GL.updateUserAgentToLatestBrowser([profileId1, profileId2], 'workspaceId')
// Add GoLogin Proxy
await GL.addGologinProxyToProfile("profileId", "us");
// Add Custom Cookies
await GL.addCookiesToProfile("profileId", [
{
"name": "session_id",
"value": "abc123",
"domain": "example.com",
"path": "/",
"expirationDate": 1719161018.307793,
"httpOnly": true,
"secure": true
}
]);
// Change to a specific proxy
await GL.changeProfileProxy("profileId", {
"mode": "http",
"host": "somehost.com",
"port": 109,
"username": "someusername",
"password": "somepassword"
});