CountryStateCity

World countries, states, regions, provinces, cities & towns in JSON, SQL, XML, YAML, & CSV format

In-detail ad — connect AdSense to monetize

How to use CountryStateCity

  1. Open the documentation linked above and request any required API key.
  2. Choose a client library that matches the API (REST, GraphQL, or SDK).
  3. Store your API key in environment variables, never in source files.
  4. Deploy your integration to a host such as Vercel or Render.

Related Geocoding APIs