02
Elevation API
The number, for any point, path, or area.
Used for Route and trail profiles, flood and drainage checks, solar and antenna siting
The number, for any point, path, or area.
Used for Route and trail profiles, flood and drainage checks, solar and antenna siting
Pick your sources and stream the tiles.
Used for Terrain models and 3D scenes, ML training data, GIS and hydrology analysis
National lidar and global models, as published.
Plain HTTP. Or point an LLM at llms.txt.
curl "https://api.darly.io/v1/elevation/point?lat=45.51&lon=-73.56" \
-H "X-API-Key: $DARLY_API_KEY"import requests
resp = requests.get(
"https://api.darly.io/v1/elevation/point",
params={"lat": 45.51, "lon": -73.56},
headers={"X-API-Key": DARLY_API_KEY},
)
print(resp.json()["result"]["elevation"])const resp = await fetch(
"https://api.darly.io/v1/elevation/point?lat=45.51&lon=-73.56",
{ headers: { "X-API-Key": process.env.DARLY_API_KEY } },
)
const { result } = await resp.json()
console.log(result.elevation){
"status": "OK",
"result": {
"lat": 45.51,
"lon": -73.56,
"elevation": 36.42,
"collection": "can-nrcan-hrdem-1m",
"vertical_datum": "egm2008",
"surface": "dtm",
"resolution": 1.0
}
}Example result · Montréal
22.6 m elevationNRCan HRDEM · 1 m DTM
from pystac_client import Client
catalog = Client.open("https://api.darly.io")
search = catalog.search(
collections=["can-nrcan-hrdem-1m"],
bbox=[-123.3, 49.1, -122.9, 49.4],
max_items=5,
)
for item in search.items():
print(item.id, item.assets["dtm"].href)curl -X POST "https://api.darly.io/search" \
-H "Content-Type: application/json" \
-d '{
"collections": ["can-nrcan-hrdem-1m"],
"bbox": [-123.3, 49.1, -122.9, 49.4],
"limit": 5
}'const resp = await fetch("https://api.darly.io/search", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
collections: ["can-nrcan-hrdem-1m"],
bbox: [-123.3, 49.1, -122.9, 49.4],
limit: 5,
}),
})
const { features } = await resp.json()Example result · Vancouver
1 matching terrain tilecan-nrcan-hrdem-1m · DTM COG
10,000 free credits a month. No card, no subscription.