Heights and ocean depths,
anywhere on Earth.
One API call returns the height of any point on land and the depth of any point at sea. On land it answers from the 30 m grid of Copernicus, in Switzerland and Liechtenstein from the 2 m grid of swisstopo, and at sea from GEBCO. Requests and answers have the format of the Google Elevation API, and the key is the one you use for Overpass queries.
- 1 million lookups a month free
- Elevation only: $7/month
curl 'https://api.overpass.ch/v1/YOUR_API_KEY/elevation?locations=46.0207,7.7491|35.95,-5.6' # Zermatt, then the Strait of Gibraltar: { "status": "OK", "results": [ { "elevation": 1603, "location": { "lat": 46.0207, "lng": 7.7491 }, "surface": "land", "dataset": "swissalti3d", "resolution": 2 }, { "elevation": -678.3, "location": { "lat": 35.95, "lng": -5.6 }, "surface": "sea", "dataset": "gebco-2026", "resolution": 460 } ], "lookups": 2 }
Show your customers the terrain
For each case there is a page with the code and a live demo. Copy the code and fill in your own tours, places or listings. The heights are looked up once, on your computer or server, so visitors do not cost any lookups. The Elevation plan covers it for $7 a month, with 100'000 map tiles.

Profiles for your tours
The route on a map, the profile below it, the metres up and down and the walking time.

The view from your hotel
The summits seen from your terrace with their names, for the website or a board.

Sun side of a property
Height, slope and the side each house faces, from five lookups per listing.

Places above the snow line
Heights for all your places in one request, compared with the forecast.
The Matterhorn in 155,350 lookups
Every dot is one point of our 30 m grid around the Matterhorn, coloured by height and shaded by slope.
An area of 10 × 10 km at true vertical scale, seen from Zermatt: 155,350 points of Copernicus GLO-30, 31 m apart from north to south and 21 m from east to west. The highest grid point is 4,330 m; the summit itself is 4,478 m (see accuracy). The cloud shows the 30 m grid on both sides of the Italian border; for points in Switzerland the API answers from the 2 m grid of swisstopo, which reads 4,477 m on the summit. Land data: Copernicus WorldDEM™-30.
Look up any point
Pick a place or enter coordinates. The answer comes live from the same API you get with a key.
| Place | Location | Elevation | Surface | Data |
|---|
Land and sea, in one answer
Every point on land
Copernicus DEM GLO-30: a worldwide 30 m grid from the TanDEM-X radar mission, including Antarctica. In Switzerland and Liechtenstein, swissALTI3D of swisstopo, a 2 m grid. Lakes return their water level.
Depth at sea
Where Copernicus marks the ocean, the GEBCO grid answers with the depth. Profiles can cross coastlines, and the field surface of each result is land or sea.
Google-compatible
Same parameters (locations, path, samples, encoded polylines) and the same result format as the Google Elevation API and Open Topo Data. Switching means changing the URL.
Route profiles and GPX
For a line or a GPX track you get a point every 90 m (closer if you ask) with its distance, plus the total distance, ascent, descent, and the lowest and highest point.
Map data and heights together
The same key works for Overpass queries on the full planet. Find every hut, summit or dive site, and add their heights with ?elevation=1 in the same request.
Big batches
Up to 10,000 locations per request on paid plans. Lookups have their own monthly allowance and never use up Overpass requests.
50 million lookups for $7 a month
Every Overpass plan includes elevation too, and the free plan has 1 million lookups.
| Provider | For 50 million lookups a month | Notes |
|---|---|---|
| overpass.ch Elevation | $7 | Up to 10,000 locations per request. Land and sea. Hosted in the EU. |
| Google Elevation API | about USD 465 | Billed per request of up to 512 locations: 5,000 requests free, then USD 5 per 1,000. |
| GPXZ | from USD 99 | The USD 99 plan has 2,500 requests a day. |
| Jawg | from EUR 250 | Price on request above that. |
| Open Topo Data (public server) | free | 1,000 requests a day of up to 100 locations; best effort, no guarantees. |
Prices as listed by the providers in October 2026. Other providers use finer data in some regions; see accuracy.
Code examples
curl 'https://api.overpass.ch/v1/YOUR_API_KEY/elevation?locations=46.0207,7.7491|46.4500,6.6000'
import requests
URL = "https://api.overpass.ch/v1/YOUR_API_KEY/elevation"
places = [[45.9763, 7.6586], [46.0207, 7.7491], [46.5475, 7.9853]]
r = requests.post(URL, json={"locations": places}, timeout=30)
r.raise_for_status()
for res in r.json()["results"]:
print(res["location"], res["elevation"], res["surface"])
const url = "https://api.overpass.ch/v1/YOUR_API_KEY/elevation?locations=" +
encodeURIComponent("31.5,35.5|11.3733,142.5917");
const { results } = await (await fetch(url)).json();
for (const r of results) console.log(r.elevation, r.surface, r.dataset);
curl https://api.overpass.ch/v1/YOUR_API_KEY/elevation/profile --data-binary @ride.gpx # "profile": { "distance_m": …, "ascent_m": …, "descent_m": …, "min_m": …, "max_m": … }
All parameters, the response format and the error codes are in the documentation.
Guides and examples
- Switching from the Google Elevation API: what stays the same and what it costs.
- Open-Elevation and Open Topo Data: their public limits and how to move.
- Add elevation to a GPX file, and node elevations in OSMnx.
- Elevation examples: peaks, huts, lifts, stations, sea depths and route profiles from OpenStreetMap.
Accuracy
- 30 m grid. Heights are interpolated between grid points about 30 m apart. In villages, valleys and rolling terrain they are typically within a few metres. Sharp summits read low, on needle-like peaks by a few hundred metres: Everest reads 8,711 m instead of 8,849 m. Copernicus gives the vertical accuracy of the data as better than 4 m for 90% of points. Armenia and Azerbaijan are not in the 30 m grid we use; there the answer comes from the 90 m grid (GLO-90), and
datasetnames it. - 2 m in Switzerland and Liechtenstein. There swissALTI3D of swisstopo answers, with
"dataset": "swissalti3d": the Matterhorn reads 4,477 m on its summit (official height 4,478 m), Zermatt 1,603 m, Lake Geneva 372 m. swisstopo gives its accuracy as 0.3 to 0.5 m where it comes from laser scanning and 1 to 3 m above 2,000 m, where it comes from stereo images (one standard deviation). Its heights are converted to EGM2008 like the rest, which in Switzerland is up to about 0.8 m off the official heights. - Surface and terrain. Copernicus measures the surface the radar sees, with buildings and vegetation: in forests and towns, the height is that of the trees and roofs. swissALTI3D is a terrain model, the ground without vegetation and buildings. Where a route crosses the Swiss border, heights in a forest or a town drop by the height of the trees or roofs.
- Sea depths come from the GEBCO grid (about 460 m). Far from surveyed areas they are estimates. Not for navigation.
- Good for altitude bands, regional analysis, long routes, maps, and enriching places with heights. Not for engineering, aviation, drones or navigation.
Land: produced using Copernicus WorldDEM™-30 (WorldDEM™-90 in Armenia and Azerbaijan) © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA; all rights reserved. Switzerland and Liechtenstein: © swisstopo. Sea: GEBCO Compilation Group (2026) GEBCO 2026 Grid. None of these organisations endorses overpass.ch.
Questions
Is there a free elevation API?
Yes. The free overpass.ch plan includes 1 million elevation lookups a month (up to 1,000 locations per request), together with Overpass access. It is for evaluation and for personal, educational and non-profit projects; for commercial use, the Elevation plan costs $7 a month.
How do I switch from the Google Elevation API?
Replace https://maps.googleapis.com/maps/api/elevation/json?…&key=… with https://api.overpass.ch/v1/YOUR_API_KEY/elevation?…. The locations, path and samples parameters and the results[].elevation, location and resolution fields are the same. The data is a 30 m grid, with a 2 m grid in Switzerland and Liechtenstein.
What counts as a lookup?
One location, or one sample point of a profile. A request with 500 locations uses 500 lookups. Failed requests are not counted.
Can I get the depth of the ocean?
Yes. Wherever Copernicus marks the ocean, the answer is the GEBCO depth, as a negative number, with "surface": "sea". Lakes return their water level, not their bottom.
Can I use the data commercially?
Yes, with a paid plan, from the Elevation plan at $7 a month. You may store the results and show them on any map. When you publish or display them, credit the data sources as described in the documentation and the terms.
Get a free API key
The free plan does not need a credit card. The same key works for Overpass and elevation.