Geocoding — entry 016 of 80

CountryStateCity

Verified Jul 2026

CountryStateCity's live REST API (api.countrystatecity.in/v1) returns JSON only, authenticated with an X-CSCAPI-KEY header, covering 250+ countries, 5,000+ states, and 150,000+ cities. The SQL/XML/YAML/CSV export formats advertised on the marketing site belong to a separate downloadable open-source database product, not the live API itself; the API has a free tier plus metered Personal/Professional/Startup/Business plans for higher volume.

countriesstatescitiesapi-keyfreemium
AuthenticationAPI KeySign up with the provider to obtain credentials.
HTTPSSupportedTraffic is encrypted in transit.
CORSEnabledCallable directly from browser JavaScript.
PricingFreemiumA usable free tier exists, with paid plans for more volume.
FormatsJSONResponses can be requested as JSON.

GreatAPIs Score

Score75out of 100
Authentication15/25API key required
Pricing17/20Freemium tier available
Docs14/20Documentation URL provided
Formats9/15Single response format
Freshness20/20Verified within 6 months

Embed this badge

Scored 75 on greatapis.com
<a href="https://greatapis.com/api/countrystatecity/"><img src="https://greatapis.com/badge/countrystatecity.svg" alt="Scored 75 on greatapis.com"></a>

Auth quickstart

  1. Sign up with the provider to get an API key.
  2. Send it on every request as a headerAuthorization: <key>
  3. The exact header isn't documented — Authorization is a common default; confirm in the provider's docs.
Stored keyNo key stored

Your key is stored only in this browser (localStorage) and sent directly to the API — never to greatapis.