Elevation API

Elevation for any point on Earth.

Send up to 100 coordinates and get each one's ground elevation in metres or feet. Use it for route profiles, flood checks, or to put an altitude next to a location.

What you get

  • Batch lookups

    Up to 100 points in one request, each answered independently. Points without data return null instead of failing the request.

  • Open data

    From Terrain Tiles on AWS Open Data, built from SRTM, GMTED, ETOPO1 and other sources. Credit them where you show elevations.

  • From the browser

    Any key of the project works, including publishable keys locked to your origins.

Try it

Copy this, swap in a key from your project, and run it.

Request
curl "https://api.mapsocket.com/v1/elevation?locations=45.8326,6.8652|38.7139,-9.1334&units=m" -H "Authorization: pk_live_…"
Response
{
  "units": "m",
  "elevations": [
    { "latitude": 45.8326, "longitude": 6.8652, "elevation": 4780.1 },
    { "latitude": 38.7139, "longitude": -9.1334, "elevation": 89.2 }
  ]
}

Good to know

  • Elevations are interpolated from global elevation data, so expect metres of error, more on steep ground. Not for surveying.

Read more