Get Residential balance and credentials
curl --request GET \
--url https://app.proxy-layer.com/api/v1/residential \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.proxy-layer.com/api/v1/residential', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.proxy-layer.com/api/v1/residential"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.proxy-layer.com/api/v1/residential', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"trafficBalance": {
"balanceMb": 10240,
"isStale": false
},
"proxyCredentials": {
"providerSubuserId": 123456,
"host": "gw.proxy-layer.com",
"login": "pl-user",
"password": "example-secret",
"stickyRangeStart": 10000,
"stickyRangeEnd": 30000,
"rotatingPort": null
}
}Manage Proxies
Get Traffic Balance
Returns remaining Residential traffic and gateway credentials.
GET
/
api
/
v1
/
residential
Get Residential balance and credentials
curl --request GET \
--url https://app.proxy-layer.com/api/v1/residential \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.proxy-layer.com/api/v1/residential', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.proxy-layer.com/api/v1/residential"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.proxy-layer.com/api/v1/residential', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"trafficBalance": {
"balanceMb": 10240,
"isStale": false
},
"proxyCredentials": {
"providerSubuserId": 123456,
"host": "gw.proxy-layer.com",
"login": "pl-user",
"password": "example-secret",
"stickyRangeStart": 10000,
"stickyRangeEnd": 30000,
"rotatingPort": null
}
}Authorizations
bearerAuthoauth2