Skip to content

50,000 free calls a month, card-free. Get an API key →

Documentation menu
docs / api / get-tiles-territory-z-x-y
tiles

GET/tiles/{territory}/{z}/{x}/{y}

API key required, sent as Authorization: Bearer snk_… or ?api_key=snk_….

What it does

Reads the (z, x, y) tile straight from the territory PMTiles and returns its bytes with the MVT content-type, the archive's tile compression as Content-Encoding (PMTiles stores MVT gzip-compressed by convention), a strong BLAKE3 ETag and immutable cache headers.

  • Unknown territory, tiles not configured, out-of-range coordinates, or a bad file extension: 404.
  • A tile absent from the archive (in range, no data): 204 No Content; the empty-tile convention MapLibre treats as a blank tile.

Call it

bash
curl -fsS -X GET "https://api.mapmap.ai/tiles/{territory}/{z}/{x}/{y}" \
  -H "Authorization: Bearer $MAPMAP_KEY"

Parameters

NameInRequiredDescription
territorypathyesTerritory id, e.g. uk
zpathyesZoom level
xpathyesTile column
ypathyesTile row plus extension, e.g. 21.mvt (or .pbf)

Responses

200One Mapbox Vector Tile
204No data for this tile (empty tile)
304Not modified (If-None-Match matched the ETag)
404Tiles not configured, unknown territory, or out-of-range tile

Error bodies follow the shared problem model documented on API conventions.

Also under tiles

Generated from https://api.mapmap.ai/openapi.json on 2026-09-17 · operationId get_tile