Catalog/data-country

Data

Country facts API

Facts about a country by name or ISO code: capital, population, region, area, currencies, languages, flag. Answers 'capital of France', 'population of Japan', 'what currency does Brazil use'.

Price$0.01per request
MethodPOST
Route/v1/data/country
StatusLive
MIME typeapplication/json
Rate limit60/minute
Cache86400s public
datacountrygeographycapitalpopulationcurrency
API URLhttps://x402.hexl.dev/v1/data/country
Integration docs
Example request
{
  "country": "France"
}
Example response
{
  "name": "France",
  "officialName": "French Republic",
  "code": "FR",
  "code3": "FRA",
  "capital": "Paris",
  "region": "Europe",
  "subregion": "Western Europe",
  "population": 67391582,
  "areaKm2": 551695,
  "currencies": [
    {
      "code": "EUR",
      "name": "Euro",
      "symbol": "€"
    }
  ],
  "languages": [
    "French"
  ],
  "flag": "🇫🇷"
}
Input schema
{
  "type": "object",
  "required": [
    "country"
  ],
  "properties": {
    "country": {
      "type": "string",
      "examples": [
        "France",
        "JP"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}