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})
};
fetch('https://api.browser-use.com/api/v4/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/v4/browsers/{session_id}/proxy \
--header 'Content-Type: application/json' \
--header 'X-Browser-Use-API-Key: <api-key>' \
--data '
{
"country": "<string>",
"target": "<string>",
"rotate": true
}
'import requests
url = "https://api.browser-use.com/api/v4/browsers/{session_id}/proxy"
payload = {
"country": "<string>",
"target": "<string>",
"rotate": True
}
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>"
}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})
};
fetch('https://api.browser-use.com/api/v4/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/v4/browsers/{session_id}/proxy \
--header 'Content-Type: application/json' \
--header 'X-Browser-Use-API-Key: <api-key>' \
--data '
{
"country": "<string>",
"target": "<string>",
"rotate": true
}
'import requests
url = "https://api.browser-use.com/api/v4/browsers/{session_id}/proxy"
payload = {
"country": "<string>",
"target": "<string>",
"rotate": True
}
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>"
}