Browser Sessions
Start Browser Session
Browser Sessions
Start Browser Session
Allocates a new browser session for the user, with optional configurations for ad-blocking, captcha solving, proxy usage, and idle timeout.
POST
/
v1
/
sessions
curl --request POST \
--url https://api.anchorbrowser.io/v1/sessions \
--header 'Content-Type: application/json' \
--header 'anchor-api-key: <api-key>' \
--data '{
"session": {
"recording": {
"active": false
},
"proxy": {
"type": "anchor_residential",
"active": false
},
"timeout": {
"max_duration": 10,
"idle_timeout": 3
},
"live_view": {
"read_only": false
}
},
"browser": {
"profile": {
"name": "my-profile",
"persist": true,
"store_cache": true
},
"adblock": {
"active": false
},
"popup_blocker": {
"active": false
},
"captcha_solver": {
"active": false
},
"headless": {
"active": true
},
"viewport": {
"width": 1440,
"height": 900
}
}
}'
{
"data": {
"id": "<string>",
"cdp_url": "<string>",
"live_view_url": "<string>"
}
}
Authorizations
API key passed in the header
Body
application/json
Response
200
application/json
Successfully returned a browser object
The response is of type object
.
curl --request POST \
--url https://api.anchorbrowser.io/v1/sessions \
--header 'Content-Type: application/json' \
--header 'anchor-api-key: <api-key>' \
--data '{
"session": {
"recording": {
"active": false
},
"proxy": {
"type": "anchor_residential",
"active": false
},
"timeout": {
"max_duration": 10,
"idle_timeout": 3
},
"live_view": {
"read_only": false
}
},
"browser": {
"profile": {
"name": "my-profile",
"persist": true,
"store_cache": true
},
"adblock": {
"active": false
},
"popup_blocker": {
"active": false
},
"captcha_solver": {
"active": false
},
"headless": {
"active": true
},
"viewport": {
"width": 1440,
"height": 900
}
}
}'
{
"data": {
"id": "<string>",
"cdp_url": "<string>",
"live_view_url": "<string>"
}
}