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 minutesHourDay
Without a key303002,000
With a key1501,50010,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.

GEThttps://www.altimetercloud.com/api/places/q or lat lon

Parameters

ParameterMeaning
qWhat 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.
limitHow many places, 1 to 10 (6 if left out)
lat, lonInstead of q: the place at that point

Example

https://www.altimetercloud.com/api/places/?q=Hawkshead,%20UK&limit=3
Response (shortened)
{
  "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

CodeMeaning
412Neither q nor a point was sent, or one is not valid
429Too many requests; retry_after says how long to wait
503The search did not answer just now

Credits you must show

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.