Skip to content

Static Maps API

Generally available

Server-rendered map images via a URL.

Request a rendered PNG at a center, zoom and size. Rendered on an isolated renderer; attribution is drawn on the image. Use where JavaScript is unavailable (emails, PDFs, notifications).

GET/maps/staticmap/{lon},{lat}/{zoom}/{w}x{h}.png

Render a static map image.

Parameters

NameInReqDescription
lon,latpathyesMap center.
zoompathyesZoom level.
w x hpathyesImage size in pixels.
keyqueryyesAPI key.

Responses

  • 200 — PNG image.
curl "https://airfreemap.com/api/v1/maps/staticmap/144.9671,-37.8183/14/600x400.png?key=$AIRFREE_MAPS_KEY" -o map.png