Skip to content
API Reference

Elevation API Reference

Try the API in your browser

Base URL

https://elevation.maptoolkit.net

Endpoints

GET /

Get elevation for one or more coordinates

Returns an array of elevation values in meters, in the same order as the input coordinates. Provide coordinates using loc, points, or a combination of both.

ParameterInTypeRequiredDescription
locqueryarrayNoCoordinate in lat,lng format. Repeat this parameter to query multiple locations.
callbackquerystringNoWraps the response in a JSONP callback function with this name.
pointsquerystringNoJSON-encoded array of [lat, lng] coordinate pairs.
StatusDescription
200Array of elevation values in meters, one per input coordinate.
400Bad request.
500Internal server error.

Try it

The console below sends live requests against the endpoints above. You can browse it without an API key; Execute needs one, because every endpoint requires the api_key query parameter and returns 403 without it. Use Authorize to add your key. See First Steps if you do not have one yet.