πCountries Database
Reference database of all 250 countries and territories: ISO 3166-1 codes, capitals, regions, population, area, currencies, languages, TLDs and calling codes. Look up a single country or list by region.
Worked examples
Profile for Germany
GET /api/v1/databases/countries?country=Germany
Result: π©πͺ Germany (DE)
Profile by ISO code
GET /api/v1/databases/countries?country=JP
Result: π―π΅ Japan (JP)
Most populous countries
GET /api/v1/databases/countries?limit=10
Result: 10 countries
Machine API (x402)
$0.002 / callThis tool is also a JSON API for AI agents. Requests without payment receive 402 Payment Required plus instructions; agents pay USDC on Base via the x402 protocol β no accounts, no API keys.
GET /api/v1/databases/countries?country=Germany HTTP/1.1
Host: agenttools-hub.vercel.app
β 402 (payment required, instructions in headers)
β 200 (after X-PAYMENT header; JSON body below)
{
"tool": "databases/countries",
"input": {"country":"Germany"},
"result": { "value": null, "answer": "π©πͺ Germany (DE)" }
}Agent docs: /llms.txt Β· OpenAPI spec Β· integration guide
About this tool
A complete reference database of all 250 countries and territories with ISO 3166-1 codes, capitals, regions, population (World Bank latest), area, currencies, languages, internet TLDs and phone calling codes. Look up a single country profile or list by region β every country also has its own profile page.
Frequently asked questions
Which country identifiers can I search by?
The two-letter ISO 3166-1 alpha-2 code (e.g. "DE") or the English country name ("Germany"). Partial names also match.
Where does the data come from?
The mledoze/countries open dataset, enriched with the latest World Bank population figures. Territorial units without population data show a dash.