Start a Chromium session
curl --request POST \
--url https://api.styne.ai/browsers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"region": "<string>",
"timeout": 123,
"idle_timeout_seconds": 123,
"secure": true,
"metadata": {},
"unblock": "<string>",
"captcha": "<string>",
"egress": "<string>",
"country": "<string>",
"proxy": "<unknown>",
"timezone": "<string>",
"locale": "<string>",
"profile": "<string>",
"fork": true,
"persist": true,
"recording": true,
"downloads": true,
"stealth": true,
"extensions": "<array>"
}
'import requests
url = "https://api.styne.ai/browsers"
payload = {
"region": "<string>",
"timeout": 123,
"idle_timeout_seconds": 123,
"secure": True,
"metadata": {},
"unblock": "<string>",
"captcha": "<string>",
"egress": "<string>",
"country": "<string>",
"proxy": "<unknown>",
"timezone": "<string>",
"locale": "<string>",
"profile": "<string>",
"fork": True,
"persist": True,
"recording": True,
"downloads": True,
"stealth": True,
"extensions": "<array>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
region: '<string>',
timeout: 123,
idle_timeout_seconds: 123,
secure: true,
metadata: {},
unblock: '<string>',
captcha: '<string>',
egress: '<string>',
country: '<string>',
proxy: '<unknown>',
timezone: '<string>',
locale: '<string>',
profile: '<string>',
fork: true,
persist: true,
recording: true,
downloads: true,
stealth: true,
extensions: '<array>'
})
};
fetch('https://api.styne.ai/browsers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>",
"origin": "<string>",
"request_id": "<string>"
}Start a Chromium session
POST
/
browsers
Start a Chromium session
curl --request POST \
--url https://api.styne.ai/browsers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"region": "<string>",
"timeout": 123,
"idle_timeout_seconds": 123,
"secure": true,
"metadata": {},
"unblock": "<string>",
"captcha": "<string>",
"egress": "<string>",
"country": "<string>",
"proxy": "<unknown>",
"timezone": "<string>",
"locale": "<string>",
"profile": "<string>",
"fork": true,
"persist": true,
"recording": true,
"downloads": true,
"stealth": true,
"extensions": "<array>"
}
'import requests
url = "https://api.styne.ai/browsers"
payload = {
"region": "<string>",
"timeout": 123,
"idle_timeout_seconds": 123,
"secure": True,
"metadata": {},
"unblock": "<string>",
"captcha": "<string>",
"egress": "<string>",
"country": "<string>",
"proxy": "<unknown>",
"timezone": "<string>",
"locale": "<string>",
"profile": "<string>",
"fork": True,
"persist": True,
"recording": True,
"downloads": True,
"stealth": True,
"extensions": "<array>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
region: '<string>',
timeout: 123,
idle_timeout_seconds: 123,
secure: true,
metadata: {},
unblock: '<string>',
captcha: '<string>',
egress: '<string>',
country: '<string>',
proxy: '<unknown>',
timezone: '<string>',
locale: '<string>',
profile: '<string>',
fork: true,
persist: true,
recording: true,
downloads: true,
stealth: true,
extensions: '<array>'
})
};
fetch('https://api.styne.ai/browsers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>",
"origin": "<string>",
"request_id": "<string>"
}Authorizations
Body
application/json
Start a browser session. Every field is optional.
Response
Success. The answer is described on https://docs.styne.ai/browsers.