Skip to content
API Reference

Terrain Tiles API Reference

Try the API in your browser

Base URL

https://tiles.maptoolkit.net

Endpoints

GET /{id}.json

Get TileJSON metadata for a tile source

Returns a TileJSON 2.2.0 document describing the tile source. Use terrain.json or hillshading.json to get the metadata for each source.

ParameterInTypeRequiredDescription
idpathstringYesTile source ID. Use terrain or hillshading. One of: terrain, hillshading.
StatusDescription
200TileJSON 2.2.0 document.
404Tile source not found.
500Internal server error.

GET /{id}/{z}/{x}/{y}.{format}

Get a terrain or hillshading tile

Returns a single raster tile.

  • terrain tiles are returned as WebP (Terrarium-encoded elevation data).
  • hillshading tiles are returned as PNG.
  • Tiles above zoom 14 return an empty 200 response.
ParameterInTypeRequiredDescription
idpathstringYesTile source ID. Use terrain or hillshading. One of: terrain, hillshading.
zpathintegerYesZoom level (0–14).
xpathintegerYesTile column (X coordinate in the XYZ tile grid).
ypathintegerYesTile row (Y coordinate in the XYZ tile grid).
formatpathstringYesTile format. Use webp for terrain-RGB, png for hillshading. One of: png, webp.
StatusDescription
200Tile data. An empty body indicates the tile is outside the source’s zoom range.
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.