Open Topo Data API
Overview
Open Topo Data is a free elevation API that returns the altitude above sea level (or ocean depth below sea level) for any latitude and longitude on Earth. It aggregates multiple topographic datasets including SRTM, ETOPO1, and others. It requires no API key and is great for hiking apps, route planners, or any project needing terrain data.
Beginner Tip
The public API is limited to 1 request per second and 100 locations per request. For bulk elevation lookups, you can self-host Open Topo Data for free using Docker.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from Open Topo Data",
"description": "Elevation and ocean depth for a latitude and longitude",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
results Array of elevation results, one per input coordinate results[].elevation Elevation in meters above sea level; negative values indicate below sea level results[].location.lat Latitude of the queried point results[].location.lng Longitude of the queried point results[].dataset Name of the topographic dataset used for this elevation result status OK if the request succeeded; error message if something went wrong Implementation Example
const url = "https://www.opentopodata.org/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →administrative-divisons-db
⭐ Beginner's PickThe Administrative Divisions DB API provides a structured list of all administrative divisions (states, provinces, regions, cities) for countries around the world.
adresse.data.gouv.fr
adresse.data.gouv.fr provides programmatic access to address database of france, geocoding and reverse via REST API.
Airtel IP
⭐ Beginner's PickAirtel IP is a free, no-auth IP geolocation API that aggregates data from multiple sources to return the country associated with any given IP address.
bng2latlong
⭐ Beginner's Pickbng2latlong is a simple, free API that converts British National Grid (OSGB36) easting and northing coordinates into standard WGS84 latitude and longitude.
Cartes.io
⭐ Beginner's PickCartes.io is a free API that lets you create maps and add custom markers without signing up.