Get started

elevation-api.eu provides a free elevation service aronud the Earth's globe. Under the scenes, it uses the Copernicus DEM dataset from the European Space Agency.

get elevation

To get elevation (in meters, of course) of a point on earth, you need to do a GET request to the following url:
https://www.elevation-api.eu/elevation/:lat/:lon
Latitude and Longitude should be on the WGS-84 datum. For example, the elevation of lake Leman is:
curl https://www.elevation-api.eu/elevation/46.24566/6.17081
368

Errors

The elevation api uses the following error codes:

Error Code Meaning
HTTP 501 The requested elevation is outside the DEM's bound. Usually this happens if you try to request a point on Sea. You can assume the elevation to be around 0m.