Geographic reference data for developers

Location data.
Clearly connected.

Countries, regions and cities in one predictable JSON structure.

Consistent JSON Stable relationships Built for developers
Country State API layered map logo
108countries
1,832regions & provinces
24,760city records

Current dataset coverage
Coverage varies by country and region.

THE SIMPLE PATH

One hierarchy.
Everywhere you need it.

Move from a country to its regions, then to its cities, with predictable endpoints and relationships that stay intact.

01CountryChoose a country
02State / provinceFind a region
03City / townPower your UI
04ShipBuild globally
QUICK START

Designed to feel familiar.

Make your first request in seconds. No guesswork and no tangled data model.

Create your Rook ID
GET /locations/countries
curl https://fetch.countrystateapi.com/locations/countries
200 OK
{
  "success": true,
  "countries": [
    { "code": "US", "name": "United States" },
    { "code": "IN", "name": "India" }
  ]
}
GET/locations/countriesList every supported country
GET/locations/states/:countryCodeGet regions for a country
GET/locations/cities/:countryCode/:stateNameGet cities for a region
COMMON QUESTIONS

Country State API answers.

Clear facts about the product, current coverage and developer use cases.

What is Country State API?

Country State API provides structured country, region and city reference data for software applications.

How many geographic records are currently available?

The current dataset contains 108 countries, 1,832 states, provinces or regions, and 24,760 city and town records.

What can developers build with the API?

Developers can power registration forms, address forms, customer profiles, booking systems, ecommerce experiences and geographic selectors.

What response format does the API use?

The API returns predictable JSON responses designed for web, mobile and business applications.

THE ROOK ECOSYSTEM

Discover everything
Rook is building.

Visit Rook