Get State List

Basic Information

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

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

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

Response example

{
    "code": 200,
    "data": [
        {
            "country_code": "US",
            "country_name": "United States",
            "state_code": "alabama",
            "state_name": "Alabama"
        },
        {
            "country_code": "US",
            "country_name": "United States",
            "state_code": "alaska",
            "state_name": "Alaska"
        },
        {
            "country_code": "US",
            "country_name": "United States",
            "state_code": "arizona",
            "state_name": "Arizona"
        }
    ],
    "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

msg

string

No

-

Last updated