GET
/
zone
/
route_ips
curl --request GET \
  --url https://api.brightdata.com/zone/route_ips \
  --header 'Authorization: Bearer <token>'
[
  {
    "ip": "10.0.0.0",
    "country": "us"
  },
  {
    "ip": "1.1.1.1",
    "country": "gb"
  },
  {
    "ip": "1.1.2.2",
    "country": "hk"
  }
]

Paste your API token to the authorization field. To get a token, Create an account and learn how to generate a token

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

zone
string
required

Zone

country
string

2-letter Country code

list_countries
boolean

Return JSON array of [{ip, country},..] instead of plain list of IPs

Response

200 - application/json
Successful response with plain IPs list separated by new line, or JSON array of `[{ip, country},..]` in case `list_countries=true`

Return JSON array of [{ip, country},..] when list_countries=true

Example:

[
 {"ip": "1.1.1.1", "country": "us"},
 {"ip": "1.1.2.2", "country": "hk"},
]
ip
string

IP address

Example:

"1.1.1.1"

country
string

2-letter Country code

Example:

"us"