API & MCP

Everything a person can do on Cartograph Country Facts (capital, population, area, languages, neighbours), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Cartograph Country Facts (capital, population, area, languages, neighbours)

Shows a fact card for one of 197 countries — capital, population with its estimate year, area, population density, rank in the world, official languages, land neighbours, the flag and its description — with a map of the country and its neighbours, and optionally compares it with a second country. Facts come from the final edition of The World Factbook (public domain) and Wikidata. It is the facts engine of the Cartograph app.

Inputs of Cartograph Country Facts (capital, population, area, languages, neighbours)
FieldTypeDefaultDescription
countrytext"France"Country (English name or ISO code)
comparetext—Compare with (optional)

Example request

France

curl -X POST https://cartographcountryfacts.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"country":"France"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "cartograph-country-facts": { "type": "http", "url": "https://cartographcountryfacts.usefulweb.site/mcp" }
  }
}