獲取州列表
基礎信息
接口說明:通過接口獲取Thordata住宅代理或無限代理伺服器支持的州列表
請求地址:https://openapi.thordata.com/api/locations/states
請求方式:GET
請求參數
Params:
參數名稱
參數类型
是否必須
描述
proxy_type
number
必須
選擇代理類型:1是住宅代理,2是無限代理伺服器(默認為1)
country_code
string
必須
輸入國家代碼,獲取對應國家的州列表
響應示例
{
"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"
}参数名称
参数类型
是否必須
描述
code
number
非必須
-
data
object
非必須
-
country_code
string
必須
國家代碼
country_name
string
必須
國家名稱
state_code
string
必須
州代碼
state_name
string
必須
州名稱
msg
string
非必須
-
Last updated