Update Browser Proxy
PATCH
/
browsers
/
{session_id}
/
proxy
Update Browser Proxy
const options = {
method: 'PATCH',
headers: {'X-Browser-Use-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
country: '<string>',
target: '<string>',
rotate: true,
customProxy: {
host: '<string>',
port: 32768,
username: '<string>',
password: '<string>',
ignoreCertErrors: false,
caBundle: '<string>',
caBundleUrl: '<string>'
}
})
};
fetch('https://api.browser-use.com/api/v2/browsers/{session_id}/proxy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://api.browser-use.com/api/v2/browsers/{session_id}/proxy \
--header 'Content-Type: application/json' \
--header 'X-Browser-Use-API-Key: <api-key>' \
--data '
{
"country": "<string>",
"target": "<string>",
"rotate": true,
"customProxy": {
"host": "<string>",
"port": 32768,
"username": "<string>",
"password": "<string>",
"ignoreCertErrors": false,
"caBundle": "<string>",
"caBundleUrl": "<string>"
}
}
'import requests
url = "https://api.browser-use.com/api/v2/browsers/{session_id}/proxy"
payload = {
"country": "<string>",
"target": "<string>",
"rotate": True,
"customProxy": {
"host": "<string>",
"port": 32768,
"username": "<string>",
"password": "<string>",
"ignoreCertErrors": False,
"caBundle": "<string>",
"caBundleUrl": "<string>"
}
}
headers = {
"X-Browser-Use-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"mode": "managed",
"country": "<string>",
"exitIp": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Path Parameters
Body
application/json
Was this page helpful?
⌘I
Update Browser Proxy
const options = {
method: 'PATCH',
headers: {'X-Browser-Use-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
country: '<string>',
target: '<string>',
rotate: true,
customProxy: {
host: '<string>',
port: 32768,
username: '<string>',
password: '<string>',
ignoreCertErrors: false,
caBundle: '<string>',
caBundleUrl: '<string>'
}
})
};
fetch('https://api.browser-use.com/api/v2/browsers/{session_id}/proxy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://api.browser-use.com/api/v2/browsers/{session_id}/proxy \
--header 'Content-Type: application/json' \
--header 'X-Browser-Use-API-Key: <api-key>' \
--data '
{
"country": "<string>",
"target": "<string>",
"rotate": true,
"customProxy": {
"host": "<string>",
"port": 32768,
"username": "<string>",
"password": "<string>",
"ignoreCertErrors": false,
"caBundle": "<string>",
"caBundleUrl": "<string>"
}
}
'import requests
url = "https://api.browser-use.com/api/v2/browsers/{session_id}/proxy"
payload = {
"country": "<string>",
"target": "<string>",
"rotate": True,
"customProxy": {
"host": "<string>",
"port": 32768,
"username": "<string>",
"password": "<string>",
"ignoreCertErrors": False,
"caBundle": "<string>",
"caBundleUrl": "<string>"
}
}
headers = {
"X-Browser-Use-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"mode": "managed",
"country": "<string>",
"exitIp": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}