---
title: "Style JSON of the map"
method: GET
path: "/maps/{mapId}/style.json"
tags: ["Maps"]
---

# Style JSON of the map

`GET /maps/{mapId}/style.json`

## Request

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

Style JSON describing the map cartography. Can be used with various libraries to display a vector map (e.g. Mapbox GL JS, OpenLayers, ...).

## Response `200`

Style JSON of the map.

- StyleJSON: Style JSON object

---

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