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
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
-
Last updated