Static Maps API
Generally availableServer-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}.pngRender a static map image.
Parameters
| Name | In | Req | Description |
|---|---|---|---|
lon,lat | path | yes | Map center. |
zoom | path | yes | Zoom level. |
w x h | path | yes | Image size in pixels. |
key | query | yes | API 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