List rotating proxy locations for a proxy type
curl --request GET \
--url https://api.floppydata.net/v2/proxy/rotating/locations \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.floppydata.net/v2/proxy/rotating/locations"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.floppydata.net/v2/proxy/rotating/locations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"type": "residential",
"items": [
{
"name": "United States",
"countryCode": "US",
"cities": [
"New York",
"Los Angeles"
],
"states": [
"california",
"newyork"
]
}
]
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters.",
"details": {
"issues": [
{
"path": "country",
"code": "invalid_format",
"message": "Expected a 2-letter country code."
}
]
}
}
}{
"error": {
"code": "unauthorized",
"message": "Unauthorized",
"details": {}
}
}{
"error": {
"code": "insufficient_balance",
"message": "Insufficient proxy traffic balance.",
"details": {}
}
}{
"error": {
"code": "forbidden",
"message": "Forbidden",
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Rotating proxy credential was not found.",
"details": {}
}
}{
"error": {
"code": "account_not_configured",
"message": "Account is not configured for proxy products.",
"details": {}
}
}{
"error": {
"code": "internal_error",
"message": "Internal Server Error",
"details": {}
}
}{
"error": {
"code": "upstream_error",
"message": "Failed to fetch data from an upstream service.",
"details": {
"upstreamStatus": 503
}
}
}Rotating
Locations
Returns supported rotating proxy countries with static country-level cities and state/subdivision lists. Cities are not nested under states. Use the returned city or state strings directly in buildRotatingProxyConnection; state takes precedence over city when both are supplied.
GET
https://api.floppydata.net
/
v2
/
proxy
/
rotating
/
locations
List rotating proxy locations for a proxy type
curl --request GET \
--url https://api.floppydata.net/v2/proxy/rotating/locations \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.floppydata.net/v2/proxy/rotating/locations"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.floppydata.net/v2/proxy/rotating/locations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"type": "residential",
"items": [
{
"name": "United States",
"countryCode": "US",
"cities": [
"New York",
"Los Angeles"
],
"states": [
"california",
"newyork"
]
}
]
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters.",
"details": {
"issues": [
{
"path": "country",
"code": "invalid_format",
"message": "Expected a 2-letter country code."
}
]
}
}
}{
"error": {
"code": "unauthorized",
"message": "Unauthorized",
"details": {}
}
}{
"error": {
"code": "insufficient_balance",
"message": "Insufficient proxy traffic balance.",
"details": {}
}
}{
"error": {
"code": "forbidden",
"message": "Forbidden",
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Rotating proxy credential was not found.",
"details": {}
}
}{
"error": {
"code": "account_not_configured",
"message": "Account is not configured for proxy products.",
"details": {}
}
}{
"error": {
"code": "internal_error",
"message": "Internal Server Error",
"details": {}
}
}{
"error": {
"code": "upstream_error",
"message": "Failed to fetch data from an upstream service.",
"details": {
"upstreamStatus": 503
}
}
}Authorizations
Client API key for the authenticated account.
Query Parameters
Proxy type to list locations for.
Available options:
residential, mobile, datacenter Example:
"residential"
Response
Available rotating proxy locations.
Was this page helpful?