Request URL: base/info/area (GET)
Endpoint Domain Name:
cdn.api.baishan.com
Endpoint Version:v2
Get the Country and Area List, aquire the code parameter corresponding to the country or region, which will be applied to the query_area parameter .
Note:Please request an API token from your account team.
Specify request parameters in the URL query strings, i.e. ?key1=value1&key2=value2.
curl -X GET "https://cdn.api.baishan.com/v2/base/info/area?token=xxx"
{
"code": 0,
"data": [
{
"id": "2",
"name": "United Arab Emirates",
"ename": "United Arab Emirates",
"code": "ae"
},
{
"id": "9",
"name": "Laos",
"ename": "Laos",
"code": "la"
},
...
]
}
HTTP/1.0 200 OK
Api-Id: 63832415
Content-Type: application/json; charset=utf-8
X-Ratelimit-Grad: minute
X-Ratelimit-Limit: 300
X-Ratelimit-Remaining: 299
X-Retry-After: 50
Error Code | Description |
---|---|
404 | Bad request URLs. |
401 | Authorization Error: Invalid token or lack of access. |
400 | Bad request parameters. |
200 | Success. |
5xx | Please contact your account team. |