Search all places

Search the full GeoNames gazetteer — ~12M features worldwide (cities, towns, mountains, rivers, regions and more), ordered by population. Filter by name (`q`), `country`, and feature `class`. Also: `GET /places/{geonameId}` for one place and `GET /places/near?lat=&lng=` for the nearest features to a coordinate.

GET
/places

Search the full GeoNames gazetteer — ~12M features worldwide (cities, towns, mountains, rivers, regions and more), ordered by population. Filter by name (q), country, and feature class. Also: GET /places/{geonameId} for one place and GET /places/near?lat=&lng= for the nearest features to a coordinate.

Query Parameters

q?string

Match places whose name contains this text (accent/punctuation-insensitive).

country?string

ISO 3166-1 alpha-2 country code.

class?string

GeoNames feature class: A (admin), P (populated place), H (water), T (terrain), L (area), S (spot), R (road), V (vegetation), U (undersea).

limit?integer

Max results (1–100, default 20).

Response Body

application/json

text/plain

curl -X GET "https://example.com/places?q=kilimanjaro&country=TZ&class=T&limit=20"
[  {    "geonameId": 149232,    "name": "Kilimanjaro",    "asciiName": "Kilimanjaro",    "featureClass": "T",    "featureCode": "MT",    "countryCode": "TZ",    "admin1Code": "string",    "latitude": -3.07583,    "longitude": 37.35333,    "population": 0,    "timezone": "Africa/Dar_es_Salaam"  }]
"Country not found"