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, Currencies, 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 11 more developer resources.

48.9/100 developing ▬ flat Agent 31/100 agent aware Full breakdown ↓
scored 2026-07-28 · rubric v0.6
AccessFreemiumSelf serve⚡ Free to try
3 APIs
CapitalsCitiesCountriesCurrenciesGeographyGeolocationISO 3166JSONPhone CodesProvincesReference DataRegionsStatesTime Zones

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-07-28 · rubric v0.6
Composite quality — 48.9/100 · developing
Contract Quality 14.2 / 25
Developer Ergonomics 5.2 / 20
Commercial Clarity 14.2 / 20
Operational Transparency 4.1 / 13
Governance 3.8 / 12
Discoverability 7.4 / 10
Agent readiness — 31/100 · agent aware
Machine-Readable Contract 18 / 18
Agentic Access Contract 10 / 10
MCP Server 0 / 12
Machine-Readable Auth 10 / 10
Idempotency 0 / 9
Stable Error Semantics 0 / 8
Request/Response Examples 0 / 7
Rate-Limit Signaling 7 / 7
Typed Event Surface 0 / 6
Agent Skills 0 / 5
Well-Known Catalog 0 / 4
Consent & Bot Identity 0 / 3
A2A Agent Card 0 / 8
Dry-Run / Simulate Mode 0 / 4
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. 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. Want it done for you? Prioritized profiling — $2,500 →

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 1

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

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 1

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 1

SDKs, sample code, and the tooling you integrate with

Access & Security 2

Authentication, authorization, and security posture

Operate 1

Status, limits, changes, and where to get help

Commercial 3

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
accessModel:
  pricing: freemium
  onboarding: self-serve
  trial: false
  try_now: true
  public: false
  label: Freemium · Self-serve signup
  confidence: high
  source:
  - plans
  - authentication
  generated: '2026-07-22'
  method: derived
image: https://kinlane-productions2.s3.amazonaws.com/apis-json-icons/country-state-city-api.png
type: Index
access: Public
position: Provider
tags:
- 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.20'
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
  - type: Capabilities
    url: capabilities/country-state-city-api-capabilities.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
  - type: Capabilities
    url: capabilities/country-state-city-api-capabilities.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
  - type: Capabilities
    url: capabilities/country-state-city-api-capabilities.yml
common:
- 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