Interface documentation
English
English
  • Public API
    • Introduce
      • Get token and key
    • Account
      • Query Traffic Balance
      • Query Wallet Balance
      • Query Traffic Usage Records
    • Location
      • Get Country List
      • Get State List
      • Get City List
      • Get ASN List
    • Proxy Users
      • Get Proxy Users List
      • Add Proxy Users
      • Update Proxy Users Information
      • Delete Proxy Users
      • Query Traffic Usage Records
    • Whitelist IPs
      • Get Whitelist IPs List
      • Add Whitelist IP
      • Delete whitelist IP
    • ISP / Datacenter Proxies
      • Get Proxy IP List
      • Query Proxy IP Expiration Time
    • Unlimited Proxy Servers
      • Get Unlimited Proxy Server List
      • Restart Unlimited Proxy Server
      • Get Unlimited Proxy Server Monitor
      • Unlimited Proxy Server Renewal
      • Unlimited Proxy Server Upgrades
    • API Extract Links
      • Residential Proxies
      • Unlimited Proxy Servers
  • CDK
    • Create CDK
    • Get CDK List
    • Revoke CDK
    • Get CDK Details
  • Error Code
    • Error code description
Powered by GitBook
On this page
  • Basic Information
  • Request parameters
  • Response example
  1. Public API
  2. Location

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

key

string

Yes

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"
}
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

-

PreviousGet State ListNextGet ASN List

Last updated 2 months ago

Please log in to the to view your token parameter value

Please log in to the to view your key parameter value

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

error code description list
Dashboard-MENU-My Account
Dashboard-MENU-My Account