---
title: "TileJSON"
method: GET
path: "/maps/{mapId}/{tileSize/}/tiles.json"
tags: ["Maps"]
---

# TileJSON

`GET /maps/{mapId}/{tileSize/}/tiles.json`

## Request

- Base URL: `https://api.maptiler.com`
- URL: `https://api.maptiler.com/maps/{mapId}/{tileSize/}/tiles.json`
- Auth: API key in query parameter `key`
- TypeScript: <https://skmtc.dev/maptiler/apis/maptiler-api-reference/docs/maps/:mapId/:tileSize/tiles.json/get.ts> (a function with typed inputs; its response is checked against the schema)

TileJSON describing the metadata of the map as well as link to the XYZ tiles. Can be used with various libraries to display a raster map (e.g. Leaflet, OpenLayers, ...).

## Response `200`

TileJSON of the map.

- TileJSON

---

[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)
