public apis
/
CategoriesMCPBlogRandomStar
Public APIs

A searchable directory of 2,000+ free public APIs, curated by the community and maintained with APILayer.

Powered byAPILayer

Popular

  • Weather APIs
  • Finance APIs
  • Crypto APIs
  • Geocoding APIs
  • Machine learning APIs
  • Games APIs

Directory

  • Categories
  • All APIs
  • MCP servers
  • FAQ
  • Stats
  • JSON API
  • llms.txt

APILayer

  • Browse the API suite ↗
  • Get a free API key ↗
  • APILayer blog ↗
  • Postman collection ↗
  • Discord community ↗

Project

  • public-apis on GitHub ↗
  • Contribute an API ↗
Public APIs · by APILayerData from public-apis (MIT)
  1. Home
  2. /Geocoding
  3. /CountryStateCity
Geocoding
CountryStateCity logo

CountryStateCity

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

CountryStateCity API is a free Geocoding API that requires apiKey authentication, is served over HTTPS and supports CORS, so it can be called from the browser.

Authentication
apiKey
HTTPS
Yes
CORS
Yes
Category
Geocoding
Visit documentation ↗countrystatecity.in

About CSC Database

250 countries, 5,300+ states and 150,000+ cities via REST API, free database downloads and offline packages. Free API tier available.

Provider
CSC Database
Website
countrystatecity.in ↗

Details from countrystatecity.in.

APILayer

Unified API suite · now live

Geocode an address, validate an email, track a flight or pull stock data with one account, one dashboard and one API key.

Get your free API key→Free tier on every API

CountryStateCity API alternatives

Country logo

Country

Get your visitor's country from their IP

No authHTTPSCORS
Ducks Unlimited logo

Ducks Unlimited

API explorer that gives a query URL with a JSON response of locations and cities

No authHTTPSNo CORS
CitySDK logo

CitySDK

Open APIs for select European cities

No authHTTPSCORS ?
GeoApi logo

GeoApi

French geographical data

No authHTTPSCORS ?
C

Cep.la

Brazil RESTful API to find information about streets, zip codes, neighborhoods, cities and states

No authNo HTTPSCORS ?
Geoapify logo

Geoapify

Forward and reverse geocoding, address autocomplete

apiKeyHTTPSCORS

CountryStateCity API FAQ

Who provides the CountryStateCity API?

The CountryStateCity API is provided by CSC Database (countrystatecity.in). 250 countries, 5,300+ states and 150,000+ cities via REST API, free database downloads and offline packages. Free API tier available.

Is the CountryStateCity API free?

Yes. The CountryStateCity API is listed in the Geocoding category of the public-apis directory, which only includes APIs that are free or have a free tier. Check its documentation for rate limits and paid plans.

Does the CountryStateCity API require an API key?

Yes. The CountryStateCity API uses apiKey authentication, so you need to register for credentials before making requests.

Can I call the CountryStateCity API from the browser?

Yes. The CountryStateCity API supports CORS, so front-end JavaScript can call it directly.

Does the CountryStateCity API support HTTPS?

Yes. The CountryStateCity API is served over HTTPS, so it's safe to use in production.