Skip to content
Documentation menu
docs / api / get-tiles-territory-z-x-y-mvt
Tiles, styles and map assets

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

Access and price

AuthAn API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. A browser (maps) key may call it.
PriceDiscounted: 1 call per 50 tile, TileJSON or style requests per key on the hosted gateway (SN_TILE_METER_DIVISOR); at the quota ceiling every request bills in full. Class: standard. Published as unit_rules.tiles in /pricing.json.

What it does

One tile. For a vector archive the .mvt extension is required (.pbf is also accepted); a URL without an extension is a 404. A raster archive (the weather layers, for example) is served at the same path with .png or .webp in place of .mvt, whichever the archive holds, as image/png or image/webp. The extension must match the archive: .png on a vector archive, or .mvt on a raster one, is a 404.

Call it

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

Parameters

NameInTypeRequiredDescription
territorypathstringyesTerritory id, e.g. uk
zpathintegeryesZoom level Limits: at least 0.
xpathintegeryesTile column Limits: at least 0.
ypathintegeryesTile row. The path continues with .mvt (or .pbf), for example /tiles/uk/12/2047/1362.mvt, or with .png or .webp for a raster archive Limits: at least 0.

Responses

200One Mapbox Vector Tile. From a raster archive, the PNG or WebP image instead, with that image's content type
204No data for this tile (empty tile)
304Not modified (If-None-Match matched the ETag)
401No key, or a missing, malformed, unknown, revoked or expired one (unauthorized); the body carries signup, docs and a one-call hint for a free key

application/problem+json · Problem

402Beyond the included volume with no way to pay this call: an x402 body naming how to pay (provisional key past its allowance, prepaid balance below the price, or a rejected X-PAYMENT). Not problem+json

application/json · X402PaymentRequired

403The key may not call this: a browser key outside its scope (scope-insufficient), a request from an origin the key does not allow (origin-not-allowed), or an account restriction (forbidden)

application/problem+json · Problem

404Tiles not configured, unknown territory, out-of-range tile, or an extension the archive does not hold

application/problem+json · Problem

429Per-key rate limit (rate-limited, with Retry-After), or monthly quota exhausted with no payment path (quota-exceeded)

application/problem+json · Problem

504The request did not finish within the gateway's request deadline (request-timeout)

application/problem+json · Problem

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

Also under Tiles, styles and map assets

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