---
title: "Bounds-based image"
method: GET
path: "/maps/{mapId}/static/{minx},{miny},{maxx},{maxy}/{width}x{height}{scale}.{format}"
tags: ["Static maps"]
---

# Bounds-based image

`GET /maps/{mapId}/static/{minx},{miny},{maxx},{maxy}/{width}x{height}{scale}.{format}`

## Request

- Base URL: `https://api.maptiler.com`
- URL: `https://api.maptiler.com/maps/{mapId}/static/{minx},{miny},{maxx},{maxy}/{width}x{height}{scale}.{format}`
- Auth: API key in query parameter `key`
- TypeScript: <https://skmtc.dev/maptiler/apis/maptiler-api-reference/docs/maps/:mapId/static/:minx,:miny,:maxx,:maxy/:widthx:height:scale.:format/get.ts> (a function with typed inputs; its response is checked against the schema)

Generates a raster image based on the given bounds.

## Response `200`

Static map image. The content type matches the requested `format`: `image/png` for `png`, `image/jpeg` for `jpg`, and `image/webp` for `webp`.

## Other responses

- `400`: Out of bounds / Invalid format / Invalid image size
- `403`: Key is missing, invalid or restricted
- `404`: The item does not exist
- `414`: URI Too Long. Maximum allowed length is 8192 bytes.

---

[API](https://skmtc.dev/maptiler/apis/maptiler-api-reference.md) - [All operations](https://skmtc.dev/maptiler/apis/maptiler-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/maptiler/apis/maptiler-api-reference/revisions/68ce3046fc1a?raw)
