Skip to main content
Countries API is a public, read-only JSON service in the REST Countries tradition, plus a separate flag CDN. There are no API keys. Cross-origin requests are allowed.

Quickstart

Copy a curl, project fields, and paginate five countries at a time.

Endpoints

Full route table with response shapes and pagination modes.

OpenAPI

Download the machine-readable contract at /openapi.json.

Flag CDN

Serve flags at /flags/.svg|png; optional opaque hashed URLs.

For agents

Start at /llms.txt. Full contract lives at /openapi.json.

What you get

  • Country records with names, ISO codes, currencies, languages, region, Wikidata enrichment (economics, development, government, and more), and computed metrics.
  • flags.svg and flags.png URLs on every full record.
  • REST Countries–style filters: alpha, name, capital, region, language, currency, independence.
  • Capped list pages (max 5) instead of a bulk /all dump.
  • GET /v1/countries/current returns one country object for the caller’s IP when edge geo is available.
Free public serviceCommercial use is allowed under the Terms of Service. We may throttle or block abusive traffic.