Countries API
Retrieve country codes, capitals, currencies and geographic reference fields. 252 records across 252 countries and territories, from GeoNames.
GET /v1/countriesCC BY 4.0252 countries28 Nov 2026Request and response
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=AD -d limit=1 \
-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 |
Coverage by country
252 countries and territories have records in the 28 Nov 2026 snapshot. Each one has its own page with filters and counts.
- AFAfghanistan1
- AXÅland Islands1
- ALAlbania1
- DZAlgeria1
- ASAmerican Samoa1
- ADAndorra1
- AOAngola1
- AIAnguilla1
- AQAntarctica1
- AGAntigua & Barbuda1
- ARArgentina1
- AMArmenia1
- AWAruba1
- AUAustralia1
- ATAustria1
- AZAzerbaijan1
- BSBahamas1
- BHBahrain1
- BDBangladesh1
- BBBarbados1
- BYBelarus1
- BEBelgium1
- BZBelize1
- BJBenin1
- BMBermuda1
- BTBhutan1
- BOBolivia1
- BABosnia & Herzegovina1
- BWBotswana1
- BVBouvet Island1
- BRBrazil1
- IOBritish Indian Ocean Territory1
- VGBritish Virgin Islands1
- BNBrunei1
- BGBulgaria1
- BFBurkina Faso1
- BIBurundi1
- KHCambodia1
- CMCameroon1
- CACanada1
- CVCape Verde1
- BQCaribbean Netherlands1
- KYCayman Islands1
- CFCentral African Republic1
- TDChad1
- CLChile1
- CNChina1
- CXChristmas Island1
- CCCocos (Keeling) Islands1
- COColombia1
- KMComoros1
- CGCongo - Brazzaville1
- CDCongo - Kinshasa1
- CKCook Islands1
- CRCosta Rica1
- CICôte d’Ivoire1
- HRCroatia1
- CUCuba1
- ANCuraçao1
- CWCuraçao1
- CYCyprus1
- CZCzechia1
- DKDenmark1
- DJDjibouti1
- DMDominica1
- DODominican Republic1
- ECEcuador1
- EGEgypt1
- SVEl Salvador1
- GQEquatorial Guinea1
- EREritrea1
- EEEstonia1
- SZEswatini1
- ETEthiopia1
- FKFalkland Islands1
- FOFaroe Islands1
- FJFiji1
- FIFinland1
- FRFrance1
- GFFrench Guiana1
- PFFrench Polynesia1
- TFFrench Southern Territories1
- GAGabon1
- GMGambia1
- GEGeorgia1
- DEGermany1
- GHGhana1
- GIGibraltar1
- GRGreece1
- GLGreenland1
- GDGrenada1
- GPGuadeloupe1
- GUGuam1
- GTGuatemala1
- GGGuernsey1
- GNGuinea1
- GWGuinea-Bissau1
- GYGuyana1
- HTHaiti1
- HMHeard & McDonald Islands1
- HNHonduras1
- HKHong Kong SAR China1
- HUHungary1
- ISIceland1
- INIndia1
- IDIndonesia1
- IRIran1
- IQIraq1
- IEIreland1
- IMIsle of Man1
- ILIsrael1
- ITItaly1
- JMJamaica1
- JPJapan1
- JEJersey1
- JOJordan1
- KZKazakhstan1
- KEKenya1
- KIKiribati1
- XKKosovo1
- KWKuwait1
- KGKyrgyzstan1
- LALaos1
- LVLatvia1
- LBLebanon1
- LSLesotho1
- LRLiberia1
- LYLibya1
- LILiechtenstein1
- LTLithuania1
- LULuxembourg1
- MOMacao SAR China1
- MGMadagascar1
- MWMalawi1
- MYMalaysia1
- MVMaldives1
- MLMali1
- MTMalta1
- MHMarshall Islands1
- MQMartinique1
- MRMauritania1
- MUMauritius1
- YTMayotte1
- MXMexico1
- FMMicronesia1
- MDMoldova1
- MCMonaco1
- MNMongolia1
- MEMontenegro1
- MSMontserrat1
- MAMorocco1
- MZMozambique1
- MMMyanmar (Burma)1
- NANamibia1
- NRNauru1
- NPNepal1
- NLNetherlands1
- NCNew Caledonia1
- NZNew Zealand1
- NINicaragua1
- NENiger1
- NGNigeria1
- NUNiue1
- NFNorfolk Island1
- KPNorth Korea1
- MKNorth Macedonia1
- MPNorthern Mariana Islands1
- NONorway1
- OMOman1
- PKPakistan1
- PWPalau1
- PSPalestinian Territories1
- PAPanama1
- PGPapua New Guinea1
- PYParaguay1
- PEPeru1
- PHPhilippines1
- PNPitcairn Islands1
- PLPoland1
- PTPortugal1
- PRPuerto Rico1
- QAQatar1
- RERéunion1
- RORomania1
- RURussia1
- RWRwanda1
- WSSamoa1
- SMSan Marino1
- STSão Tomé & Príncipe1
- SASaudi Arabia1
- SNSenegal1
- CSSerbia1
- RSSerbia1
- SCSeychelles1
- SLSierra Leone1
- SGSingapore1
- SXSint Maarten1
- SKSlovakia1
- SISlovenia1
- SBSolomon Islands1
- SOSomalia1
- ZASouth Africa1
- GSSouth Georgia & South Sandwich Islands1
- KRSouth Korea1
- SSSouth Sudan1
- ESSpain1
- LKSri Lanka1
- BLSt. Barthélemy1
- SHSt. Helena1
- KNSt. Kitts & Nevis1
- LCSt. Lucia1
- MFSt. Martin1
- PMSt. Pierre & Miquelon1
- VCSt. Vincent & Grenadines1
- SDSudan1
- SRSuriname1
- SJSvalbard & Jan Mayen1
- SESweden1
- CHSwitzerland1
- SYSyria1
- TWTaiwan1
- TJTajikistan1
- TZTanzania1
- THThailand1
- TLTimor-Leste1
- TGTogo1
- TKTokelau1
- TOTonga1
- TTTrinidad & Tobago1
- TNTunisia1
- TRTürkiye1
- TMTurkmenistan1
- TCTurks & Caicos Islands1
- TVTuvalu1
- UMU.S. Outlying Islands1
- VIU.S. Virgin Islands1
- UGUganda1
- UAUkraine1
- AEUnited Arab Emirates1
- GBUnited Kingdom1
- USUnited States1
- UYUruguay1
- UZUzbekistan1
- VUVanuatu1
- VAVatican City1
- VEVenezuela1
- VNVietnam1
- WFWallis & Futuna1
- EHWestern Sahara1
- YEYemen1
- ZMZambia1
- ZWZimbabwe1