United Kingdom Countries API
The GeoNames country record for United Kingdom, with ISO codes, capital, currency, languages and neighbours, plus every other dataset we hold for United Kingdom.
GET /v1/countriesCC BY 4.0GB28 Nov 2026Datasets for United Kingdom
Public HolidaysPlan around public holidays, with dates, local names and regional scope.66 recordsPostal CodesMatch postal codes to place names and administrative areas.27,450 recordsAirportsLook up airport identifiers, locations, types and scheduled-service flags.1,058 recordsPortsFind port locations and reported harbour and vessel dimensions.186 recordsWorld Bank IndicatorsRead country-level development indicators and historical observations.1,598 recordsUniversitiesFind university names, websites and institutional domains.193 recordsCitiesFind populated places, coordinates, populations and time zones.1,915 recordsCountriesRetrieve country codes, capitals, currencies and geographic reference fields.1 record
Request and response
Add country filtering to the collection endpoint and you get United Kingdom records back. The response below is the example from our OpenAPI document, so it shows the exact shape you get, though the record itself may come from another country.
curl 'https://api.apifor.dev/v1/countries' \
-G -d country=GB \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": [
{
"iso2": "AD",
"iso3": "AND",
"iso_numeric": "020",
"fips": "AN",
"name": "Andorra",
"capital": "Andorra la Vella",
"area_km2": 468,
"population": 82904,
"continent": "EU",
"tld": ".ad",
"currency_code": "EUR",
"currency_name": "Euro",
"postal_code_format": "AD###",
"postal_code_regex": "^(?:AD)*(\\d{3})$",
"languages": "ca",
"geonameid": 3041565,
"neighbours": "ES,FR",
"updated_at": "2026-11-01 08:41:33"
}
]
}Fields
Each record in data has these fields. Types are read from the example values; a nullable field can hold null for some records.
| Field | Type | Example |
|---|---|---|
| iso2 | string | "AD" |
| iso3 | string | "AND" |
| iso_numeric | string | "020" |
| fips | string | "AN" |
| name | string | "Andorra" |
| capital | string | "Andorra la Vella" |
| area_km2 | integer | 468 |
| population | integer | 82904 |
| continent | string | "EU" |
| tld | string | ".ad" |
| currency_code | string | "EUR" |
| currency_name | string | "Euro" |
| postal_code_format | string | "AD###" |
| postal_code_regex | string | "^(?:AD)*(\\d{3})$" |
| languages | string | "ca" |
| geonameid | integer | 3041565 |
| neighbours | string | "ES,FR" |
| updated_at | string | "2026-11-01 08:41:33" |
Filters and paging
Query parameters accepted by GET /v1/countries. Full detail, including the single-record route, is in the endpoint reference.
| Parameter | Type | Rules |
|---|---|---|
| page | integer | min 1 · default 1 |
| limit | integer | 1 to 200 · default 50 |
| country | string | ISO 3166-1 alpha-2 |
| q | string | 2 to 100 chars |