Country State City API website screenshot

Country State City API

The Country State City API is a global geographic reference dataset and REST API published by countrystatecity.in. It exposes 247+ countries, 5,000+ states / provinces, and 150,000+ cities with ISO 3166 codes, phone codes, capitals, currencies, native names, regions, sub-regions, coordinates, time zones, and flag emoji. The data is also distributed as downloadable JSON, SQL, PostgreSQL, SQLite, XML, YAML, and CSV bundles for offline use, and the live API is authenticated with the X-CSCAPI-KEY header from a free developer plan.

Country State City API publishes 3 APIs on the APIs.io network: Cities API, Countries API, and States API. Tagged areas include Capitals, Cities, Countries, Currency, and Geography.

The Country State City API catalog on APIs.io includes 1 Spectral governance ruleset.

Country State City API’s developer surface includes authentication, documentation, developer console, pricing, and 16 more developer resources.

42.0/100 developing ▬ flat Agent 23/100 agent aware saas · ODbL-1.0 Full breakdown ↓
scored 2026-09-08 · rubric v0.20.0
AccessFreemiumSelf serve⚡ Free to try
1 APIs
CapitalsCitiesCountriesCurrencyGeographyGeolocationISO 3166JSONPhone CodesProvincesReference DataRegionsStatesTimezones

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-09-08 · rubric v0.20.0
Create-or-Update Ergonomics does not apply to this provider. The published contracts declare no write operations, and a read-only API cannot create-or-update. The facet is excluded from this provider's denominator entirely — not scored zero. A reference or data API is not deficient for being unable to upsert.
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. Every facet and dimension name above is a link: it opens that measurement's own page — what it means, the exact checks that feed it, how the whole catalog distributes on it, and the providers at the top of it. This rating is computed from github.com/api-evangelist/country-state-city-api: open an issue to ask a question, or submit a pull request to add artifacts. Submit an artifact on GitHub — free → Manage your own listing — the Influence plan, $499/mo →

APIs 3

Individual APIs this provider publishes, each with its own machine-readable definition.

Country State City API Cities API

City reference data with coordinates and time zones, scoped by country and state.

Country State City API Countries API

Country reference data including ISO codes, currencies, phone codes, and regions.

Country State City API States API

State, province, and region reference data scoped by country.

Open Collections 5

Open, tool-agnostic API collections (OpenAPI-derived and Bruno).

API Collection

OPEN COLLECTION

Country State City API

OPEN COLLECTION

Pricing Plans 1

Published pricing tiers and plan structures.

Rate Limits 1

Documented rate limits and quota policies.

FinOps 1

Cost, billing, and metering signals for API financial operations.

Spectral Rules 1

Spectral governance rulesets for linting and validating these APIs.

Country State City API API Rules

7 rules · 4 errors 3 warnings

SPECTRAL

Security Posture 2

Authentication, domain security, vulnerability disclosure, and trust-center signals.

Country State City Api Authentication

apiKey · 1 scheme

SECURITY

Country State City Api Domain Security

TLSv1.3 · HSTS · DMARC

SECURITY

Agentic Access 1

Recommended x-agentic-access execution contracts for AI agents.

Country State City Api Agentic Access

9 operations

9 operations · 0 acting

AGENTIC

Resources

Get Started 1

Portal, sign-up, and the first successful call

Documentation 2

Reference material describing how the API behaves

Agent Surfaces 2

MCP servers, agent skills, and machine-readable catalogs

Design & Contract 1

Pagination, idempotency, versioning, errors, and events

Build 2

SDKs, sample code, and the tooling you integrate with

Access & Security 2

Authentication, authorization, and security posture

Operate 3

Status, limits, changes, and where to get help

Commercial 4

Pricing, plans, and the legal terms of use

Company 1

The organization behind the API

Other 2

Properties that don't map to a standard resource type

Source (apis.yml)

apis.yml Raw ↑
aid: country-state-city-api
name: Country State City API
kind: company
description: The Country State City API is a global geographic reference dataset and REST API published by countrystatecity.in.
  It exposes 247+ countries, 5,000+ states / provinces, and 150,000+ cities with ISO 3166 codes, phone codes, capitals, currencies,
  native names, regions, sub-regions, coordinates, time zones, and flag emoji. The data is also distributed as downloadable
  JSON, SQL, PostgreSQL, SQLite, XML, YAML, and CSV bundles for offline use, and the live API is authenticated with the X-CSCAPI-KEY
  header from a free developer plan.
url: https://raw.githubusercontent.com/api-evangelist/country-state-city-api/refs/heads/main/apis.yml
deliveryModel:
  model: saas
  license: ODbL-1.0
  open_source: false
  commercial: true
  callable_host: true
  label: Hosted service · you call their endpoint
  confidence: high
  source:
  - license
  - openapi
  - pricing
  generated: '2026-08-28'
  method: derived
accessModel:
  pricing: freemium
  onboarding: self-serve
  trial: false
  try_now: true
  public: false
  label: Freemium · Self-serve signup
  confidence: medium
  source:
  - plans
  - authentication
  - security
  generated: '2026-09-03'
  method: derived
image: https://kinlane-productions2.s3.amazonaws.com/apis-json-icons/country-state-city-api.png
type: Index
access: Public
position: Producing
tags:
- Capitals
- Cities
- Countries
- Currency
- Geography
- Geolocation
- ISO 3166
- JSON
- Phone Codes
- Provinces
- Reference Data
- Regions
- States
- Timezones
tags_raw:
- Capitals
- Cities
- Countries
- Currencies
- Geography
- Geolocation
- ISO 3166
- JSON
- Phone Codes
- Provinces
- Reference Data
- Regions
- States
- Time Zones
created: '2024-03-30'
modified: '2026-05-19'
specificationVersion: '0.23'
apis:
- aid: country-state-city-api:country-state-city-api-cities-api
  name: Country State City API Cities API
  description: City reference data with coordinates and time zones, scoped by country and state.
  humanURL: https://docs.countrystatecity.in/
  baseURL: https://api.countrystatecity.in/v1
  tags:
  - Cities
  properties:
  - type: OpenAPI
    url: openapi/country-state-city-api-cities-api-openapi.yml
  - type: Documentation
    url: https://docs.countrystatecity.in/
  - type: APIIntroduction
    url: https://docs.countrystatecity.in/api/introduction
  - type: Signup
    url: https://app.countrystatecity.in/
  - type: Rules
    url: rules/country-state-city-api-rules.yml
- aid: country-state-city-api:country-state-city-api-countries-api
  name: Country State City API Countries API
  description: Country reference data including ISO codes, currencies, phone codes, and regions.
  humanURL: https://docs.countrystatecity.in/
  baseURL: https://api.countrystatecity.in/v1
  tags:
  - Countries
  properties:
  - type: OpenAPI
    url: openapi/country-state-city-api-countries-api-openapi.yml
  - type: Documentation
    url: https://docs.countrystatecity.in/
  - type: APIIntroduction
    url: https://docs.countrystatecity.in/api/introduction
  - type: Signup
    url: https://app.countrystatecity.in/
  - type: Rules
    url: rules/country-state-city-api-rules.yml
- aid: country-state-city-api:country-state-city-api-states-api
  name: Country State City API States API
  description: State, province, and region reference data scoped by country.
  humanURL: https://docs.countrystatecity.in/
  baseURL: https://api.countrystatecity.in/v1
  tags:
  - States
  properties:
  - type: OpenAPI
    url: openapi/country-state-city-api-states-api-openapi.yml
  - type: Documentation
    url: https://docs.countrystatecity.in/
  - type: APIIntroduction
    url: https://docs.countrystatecity.in/api/introduction
  - type: Signup
    url: https://app.countrystatecity.in/
  - type: Rules
    url: rules/country-state-city-api-rules.yml
common:
- type: IssueTracker
  url: https://github.com/dr5hn/countries-states-cities-database/issues
- type: Releases
  url: https://github.com/dr5hn/countries-states-cities-database/releases
- type: CodeOfConduct
  url: https://github.com/dr5hn/countries-states-cities-database/blob/master/.github/CODE_OF_CONDUCT.md
- type: ContributionGuide
  url: https://github.com/dr5hn/countries-states-cities-database/blob/master/.github/CONTRIBUTING.md
- type: License
  name: ODbL-1.0
  url: https://github.com/dr5hn/countries-states-cities-database/blob/master/LICENSE
- type: AgenticAccess
  url: agentic-access/country-state-city-api-agentic-access.yml
- type: DomainSecurity
  url: security/country-state-city-api-domain-security.yml
- type: Authentication
  url: authentication/country-state-city-api-authentication.yml
- type: Website
  url: https://countrystatecity.in/
- type: Documentation
  url: https://docs.countrystatecity.in/
- type: APIIntroduction
  url: https://docs.countrystatecity.in/api/introduction
- type: Console
  url: https://app.countrystatecity.in/
- type: Pricing
  url: https://countrystatecity.in/pricing/
- type: Downloads
  url: https://countrystatecity.in/downloads/
- type: GitHubRepository
  url: https://github.com/dr5hn/countries-states-cities-database
- type: Contact
  url: https://countrystatecity.in/contact/
- type: PrivacyPolicy
  url: https://countrystatecity.in/privacy-policy/
- type: TermsOfService
  url: https://countrystatecity.in/terms/
- type: Vocabulary
  url: vocabulary/country-state-city-api-vocabulary.yml
- type: Integrations
  url: https://countrystatecity.in/integrations
- type: LlmsText
  url: https://docs.countrystatecity.in/llms.txt
integrations:
- name: Hk
- name: Raj Maurya
- name: Zahid Farooq
- name: The ICT Hub
- name: Sumit Sahni
- name: Kent Noetico
- name: Johnson Mercy
- name: Ed Seffrin
- name: Elias Sanchez
- name: Shreyash Shinde
- name: Adesoji Adesesan
- name: Mohamed Elsayed
- name: Edwin Gah
- name: Oluwadamilola Samuel
- name: Tyke
- name: Ashok GV
- name: Danu Rahadi
- name: Juvance FITAHIANJANAHARY
- name: Andry Razafinjatovo
- name: Sagar Sonara
- name: Rohit Singh
- name: Muniraj M
- name: Vinay P
- name: Tini NK
- name: Daniel Jaramillo
- name: Larson Jaide
- name: Zakiullah Khan
- name: Vishal Shah
- name: Victory Onorhime
- name: Amal K Jose
- name: Nikhil Kamboj
- name: Mahmudul Hasan Sagar
- name: Siril Pappula
- name: Cedric Borreguín
- name: Brendan
- name: Ameer Hamza
- name: Johan Walhout
- name: Akash
- name: Hiren Chauhan
- name: BRANDON LAKINYU
- name: Sonu Kumar
- name: Atul j
- name: Mike Lettona
- name: Manish Raj
- name: Kailash G
- name: Mo Kakwan
- name: Hanish Rao
- name: Grace Frank
- name: Vishal Rana
- name: Tushar Agarwal
- name: Akshay Rai Priyadarshi
- name: Shahzaib Minhas
- name: Bendicht Eggimann
- name: Bodnariu Daniel-Iustin
- name: Magio
- name: Coding Psycho
- name: Douglas Huertas
- name: Jesus David Santiago Jarava
- name: Shivam
- name: Gabriel Rajendran
- name: Muhammed Balta
- name: souren
- name: gurjari
- name: Omair
- name: Jamtech Pvt. Ltd.
- name: Perekpo Paulinus Emmanuel
- name: bhaskar sengupta
- name: Onur Gösteriş
- name: Gabriel
- name: Amol Shah
- name: Sabit bin hamid
- name: Carlos Arenas
- name: Guille Acosta
- name: Thiago Oliveira
- name: Elias Mamo
maintainers:
- FN: Kin Lane
  email: kin@apievangelist.com

Work with this as data

Every provider here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for providers

9 MCP tools reach this
  • find_providersBrowse and filter every provider in the catalog.
  • get_provider_artifactsEvery artifact this provider publishes, grouped by type.
  • get_provider_operationsEvery operation across all of their OpenAPIs — one call instead of parsing every spec.
  • get_provider_toolsEvery MCP tool they ship, with the operation each wraps.
  • get_provider_evidenceHow each part of their score was established. Free — the basis for a claim should not sit behind it.
  • get_provider_ratingPRO — composite, band, trend and facet scores.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This provider
curl "https://apis.io/api/v1/providers/country-state-city-api"
All providers
curl "https://apis.io/api/v1/providers?limit=25"
Every operation they expose
curl "https://apis.io/api/v1/providers/country-state-city-api/operations?limit=25"
How their score was established
curl "https://apis.io/api/v1/providers/country-state-city-api/evidence"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.