← Agent Data Hub · Search endpoints · /llms.txt
Fixed facts about a country from the last edition of the CIA World Factbook (public domain, data of 2026-01-22), each checked against GeoNames: capital city, total area in km², land borders and neighbouring countries, coastline length, official languages, currency and its ISO code, international calling code, time zone of the capital, independence date, highest point (highest mountain) and lowest point, continent.
GET https://api.agentdatahub.de/api/v1/call/country-facts?country=AU&fact=capital&compact=1
Full metadata: verbose=1 · Markdown: format=llm · Only some fields: add &fields=a,b.c · MCP: tool call_api with {"apiId":"country-facts"}
curl:
curl -s 'https://api.agentdatahub.de/api/v1/call/country-facts?country=AU&fact=capital&compact=1'
Python (standard library only):
import json, urllib.request
url = "https://api.agentdatahub.de/api/v1/call/country-facts?country=AU&fact=capital&compact=1"
with urllib.request.urlopen(url, timeout=30) as r:
data = json.load(r)
print(json.dumps(data, indent=2)[:2000])
Google Sheets:
=IMPORTDATA("https://api.agentdatahub.de/api/v1/history/country-facts?country=AU&fact=capital&_order=desc&_limit=500&format=csv")
The recorded history of this call as CSV, newest first. Excel: Data → From Web with the same address.
country | ISO-2 country code or English name, e.g. AU, JP, Sierra Leone |
fact | Optional, one of capital, area, land-borders, coastline, languages, currency, calling-code, time-zone, independence, highest-point, lowest-point, continent; without it all facts |
{
"apiId": "country-facts",
"trust": "checked",
"data_freshness": "cached",
"data": {
"country": "Australia",
"iso2": "AU",
"fact": "capital",
"label": "Capital",
"as_of": "2026-01-22",
"value": "Canberra",
"answer": "The capital of Australia is Canberra.",
"check": "agrees with GeoNames",
"source": "CIA World Factbook (data of 2026-01-22)",
"licence": "public domain",
"page": "https://api.agentdatahub.de/facts/AU/capital",
"all_facts": "https://api.agentdatahub.de/api/v1/facts/AU",
"source_url": "https://github.com/factbook/factbook.json",
"checked": "2026-12-03"
},
"source": "CIA World Factbook (last edition) and GeoNames",
"source_url": "https://github.com/factbook/factbook.json",
"license": "public domain (CIA World Factbook); calling codes, time zones and continents: GeoNames (geonames.org), CC BY 4.0",
"licence_status": "green",
"as_of": "2026-01-22",
"checked": "2026-12-03"
}
Recorded history available: /api/v1/history/country-facts?country=AU&fact=capital
| Source | CIA World Factbook (last edition) and GeoNames |
| License | public domain (CIA World Factbook); calling codes, time zones and continents: GeoNames (geonames.org), CC BY 4.0 |
| Source URL | https://github.com/factbook/factbook.json |
| Terms | https://github.com/factbook/factbook.json/blob/master/README.md |
| Category | Knowledge, Research & News › Reference Facts · more: country-practical-facts · crossref-doi-lookup · crossref-journal-search |