Cities API
Find populated places, coordinates, populations and time zones. 69,991 records across 245 countries and territories, from GeoNames.
GET /v1/citiesCC BY 4.0245 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/cities' \
-G -d country=IR -d limit=1 \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": [
{
"geonameid": 285,
"name": "Boneh-ye ‘Alvān",
"asciiname": "Boneh-ye 'Alvan",
"lat": 32.11171,
"lng": 48.45877,
"feature_code": "PPL",
"country_code": "IR",
"admin1_code": "15",
"admin1_name": "Khuzestan",
"admin2_code": null,
"population": 6860,
"elevation": 0,
"dem": 54,
"timezone": "Asia/Tehran",
"modified_at": "2026-05-19"
}
]
}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 |
|---|---|---|
| geonameid | integer | 285 |
| name | string | "Boneh-ye ‘Alvān" |
| asciiname | string | "Boneh-ye 'Alvan" |
| lat | number | 32.11171 |
| lng | number | 48.45877 |
| feature_code | string | "PPL" |
| country_code | string | "IR" |
| admin1_code | string | "15" |
| admin1_name | string | "Khuzestan" |
| admin2_code | nullable | null |
| population | integer | 6860 |
| elevation | integer | 0 |
| dem | integer | 54 |
| timezone | string | "Asia/Tehran" |
| modified_at | string (date) | "2026-05-19" |
Filters and paging
Query parameters accepted by GET /v1/cities. 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
245 countries and territories have records in the 28 Nov 2026 snapshot. Each one has its own page with filters and counts.
- AFAfghanistan100
- AXÅland Islands3
- ALAlbania72
- DZAlgeria323
- ASAmerican Samoa4
- ADAndorra7
- AOAngola181
- AIAnguilla14
- AGAntigua & Barbuda11
- ARArgentina635
- AMArmenia80
- AWAruba12
- AUAustralia1,495
- ATAustria214
- AZAzerbaijan134
- BSBahamas34
- BHBahrain12
- BDBangladesh163
- BBBarbados11
- BYBelarus140
- BEBelgium686
- BZBelize13
- BJBenin76
- BMBermuda10
- BTBhutan23
- BOBolivia77
- BABosnia & Herzegovina117
- BWBotswana63
- BRBrazil4,422
- VGBritish Virgin Islands1
- BNBrunei27
- BGBulgaria138
- BFBurkina Faso83
- BIBurundi26
- KHCambodia124
- CMCameroon125
- CACanada1,334
- CVCape Verde36
- BQCaribbean Netherlands3
- KYCayman Islands45
- CFCentral African Republic47
- TDChad68
- CLChile247
- CNChina2,896
- CXChristmas Island1
- CCCocos (Keeling) Islands1
- COColombia607
- KMComoros19
- CGCongo - Brazzaville47
- CDCongo - Kinshasa117
- CKCook Islands1
- CRCosta Rica76
- CICôte d’Ivoire851
- HRCroatia77
- CUCuba169
- CWCuraçao6
- CYCyprus35
- CZCzechia352
- DKDenmark176
- DJDjibouti9
- DMDominica11
- DODominican Republic118
- ECEcuador117
- EGEgypt250
- SVEl Salvador74
- GQEquatorial Guinea14
- EREritrea12
- EEEstonia39
- SZEswatini10
- ETEthiopia245
- FKFalkland Islands1
- FOFaroe Islands6
- FJFiji15
- FIFinland342
- FRFrance2,076
- GFFrench Guiana10
- PFFrench Polynesia12
- TFFrench Southern Territories1
- GAGabon32
- GMGambia66
- GEGeorgia59
- DEGermany3,084
- GHGhana115
- GIGibraltar3
- GRGreece284
- GLGreenland5
- GDGrenada7
- GPGuadeloupe22
- GUGuam21
- GTGuatemala205
- GGGuernsey11
- GNGuinea63
- GWGuinea-Bissau39
- GYGuyana15
- HTHaiti52
- HNHonduras158
- HKHong Kong SAR China266
- HUHungary382
- ISIceland14
- INIndia6,585
- IDIndonesia485
- IRIran909
- IQIraq114
- IEIreland152
- IMIsle of Man21
- ILIsrael178
- ITItaly2,038
- JMJamaica44
- JPJapan1,800
- JEJersey3
- JOJordan76
- KZKazakhstan205
- KEKenya234
- KIKiribati3
- XKKosovo35
- KWKuwait23
- KGKyrgyzstan62
- LALaos34
- LVLatvia52
- LBLebanon30
- LSLesotho28
- LRLiberia26
- LYLibya104
- LILiechtenstein11
- LTLithuania71
- LULuxembourg33
- MOMacao SAR China6
- MGMadagascar139
- MWMalawi34
- MYMalaysia530
- MVMaldives19
- MLMali72
- MTMalta65
- MHMarshall Islands25
- MQMartinique17
- MRMauritania59
- MUMauritius65
- YTMayotte27
- MXMexico1,825
- FMMicronesia6
- MDMoldova63
- MCMonaco5
- MNMongolia35
- MEMontenegro26
- MSMontserrat3
- MAMorocco309
- MZMozambique88
- MMMyanmar (Burma)256
- NANamibia44
- NRNauru7
- NPNepal54
- NLNetherlands582
- NCNew Caledonia13
- NZNew Zealand238
- NINicaragua76
- NENiger64
- NGNigeria481
- NUNiue1
- NFNorfolk Island1
- KPNorth Korea118
- MKNorth Macedonia90
- MPNorthern Mariana Islands2
- NONorway120
- OMOman33
- PKPakistan494
- PWPalau18
- PSPalestinian Territories127
- PAPanama69
- PGPapua New Guinea31
- PYParaguay67
- PEPeru305
- PHPhilippines1,380
- PNPitcairn Islands1
- PLPoland768
- PTPortugal544
- PRPuerto Rico94
- QAQatar37
- RERéunion26
- RORomania788
- RURussia2,759
- RWRwanda49
- WSSamoa13
- SMSan Marino11
- STSão Tomé & Príncipe5
- SASaudi Arabia144
- SNSenegal119
- RSSerbia109
- SCSeychelles11
- SLSierra Leone49
- SGSingapore95
- SXSint Maarten5
- SKSlovakia150
- SISlovenia213
- SBSolomon Islands19
- SOSomalia64
- ZASouth Africa592
- GSSouth Georgia & South Sandwich Islands1
- KRSouth Korea155
- SSSouth Sudan22
- ESSpain1,483
- LKSri Lanka72
- BLSt. Barthélemy1
- SHSt. Helena3
- KNSt. Kitts & Nevis14
- LCSt. Lucia10
- MFSt. Martin3
- PMSt. Pierre & Miquelon2
- VCSt. Vincent & Grenadines7
- SDSudan99
- SRSuriname25
- SJSvalbard & Jan Mayen2
- SESweden281
- CHSwitzerland354
- SYSyria114
- TWTaiwan80
- TJTajikistan64
- TZTanzania313
- THThailand450
- TLTimor-Leste21
- TGTogo32
- TKTokelau3
- TOTonga5
- TTTrinidad & Tobago22
- TNTunisia237
- TRTürkiye909
- TMTurkmenistan91
- TCTurks & Caicos Islands2
- TVTuvalu6
- VIU.S. Virgin Islands4
- UGUganda163
- UAUkraine1,048
- AEUnited Arab Emirates94
- GBUnited Kingdom1,915
- USUnited States7,557
- UYUruguay58
- UZUzbekistan142
- VUVanuatu6
- VAVatican City1
- VEVenezuela237
- VNVietnam456
- WFWallis & Futuna3
- EHWestern Sahara7
- YEYemen34
- ZMZambia95
- ZWZimbabwe46