{
 "name": "CIV FM API",
 "version": "1.0.0",
 "about": "Sourced facts about every country, from the same data as the civ.fm globe. Free, no key. Please link to civ.fm when you use it.",
 "mcp": "POST /mcp (Model Context Protocol, Streamable HTTP). Tools: get_country_profile, rank_countries, compare_countries, get_links, search_constitution, constitutions_with_topic",
 "endpoints": {
  "GET /v1/countries": "every country with ISO codes and region",
  "GET /v1/country/{name or ISO}": "full profile",
  "GET /v1/compare?c=DEU,FRA,POL": "side by side, 2 to 6 countries",
  "GET /v1/rank?indicator=life_expectancy&order=desc&limit=10&region=Europe": "ranked list; /v1/indicators lists names",
  "GET /v1/links/{country}?type=trade|migration": "strongest partners",
  "GET /v1/constitution/{country}?q=freedom of speech": "search the constitution's text",
  "GET /v1/topic?q=right to health": "which constitutions cover a topic"
 },
 "guide": "https://civ.fm/guide/",
 "llms": "https://civ.fm/llms.txt"
}