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 API contracts indexed on the APIs.io network: Cities API, Countries API, and States API. Tagged areas include Capital, 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 engineering blog, authentication, documentation, developer console, pricing, and 19 more developer resources.

42.9/100 developing ▲ 7.5 Agent 34/100 agent ready saas · ODbL-1.0 Full breakdown ↓
scored 2026-11-06 · rubric v0.27.0 · Show this score on your site →
AccessFreemiumSelf serve⚡ Free to try
1 published contract 1 MCP Servers
CapitalCitiesCountriesCurrencyGeographyGeolocationISO 3166JSONPhone CodesProvincesReference DataRegionsStatesTimezone

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-11-06 · rubric v0.27.0
Regulatory Posture applies to this provider. Its tags matched the Horizontal (data, software, accessibility, platform) regime, so Regulatory Posture carries 15 points of the composite. If this regime is wrong for your business, say so on your provider repo — the applicability map is public and we will correct it.
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.
The six quality facets above are damped to 85 points between them, because the conditional facet above carries the other 15. That is why each facet's contribution is shown against a damped maximum: raising a quality facet moves the composite by 85% of its nominal weight, not 100%. The full arithmetic is at apis.io/rating/.
Show this score on your site. Kin Score badge preview for Country State City API It updates itself when the score changes. Paste this where you link to your API docs:
<a href="https://apis.io/providers/country-state-city-api/"><img src="https://apis.io/badge/country-state-city-api/card.svg" alt="Country State City API on APIs.io — Kin Score by API Evangelist"></a>
Other styles, a README pill and a shields.io endpoint are on the badge page.
Raise your score.
Agent readiness — checks not met, largest first (exact, from this profile):
  • Stable Error Semantics +8 pts — OpenAPI $refs a shared error schema across 4xx/5xx responses (verified), else common[].type includes ErrorCatalog / ErrorCodes / DeclineCodes
  • A2A Agent Card +8 pts — a2a/-a2a.yml manifest, graded on conformance.grade against A2A 1.0.0
  • Request/Response Examples +7 pts — share of operations carrying request/response examples; else an Examples / Code Samples link
  • Registration Without a Human +6 pts — a `registration_endpoint` in the served RFC 8414 / OIDC discovery document
  • Delegated User Identity +6 pts — a served discovery document listing authorization_code in grant_types_supported (served), else an oauth2 authorizationCode flow or openIdConnect declared in an OpenAPI (documented)
  • Typed Event Surface +6 pts — AsyncAPI document, OR webhooks/callbacks objects in the as-published OpenAPI, OR common[].type includes Webhooks
6 more unmet checks in the Agent Readiness table above.
Kin Score — facets with the most composite points still available (weight × headroom):
Each check links to what satisfies it. Publish the artifact, or tell us where it already lives, and the score moves on the next scoring run.
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 the provider profile at artifacts.apis.io/country-state-city-api/apis.yml: open an issue on github.com/api-evangelist/country-state-city-api to ask a question or point us at an artifact you publish. Submit an artifact on GitHub — free → Manage your own listing — the Influence plan, $499/mo →

Standards implemented 3

Standards this provider implements or carries. De facto ones are profiled and measured by the API Commons; formal ones come from the standards directory and are linked by the provider's own tags. The evidence column says how each claim was established — not that it was made.

tagged — the provider's own APIs.json carries the standard as a tag; implementation not verified
measured — observed by APIs.io (verified)
measured — observed by APIs.io (published)

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 4

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

Country State City API

OPEN COLLECTION

MCP Servers 1

Model Context Protocol servers that expose these APIs to AI agents.

Country State City API MCP Server

Remote MCP server at docs.countrystatecity.in over HTTP; 3 tools listed.

MCP SERVER

Country State City API pricing

Not yet checked against Country State City API's own pricing page. Compiled by API Evangelist on 2026-05-04; confirm before you rely on a figure. A free plan or tier is listed.

PlanPrice
Free freemium Free
Professional paid Free
Enterprise enterprise —

Plan details, limits and sources →

Rate limits

Compiled by API Evangelist, not yet checked against Country State City API's documentation. All 5 limits →

Pricing Plans 1

Published pricing tiers and plan structures.

Rate Limits 1

Documented rate limits and quota policies.

Service Levels 1

Uptime the provider promises or reports, as SLA4OAI. Read from its own pages; APIs.io runs no monitors.

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 4

Status, limits, changes, and where to get help

Commercial 6

Pricing, plans, and the legal terms of use

Company 2

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
  gated: none
  gated_source:
  - onboarding
  label: Freemium · Self-serve signup
  confidence: medium
  source:
  - plans
  - authentication
  - security
  generated: '2026-11-06'
  method: derived
image: https://kinlane-productions2.s3.amazonaws.com/apis-json-icons/country-state-city-api.png
type: Index
access: Public
position: Producing
x-docs-platform: mintlify
x-docs-platform-confidence: medium
x-docs-platform-checked: 2026-09-24
tags:
- Capital
- Cities
- Countries
- Currency
- Geography
- Geolocation
- ISO 3166
- JSON
- Phone Codes
- Provinces
- Reference Data
- Regions
- States
- Timezone
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-10-06'
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: Plans
  url: plans/country-state-city-api-plans-pricing.yml
- type: RateLimits
  url: rate-limits/country-state-city-api-rate-limits.yml
- type: FinOps
  url: finops/country-state-city-api-finops.yml
- url: https://countrystatecity.in/blog/
  type: Blog
- 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

Country State City API — frequently asked questions

Does Country State City API have an API?

Yes. APIs.io lists 3 APIs from Country State City API, including Country State City API Cities API, Country State City API Countries API and Country State City API States API.

Is there an OpenAPI specification for the Country State City API?

Yes. APIs.io indexes 3 OpenAPI specifications for Country State City API, each linked for download from this page.

How do I authenticate with the Country State City API?

Country State City API uses bearer-token authentication (apiKey · 1 scheme). The details are profiled on APIs.io as Country State City Api Authentication.

How much does the Country State City API cost?

APIs.io lists 3 pricing plans for Country State City API, with each plan's price, limits and inclusions under Pricing on this page.

Does Country State City API have an MCP server?

Yes. APIs.io lists 1 MCP server for Country State City API: Remote MCP server at docs.countrystatecity.in over HTTP; 3 tools listed.

Is the Country State City API ready for AI agents?

Country State City API has a Kin Score of 42.9 out of 100 (developing) and an Agent Readiness score of 34.2 (agent-ready), scored by API Evangelist on 2026-11-06.

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"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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.