Geocoding — entry 016 of 80
CountryStateCity
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.
GreatAPIs Score
Auth quickstart
- Get a key at the provider
- Send it on every request as a header
Authorization: <key> - The exact header isn't documented — Authorization is a common default; confirm in the provider's docs.
Your key is stored only in this browser (localStorage) and sent directly to the API — never to greatapis.
Developer reference
100 requests/day free (3,000/month) on Community plan; 300/day (9,000/month) on Starter ($5/mo); 1,000/day (30,000/month) on Supporter ($9/mo); 3,300/day (100,000/month) on Professional ($29/mo)