Skip to content
Documentation menu
docs / api / get-tiles-territory-tiles-json
Tiles, styles and map assets

GET/tiles/{territory}/tiles.json

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

The zoom range, bounds and centre come from the PMTiles header; the tile template and attribution are filled in for the client.

data_updated reports how fresh the map behind those tiles is as an ISO-8601 date (YYYY-MM-DD), and data_updated_source names which of three sources answered, weakest last:

data_updated_sourcemeaning
channel_indexthe OSM extract date of the territory's latest published package
archive_osm_replicationthe archive's own planetiler:osm:osmosisreplicationtime
archive_mtimewhen the .pmtiles file was last written: a proxy for the data date, not the data date

Both are null when even the file's mtime is unreadable, and null means unknown, never "current". See territory_data_updated for why the chain has three links.

Call it

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

Parameters

NameInTypeRequiredDescription
territorypathstringyesTerritory id, e.g. uk

Responses

200TileJSON 3.0 document
FieldTypeRequiredDescription
attributionstringnoData attribution.
boundsnumber[]no[west, south, east, north].
centernumber[]no[longitude, latitude, zoom].
data_updatedstringnoISO 8601 date of the OSM extract behind the territory's latest package, or null if unknown.
data_updated_sourcestringnoWhere data_updated was read from.
maxzoomintegernoHighest zoom served.
minzoomintegernoLowest zoom served.
namestringnoTerritory name.
schemestringnoAlways xyz.
tilejsonstringnoTileJSON version.
tilesstring[]noTile URL templates.

Example: Recorded from the hosted gateway on 2026-11-05 with a test key: GET /tiles/planet/tiles.json; lists trimmed to their first items

json
{
  "attribution": "© OpenStreetMap contributors © OpenMapTiles",
  "bounds": [
    -180,
    -85.0511287,
    180,
    85.0511287
  ],
  "center": [
    0,
    0,
    0
  ],
  "data_updated": "2026-10-28",
  "data_updated_source": "archive_mtime",
  "maxzoom": 14,
  "minzoom": 0,
  "name": "planet",
  "scheme": "xyz",
  "tilejson": "3.0.0",
  "tiles": [
    "https://api.mapmap.ai/tiles/planet/{z}/{x}/{y}.mvt?v=1793159197"
  ]
}
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 or unknown territory

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_tilejson