Documentation menu
Tiles, styles and map assets
GET/v1/static-map
Access and price
| Auth | An API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. A browser (maps) key may call it. |
|---|---|
| Price | A flat 15 calls per image, on either verb; a render that times out (504) is still billed. Class: standard. Published as unit_rules.static_map in /pricing.json. |
What it does
Render a map view to an image.
An API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. Price: A flat 15 calls per image, on either verb; a render that times out (504) is still billed.
Call it
bash
curl -fsS -X GET "https://api.mapmap.ai/v1/static-map" \
-H "Authorization: Bearer $MAPMAP_KEY"Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| center | query | string | no | Camera centre as lon,lat; requires zoom |
| zoom | query | number | no | Zoom level 0-20, required with center |
| bbox | query | string | no | Fit the camera to west,south,east,north instead of center/zoom |
| size | query | string | no | WxH in pixels, up to 1280 on either side; append @2x for double pixel density |
| bearing | query | number | no | Camera bearing in degrees |
| pitch | query | number | no | Camera pitch in degrees, capped at 85 |
| style | query | string | no | A first-party base id: light (default), dark, streets, midnight, navigator-day, navigator-night, fleet, outdoor, dataviz, backdrop or print. fleet is the palette only: its vehicle-restriction overlay is a mapmap.ai runtime layer and no rendered image carries it. Or a hosted style id (optionally @version; resolved before the render, so an id this deployment does not host is a fast 404 and is not billed), or an https:// style URL on an allowlisted MapMap host |
| format | query | string | no | png (default), webp or jpeg |
| quality | query | integer | no | 1-100 for the lossy formats Limits: at least 0. |
| route | query | string | no | Encoded polyline overlay (alias polyline) |
| precision | query | integer | no | Polyline precision: 6 (default, POST /route) or 5 (GET /route/v1) Limits: at least 0. |
| geojson | query | string | no | GeoJSON overlay; repeatable, or send the value in a POST body |
| markers | query | string | no | lon,lat[,label[,colour]] pins, ;-separated, up to 50 |
| satellite | query | boolean | no | Satellite imagery where the pilot region has coverage |
| buildings3d | query | boolean | no | 3D building extrusions; pair with a pitch |
| lang | query | string | no | local, or an ISO 639 code, for map labels |
| pois | query | boolean | no | 0/false hides POI labels, 1/true shows them; omitted, the chosen style decides (the navigator, dataviz and backdrop bases draw none) |
Responses
200The rendered image, with the renderer's own ETag and Cache-Control
304Not modified (the request carried a matching If-None-Match)
400The renderer rejected the parameters (problem+json); no image was drawn and the units are returned
application/problem+json · Problem
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 keyapplication/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+jsonapplication/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
404
style named a hosted style id this deployment does not host (problem+json); refused before any render, so the units are returnedapplication/problem+json · Problem
414The query string is over the renderer's cap (problem+json); send the overlay as a POST body instead. No image was drawn and the units are returned
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 renderer produced no image within the deadline, after its own retry on a fresh browser (problem+json). Billed as a render. Also: The 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
GET /avatars/{version}/{path}GET /fonts/{fontstack}/{range}GET /pointclouds/{dataset}/{file}GET /sprite/{file}GET /stylesPOST /stylesDELETE /styles/{spec}GET /styles/{spec}POST /styles/{spec}GET /styles/{spec}/themeGET /tiles/{territory}/{z}/{x}/{y}.mvtGET /tiles/{territory}/style.jsonGET /tiles/{territory}/tiles.jsonPOST /v1/static-map
Generated from https://api.mapmap.ai/openapi.json on 2026-11-12 · operationId get_static_map