get
countries
/countries/{code}
Get a single country
Reference facts for one country by ISO 3166-1 alpha-2 code — the same value a member carries in `government.country`.
Parameters
| name | type | required | description |
|---|---|---|---|
| codepath | string | required | ISO 3166-1 alpha-2 country code |
Example
curl
curl "https://civiclens.io/api/v1/countries/fr"200 response
{
"data": {
"code": "fr",
"name": "France",
"lastUpdated": "2026-09-24T19:28:56.830Z",
"capitals": [
"Paris"
],
"population": 68605616,
"populationYear": 2025,
"areaKm2": 643801,
"currencies": [
{
"code": "XPF",
"name": "CFP Franc"
},
{
"code": "EUR",
"name": "euro"
}
],
"officialLanguages": [
"French"
],
"anthems": [
"La Marseillaise"
]
},
"meta": {
"lastUpdated": "2026-10-31T03:17:18.004Z"
}
}A live response, trimmed to the first records. sourceUrl values are shown redacted in documentation; the API returns the full value.
Responses
200Single country
400Bad request - invalid parameters
404Resource not found
500Internal server error
Try it
PlaygroundLive responses from the real API
curl
curl "https://civiclens.io/api/v1/countries/fr"