{"uid":"cap_871RD53bqZw_E8aqqMzOM","slug":"wikidata-facts-country-profile-5c59edfa","name":"Wikidata Facts – Country Profile","description":"Country profile from Wikidata: capital, population, area, languages, currency, leaders, ISO codes, borders, with property ids.","url":"https://wikidata-facts.x402tookit.com/country-profile?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["country"],"properties":{"hint":{"type":"string","description":"Optional words to disambiguate a name, e.g. 'Caucasus' for Georgia"},"country":{"type":"string","description":"Country name, ISO alpha-2/alpha-3 code or Wikidata Q-id, e.g. France or FR"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"url":{"type":["null","string"]},"asOf":{"type":["null","string"]},"facts":{"type":["null","object"],"properties":{"areaKm2":{"type":["null","object"],"properties":{"asOf":{},"unit":{"type":["null","string"]},"lower":{"type":["null","number"]},"upper":{"type":["null","number"]},"value":{"type":["null","number"]},"property":{"type":["null","string"]}}},"borders":{"type":["null","object"],"properties":{"values":{"type":["array","null"],"items":{"type":"object","properties":{"id":{"type":["null","string"]},"label":{"type":["null","string"]}}}},"property":{"type":["null","string"]}}},"capital":{"type":["null","object"],"properties":{"values":{"type":["array","null"],"items":{"type":"object","properties":{"id":{"type":["null","string"]},"label":{"type":["null","string"]}}}},"property":{"type":["null","string"]}}},"currency":{"type":["null","object"],"properties":{"values":{"type":["array","null"],"items":{"type":"object","properties":{"id":{"type":["null","string"]},"label":{"type":["null","string"]}}}},"property":{"type":["null","string"]}}},"continent":{"type":["null","object"],"properties":{"values":{"type":["array","null"],"items":{"type":"object","properties":{"id":{"type":["null","string"]},"label":{"type":["null","string"]}}}},"property":{"type":["null","string"]}}},"isoAlpha2":{"type":["null","object"],"properties":{"value":{"type":["null","string"]},"property":{"type":["null","string"]}}},"isoAlpha3":{"type":["null","object"],"properties":{"value":{"type":["null","string"]},"property":{"type":["null","string"]}}},"isoNumeric":{"type":["null","object"],"properties":{"value":{"type":["null","string"]},"property":{"type":["null","string"]}}},"population":{"type":["null","object"],"properties":{"asOf":{"type":["null","string"]},"rank":{"type":["null","string"]},"value":{"type":["null","number"]},"property":{"type":["null","string"]}}},"callingCode":{"type":["null","object"],"properties":{"value":{"type":["null","string"]},"property":{"type":["null","string"]}}},"headOfState":{"type":["null","object"],"properties":{"values":{"type":["array","null"],"items":{"type":"object","properties":{"id":{"type":["null","string"]},"label":{"type":["null","string"]}}}},"property":{"type":["null","string"]}}},"topLevelDomain":{"type":["null","object"],"properties":{"values":{"type":["array","null"],"items":{"type":"object","properties":{"id":{"type":["null","string"]},"label":{"type":["null","string"]}}}},"property":{"type":["null","string"]}}},"headOfGovernment":{"type":["null","object"],"properties":{"values":{"type":["array","null"],"items":{"type":"object","properties":{"id":{"type":["null","string"]},"label":{"type":["null","string"]}}}},"property":{"type":["null","string"]}}},"officialLanguages":{"type":["null","object"],"properties":{"values":{"type":["array","null"],"items":{"type":"object","properties":{"id":{"type":["null","string"]},"label":{"type":["null","string"]}}}},"property":{"type":["null","string"]}}}}},"label":{"type":["null","string"]},"source":{"type":["null","string"]},"missing":{"type":["array","null"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"sourceUrl":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"wikidataId":{"type":["null","string"]},"attribution":{"type":["null","string"]},"description":{"type":["null","string"]},"resolvedVia":{"type":["null","string"]},"alternatives":{"type":["array","null"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KCWPjpFf3GBIdNcshj8LU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a structured country profile from Wikidata including capital, population, area, languages, currency, leaders, ISO codes, and bordering countries.","exampleAgentPrompt":"Pull a full country profile for France from Wikidata — I need the capital, population, area, official languages, currency, bordering countries, and ISO codes.","exampleUseCases":[{"title":"Country briefing for travel app","prompt":"Give me a complete profile for Japan — capital, population, area, currency, official languages, and which countries share a border with it."},{"title":"Disambiguating a country by name","prompt":"Look up the country profile for Georgia the country in the Caucasus, not the US state — I need its capital, ISO codes, and bordering nations."},{"title":"Enriching a dataset with country metadata","prompt":"I have a list of countries by ISO alpha-2 code — can you fetch the Wikidata profile for DE and tell me its population, area in km², official languages, and current head of government?"}],"resultDescription":"A structured JSON object containing Wikidata-sourced facts about the requested country: capital city (with Q-id), population figure with date, area in km², official languages, currency, head of state/government, ISO alpha-2 and alpha-3 codes, list of bordering countries (with Q-ids), continent, and the Wikidata property IDs for each fact. Also includes the Wikidata entity URL and an 'asOf' timestamp.","failureModes":["Ambiguous country name (e.g. 'Georgia') without a hint may return unexpected results or require disambiguation","Unknown or misspelled country name returns an error or empty result","Very small territories or disputed regions may have sparse Wikidata coverage","Rate limiting or payment failure (x402) blocks the request","Wikidata data may be outdated for fast-changing fields like population or current leaders"],"whenToPreferThis":"Use this endpoint when you need structured, machine-readable country-level facts sourced from Wikidata with property IDs included for traceability. It is preferable over a web search when you need normalized, consistently structured data (capital, area, ISO codes, borders) across many countries, or when you need Wikidata Q-ids for follow-up queries. Choose it over general Wikidata SPARQL when you want a pre-built, curated profile without writing a query.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:20:04.190Z","isFirstParty":false,"canonicalSlug":"wikidata-facts-country-profile-5c59edfa"}