Data and API

Everything on this site is also JSON. No key is needed. Each fact comes with its source, license, period and a ready-made citation, so agents and apps can quote it exactly.

Endpoints

Entity ids are short names like france or united-states; the full list with ISO and CIA codes is in /v1/entities.json. Field keys look like category.field_name and never change once published. There are 261 entities and 227 fields.

One fact

{
  "entity": "france",
  "field": "economy.gdp_ppp",
  "label": "GDP (purchasing power parity)",
  "value": { "Real GDP (purchasing power parity) 2024": "$3.732 trillion (2024 est.)", ... },
  "value_num": 3732000000000,
  "unit": "USD",
  "period": "2024",
  "as_of": "2026-01",
  "method": "factbook_final",
  "source": { "id": "cia-factbook-final", "name": "Central Intelligence Agency, The World Factbook (final edition)", "url": "..." },
  "license": { "id": "public-domain-us-gov", "commercial": "yes" },
  "cite": "Diplomatica Factbook, France, GDP (purchasing power parity) (2024), from Central Intelligence Agency, ...",
  "url": "https://diplomatica.io/country/france/#economy.gdp_ppp"
}

Reuse

The Factbook-derived data is public domain. Please cite the Diplomatica Factbook and link the fact's url when you use it, so readers can check it. Bulk downloads, history back to 1990, change alerts and higher rate limits are planned as paid plans.

For AI assistants and crawlers, /llms.txt summarizes how to use the site.