Skip to main content
GET
/
v1
/
rotating
/
locations
Available locations
curl --request GET \
  --url https://api.example.com/v1/rotating/locations \
  --header 'X-Api-Key: <api-key>'
[
  {
    "name": "United States",
    "countryCode": "US",
    "cities": [
      "New York",
      "Los Angeles",
      "Chicago"
    ]
  }
]

Authorizations

X-Api-Key
string
header
required

Response

200 - application/json

Successful response

name
string
required

Full name of the country

Example:

"United States"

countryCode
string
required

2-letter country code (ISO 3166-1 alpha-2)

Required string length: 2
Example:

"US"

cities
string[]
required

Array of available cities in this country

Example:
["New York", "Los Angeles", "Chicago"]