WorldFactbook.ioFree API →

Free REST API

No API key required

Open JSON endpoints with CORS enabled. Data mirrors the public country profiles and list view; fields may expand as pipelines add indicators.

GET /api/v1/countries/

Returns an array of all countries with headline fields for grids and rankings.

[
  {
    "name": "Germany",
    "slug": "germany",
    "flag": "🇩🇪",
    "region": "Europe",
    "capital": "Berlin",
    "gdp": 4600,
    "gdpPerCapita": 54500,
    "population": "84400000",
    "hdiScore": 0.942,
    "democracyScore": 96,
    "corruptionIndex": 78,
    "dataUpdatedAt": "2026-03-01T12:00:00.000Z"
  }
]

cURL

curl -s "https://worldfactbook.io/api/v1/countries/"

GET /api/v1/countries/[slug]/

Returns the full normalized country record (Factbook JSON sections, merged metrics, AI summary when present).

{
  "name": "Germany",
  "slug": "germany",
  "flag": "🇩🇪",
  "region": "Europe",
  "gdp": 4600,
  "population": "84400000",
  "capital": "Berlin",
  "area": 357022,
  "introduction": "…",
  "geography": { },
  "economy": { },
  "government": { },
  "military": { },
  "aiSummary": "…"
}

cURL

curl -s "https://worldfactbook.io/api/v1/countries/germany/"