Cities by State
Country Data API provides detailed information about +200 different countries
HTTP GET
https://api.countrydataapi.com/v1/cities/state
Returns a list of all cities within a state.
Each 5 cities returned will consume 1 token.
Query Params
Parameter | Type | Description |
---|---|---|
apikey | required, token | Authentication key for the account |
state | required, id or string | ID or name of the state |
limitToken | optional, number | 1000 (default). Maximum number of tokens you want to spend on this request |
lang | optional, lang | en (default). Expected language of the response |
Example Response
[
{
id:"d54ba796-1136-4776-9776-537fd5a857c9",
lang: "en",
city_name: "Bala Morghab"
}
]