List supported states in a country
GET {{urlExternalAPI}}v2/states?country={{COUNTRY_NAME}}&key={{YOUR_API_KEY}}
Return an array of all supported states*, inside a specified country.
* states with no active stations will not be returned
Each state object contains its English name
state
(requested by other endpoints)
Parameters
-
country
: country's English name, can be found using the respective listing endpoint.
Request Params
| Key | Datatype | Required | Description |
| country
| string | | |
| key
| string | | |
HEADERS
| Key | Datatype | Required | Description |
RESPONSES
status: OK
{"status":"success","data":[{"state":"Anhui"},{"state":"Beijing"},{"state":"Chongqing"},{"state":"Fujian"},{"state":"Gansu"},{"state":"Guangdong"},{"state":"Guangxi"},{"state":"Guizhou"},{"state":"Hainan"},{"state":"Hebei"},{"state":"Heilongjiang"},{"state":"Henan"},{"state":"Hong Kong"},{"state":"Hubei"},{"state":"Hunan"},{"state":"Jiangsu"},{"state":"Jiangxi"},{"state":"Jilin"},{"state":"Liaoning"},{"state":"Neimenggu"},{"state":"Ningxia"},{"state":"Qinghai"},{"state":"Shaanxi"},{"state":"Shandong"},{"state":"Shanghai"},{"state":"Shanxi"},{"state":"Sichuan"},{"state":"Tianjin"},{"state":"Xinjiang"},{"state":"Xizang (Tibet)"},{"state":"Yunnan"},{"state":"Zhejiang"}]}