Places API
Access & limitsPublic, no key needed · Light▾
Open to everyone. A free API key from your profile raises the limits: send it in an X-API-Key header, or as api_key= in the address.
| 5 minutes | Hour | Day | |
|---|---|---|---|
| Without a key | 30 | 300 | 2,000 |
| With a key | 150 | 1,500 | 10,000 |
Log in to create a free key on your profile page.
Every answer carries X-RateLimit-Remaining and X-RateLimit-Reset. Over a limit, the answer is error 429 with retry_after in seconds. Refused requests do not count.
The place search every page and tool on the site uses. Search by name for towns, villages, hills, lakes, airfields, streets and more, anywhere in the world, or ask for the place at a point. It is answered from our own copy of OpenStreetMap through Photon on the Millom server, and from our GeoNames table on the main server whenever Millom is not answering; the answer says which.
q or lat lonParameters
| Parameter | Meaning |
|---|---|
q | What to search for, up to 120 characters. Words after a comma narrow it to a country, region or county, as Hawkshead, UK or Seattle, WA. |
limit | How many places, 1 to 10 (6 if left out) |
lat, lon | Instead of q: the place at that point |
Example
https://www.altimetercloud.com/api/places/?q=Hawkshead,%20UK&limit=3
{
"success": true,
"query": "Hawkshead, UK",
"source": "openstreetmap", or "geonames"
"count": 3,
"places": [
{ "name": "Hawkshead", "type": "city", "kind": "place=village",
"lat": 54.374765, "lon": -2.998787,
"county": "Westmorland and Furness", "state": "England",
"country": "United Kingdom", "countrycode": "GB",
"extent": [-3.036271, 54.337497, -2.967903, 54.406622], west, south, east, north
"osm": { "type": "relation", "id": 8296302 } },
...
],
"credits": [ ... ]
}
kind is what the place is as OpenStreetMap tags it, such as place=village, natural=peak or aeroway=aerodrome. Fields a place does not have are left out.
Errors
| Code | Meaning |
|---|---|
412 | Neither q nor a point was sent, or one is not valid |
429 | Too many requests; retry_after says how long to wait |
503 | The search did not answer just now |
Credits you must show
- Answers from OpenStreetMap: © OpenStreetMap contributors, available under the Open Database License.
- Answers from GeoNames: GeoNames, licensed CC BY 4.0, reduced by Altimeter Cloud to the kinds of place it keeps.
Crediting AltimeterCloud
Free to use. If you use this API, or anything made from the answers, in a commercial product or service, credit AltimeterCloud with a link to www.altimetercloud.com at the point of use: on the screen, page or printout where the data appears, for example “Data from AltimeterCloud.com”. Any credits the data's own sources ask for, listed on this page, apply as well.



















