Get the elevation of every point on Earth.
This API provides you with access to elevation data across Earth's globe, absolutely free of charge.
To use the API, make a GET request to this endpoint with the required parameters. Here is an example request:
https://www.elevation-api.eu/v1/elevation/:lat/:lon[?json]
The API will return the elevation in meters. For example:
42
If the point is not into the DEM dataset, the response code will be 501 (or Null
in JSON mode)
https://www.elevation-api.eu/v1/elevation?pts=[[lat1,lon1],[lat2,lon2],[lat3,lon3]]
https://www.elevation-api.eu/v1/elevation?pts=[[46.24566,6.17081],[46.85499,6.78134]]
The digital elevation data comes from ESA's Copernicus program.
Don't be an idiot. Less than 10/s is okay
https://forge.k3s.fr/elevation-api-eu/api-server
For more information, you can reach me at f@vi-di.fr. Patches welcome!