List states/regions of a country
Returns the distinct state, province or region names of one country, in alphabetical order. Use it to populate a state selector after a country is chosen. Requires a two-letter country code (case-insensitive). An unknown code returns an empty list. Read-only.
Subscribe on RapidAPIReturns the distinct state, province or region names of one country, in alphabetical order. Use it to populate a state selector after a country is chosen. Requires a two-letter country code (case-insensitive). An unknown code returns an empty list. Read-only.
country_code*stringTwo-letter ISO 3166-1 alpha-2 country code, case-insensitive (for example US or in).
^[A-Za-z]{2}$States/regions of the country, alphabetical (possibly none).
application/json- response
success*truetruedata*curl -X GET 'https://places-api-cities-states-regions-countries.p.rapidapi.com/places/v1/countries/US/states'{ "success": true, "data": { "country_code": "US", "states": [ { "name": "California" } ] }}List countries GET
Returns every country in the dataset once, with its two-letter code and name, in alphabetical order of name. Use it to populate a country selector, or to find a country code for other operations. Takes no input. Read-only.
Autocomplete place names GET
Returns cities, states/regions and countries whose name starts with the search text, for autocomplete fields. Matching is a case-insensitive prefix match on the place name; accents are significant. Results are ordered by name (an exact match comes first), then countries before states before cities. Duplicate records of the same place are returned once. Optionally filter by `type` and `country_code`. Returns an empty list when nothing matches. Read-only.