Skip to Content
APIGeineAPIGeine

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 RapidAPI
GET
/places/v1/countries/{country_code}/states

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.

Path Parameters

country_code*string

Two-letter ISO 3166-1 alpha-2 country code, case-insensitive (for example US or in).

Match^[A-Za-z]{2}$

Response Body

States/regions of the country, alphabetical (possibly none).

application/json
  1. response
success*true
Value intrue
data*
Example Request
curl -X GET 'https://places-api-cities-states-regions-countries.p.rapidapi.com/places/v1/countries/US/states'
Example Response
{  "success": true,  "data": {    "country_code": "US",    "states": [      {        "name": "California"      }    ]  }}