Documentation menu
GET/tiles/{territory}/tiles.json
Access and price
| Auth | An API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. A browser (maps) key may call it. |
|---|---|
| Price | Discounted: 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_source | meaning |
|---|---|
channel_index | the OSM extract date of the territory's latest published package |
archive_osm_replication | the archive's own planetiler:osm:osmosisreplicationtime |
archive_mtime | when 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
curl -fsS -X GET "https://api.mapmap.ai/tiles/{territory}/tiles.json" \
-H "Authorization: Bearer $MAPMAP_KEY"Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| territory | path | string | yes | Territory id, e.g. uk |
Responses
| Field | Type | Required | Description |
|---|---|---|---|
| attribution | string | no | Data attribution. |
| bounds | number[] | no | [west, south, east, north]. |
| center | number[] | no | [longitude, latitude, zoom]. |
| data_updated | string | no | ISO 8601 date of the OSM extract behind the territory's latest
package, or null if unknown. |
| data_updated_source | string | no | Where data_updated was read from. |
| maxzoom | integer | no | Highest zoom served. |
| minzoom | integer | no | Lowest zoom served. |
| name | string | no | Territory name. |
| scheme | string | no | Always xyz. |
| tilejson | string | no | TileJSON version. |
| tiles | string[] | no | Tile 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
{
"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"
]
}unauthorized); the body carries signup, docs and a one-call hint for a free keyapplication/problem+json · Problem
X-PAYMENT). Not problem+jsonapplication/json · X402PaymentRequired
scope-insufficient), a request from an origin the key does not allow (origin-not-allowed), or an account restriction (forbidden)application/problem+json · Problem
application/problem+json · Problem
rate-limited, with Retry-After), or monthly quota exhausted with no payment path (quota-exceeded)application/problem+json · Problem
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