Get City List

Basic Information

Interface Description: Get the list of cities supported by Thordata Residential Proxies or Unlimited Proxy Servers through the interface

Interface URL: https://api.thordata.com/api/locations/cities

Request Method: GET

Request parameters

Params:

Parameter name
Type
Required
Describe

token

string

Yes

Please log in to the Dashboard-MENU-My Account to view your token parameter value

key

string

Yes

Please log in to the Dashboard-MENU-My Account to view your key parameter value

proxy_type

number

Yes

Select the proxy type: 1 is Residential Proxies, 2 is Unlimited Proxy servers (default is 1)

country_code

string

Yes

Enter the country code to get the city list of the corresponding country

state_code

string

No

Enter a state code to get a list of cities in the corresponding state

Response example

{
    "code": 200,
    "data": [
        {
            "country_code": "US",
            "country_name": "United States",
            "state_code": "alabama",
            "state_name": "Alabama",
            "city_code": "alabaster",
            "city_name": "Alabaster"
        },
        {
            "country_code": "US",
            "country_name": "United States",
            "state_code": "alabama",
            "state_name": "Alabama",
            "city_code": "alexandercity",
            "city_name": "Alexander City"
        },
        {
            "country_code": "US",
            "country_name": "United States",
            "state_code": "alabama",
            "state_name": "Alabama",
            "city_code": "andalusia",
            "city_name": "Andalusia"
        },
    ],
    "msg": "ok"
}

If the returned code value is not 200, please check the error code description list and modify it.

Parameter name
Type
Required
Describe

code

number

No

-

data

object

No

-

country_code

string

Yes

Country code

country_name

string

Yes

Country name

state_code

string

Yes

State code

state_name

string

Yes

State name

city_code

string

Yes

City code

city_name

string

Yes

City name

msg

string

No

-

Last updated