MapTiler Maps API

The Maps API from MapTiler — 8 operation(s) for maps.

GitHub OpenAPI
Business capability
Maps & Tiles AE-120.20

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /maps/{mapId}/ Get the embeddable viewer for a map · Embeddable HTML viewer #
Ask an LLM
“How do I embed a map in a webpage with its own viewer?”
“Can I get an HTML viewer for one of my maps?”
Tell an agent
Open the embeddable viewer for map {mapId}.
Show the map {mapId} in its own viewer.
GET /maps/{mapId}/style.json Get a map's style JSON · Style JSON of the map #
Ask an LLM
“How do I get the style JSON for a vector map to use with Mapbox GL JS?”
“Where is the cartography style of my map defined?”
Tell an agent
Get the style JSON for map {mapId}.
Download the vector style of map {mapId}.
GET /maps/{mapId}/sprite{scale}.{format} Get a map's sprites · Map symbols (sprites) #
Ask an LLM
“How do I get the map symbols (sprites) for a vector map?”
“Are sprites still served for my map?”
Tell an agent
Get the sprites for map {mapId} as {format}.
Download map {mapId} sprites at scale {scale} in {format}.
GET /maps/{mapId}/{tileSize/}/{z}/{x}/{y}{scale}.{format} Get raster tiles of a map · Raster XYZ tiles #
Ask an LLM
“How do I fetch a raster tile of a map at a zoom level and tile coordinates?”
“Can I get a map tile for Leaflet or OpenLayers at a specific zoom?”
Tell an agent
Get tile {x}/{y} at zoom {z} of map {mapId}.
Fetch map {mapId} tile {x}/{y} at zoom {z} as {format}.
GET /maps/{mapId}/{tileSize/}/tiles.json Get a map's TileJSON · TileJSON #
Ask an LLM
“How do I get the TileJSON for a map to use with Leaflet or OpenLayers?”
“Where is the metadata for a map's tiles?”
Tell an agent
Get the TileJSON for map {mapId}.
Fetch map {mapId} tile metadata in {tileSize} tiles.
GET /maps/{mapId}/tiles Get the OGC API - Tiles endpoint for a map · OGC API - Tiles #
Ask an LLM
“How do I get the OGC API - Tiles landing page for a map?”
“Can my GIS software use a map's OGC Tiles endpoint?”
Tell an agent
Get the OGC API - Tiles endpoint for map {mapId}.
Open the OGC Tiles landing page of map {mapId}.
GET /maps/{mapId}/tileMatrixSet Get a map's tile matrix sets · OGC API TileMatrixSets #
Ask an LLM
“How do I get the tile matrix sets for a map's OGC API?”
“What tile matrix sets does a map support?”
Tell an agent
Get the tile matrix sets for map {mapId}.
Show the OGC tile matrix sets of map {mapId}.
GET /maps/{mapId}/WMTSCapabilities.xml Get a map's WMTS Capabilities XML · WMTS Capabilities #
Ask an LLM
“How do I get the WMTS Capabilities XML for a map to use in QGIS?”
“Where is the WMTS metadata for a map?”
Tell an agent
Get the WMTS Capabilities XML for map {mapId}.
Download the WMTS capabilities of map {mapId}.

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/maptiler:maptiler-maps-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

maptiler-maps-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MapTiler Maps API
  version: '1.0'
  description: MapTiler API allows you to programmatically access all the data, maps, services, and resources available in your MapTiler account.
  termsOfService: https://www.maptiler.com/terms/
  contact:
    name: Support
    email: support@maptiler.com
    url: https://docs.maptiler.com/support/requests/
    premium: https://www.maptiler.com/support/
servers:
- description: MapTiler API
  url: https://api.maptiler.com/
security:
- key: []
tags:
- name: Maps
paths:
  /maps/{mapId}/:
    parameters:
    - $ref: '#/components/parameters/mapId'
    get:
      summary: Embeddable HTML viewer
      tags:
      - Maps
      responses:
        '200':
          description: ''
          content:
            text/html: {}
      operationId: getMapsByMapId
      x-operation-id-source: derived
  /maps/{mapId}/style.json:
    parameters:
    - $ref: '#/components/parameters/mapId'
    get:
      summary: Style JSON of the map
      description: Style JSON describing the map cartography. Can be used with various libraries to display a vector map (e.g. Mapbox GL JS, OpenLayers, ...).
      tags:
      - Maps
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StyleJSON'
      operationId: getMapsByMapIdStyleJson
      x-operation-id-source: derived
  /maps/{mapId}/sprite{scale}.{format}:
    parameters:
    - $ref: '#/components/parameters/mapId'
    - name: scale
      in: path
      required: false
      schema:
        type: string
        enum:
        - '@2x'
    - name: format
      in: path
      required: true
      schema:
        type: string
        enum:
        - png
        - json
    get:
      summary: Map symbols (sprites)
      description: 'Map symbols (sprites) required to display the vector map.

        Deprecated: use Sprites API.'
      deprecated: true
      tags:
      - Maps
      security: []
      responses:
        '200':
          content:
            application/json: {}
            image/png: {}
      operationId: getMapsByMapIdSprite{scale}{format}
      x-operation-id-source: derived
  /maps/{mapId}/{tileSize/}/{z}/{x}/{y}{scale}.{format}:
    parameters:
    - $ref: '#/components/parameters/mapId'
    - name: tileSize/
      in: path
      required: false
      schema:
        type: integer
        enum:
        - '256'
    - $ref: '#/components/parameters/z'
    - $ref: '#/components/parameters/x'
    - $ref: '#/components/parameters/y'
    - $ref: '#/components/parameters/rasterizationScale'
    - $ref: '#/components/parameters/rasterizationFormat'
    get:
      summary: Raster XYZ tiles
      description: Rasterized tiles (XYZ) of the map. Can be used with various libraries to display a raster map (e.g. Leaflet, OpenLayers, ...). It's usually better (if possible) to use the TileJSON rather than using the tile URL directly.
      tags:
      - Maps
      responses:
        '200':
          $ref: '#/components/responses/RasterizedImage'
        '400':
          description: Out of bounds / Invalid format
      operationId: getMapsByMapId{tileSize}ByZByXByY}{scale}{format
      x-operation-id-source: derived
  /maps/{mapId}/{tileSize/}/tiles.json:
    parameters:
    - $ref: '#/components/parameters/mapId'
    - name: tileSize/
      in: path
      required: false
      schema:
        type: integer
        enum:
        - '256'
    get:
      summary: TileJSON
      description: 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, ...).
      tags:
      - Maps
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TileJSON'
      operationId: getMapsByMapId{tileSize}TilesJson
      x-operation-id-source: derived
  /maps/{mapId}/tiles:
    parameters:
    - $ref: '#/components/parameters/mapId'
    get:
      summary: OGC API - Tiles
      description: Tileset landing page of the rasterized tiles. Can be used in software supporting the OGC API - Tiles v1.0 specification.
      tags:
      - Maps
      responses:
        '200':
          content:
            application/json:
              schema:
                type: string
      operationId: getMapsByMapIdTiles
      x-operation-id-source: derived
  /maps/{mapId}/tileMatrixSet:
    parameters:
    - $ref: '#/components/parameters/mapId'
    get:
      summary: OGC API TileMatrixSets
      description: Description of the tileset tile matrix sets according to the OGC Web API. This resource is linked from the OGC API - Tiles endpoint.
      tags:
      - Maps
      responses:
        '200':
          content:
            application/json:
              schema:
                type: string
      operationId: getMapsByMapIdTileMatrixSet
      x-operation-id-source: derived
  /maps/{mapId}/WMTSCapabilities.xml:
    parameters:
    - $ref: '#/components/parameters/mapId'
    get:
      summary: WMTS Capabilities
      description: WMTS Capabilities XML document describing the metadata of the map as well as link to the XYZ tiles. Can be used with various GIS software (e.g. QGIS) to display the map.
      tags:
      - Maps
      responses:
        '200':
          content:
            text/xml:
              schema:
                type: string
      operationId: getMapsByMapIdWMTSCapabilitiesXml
      x-operation-id-source: derived
components:
  responses:
    RasterizedImage:
      content:
        image/*:
          schema:
            type: string
            format: binary
  parameters:
    y:
      name: y
      description: Row. Specifies the tile's row. See [Tiles à la Google Maps](https://docs.maptiler.com/google-maps-coordinates-tile-bounds-projection/)
      in: path
      required: true
      schema:
        type: integer
    rasterizationFormat:
      name: format
      in: path
      required: true
      schema:
        type: string
        enum:
        - png
        - jpg
        - webp
    rasterizationScale:
      name: scale
      in: path
      description: Use "@2x" to get "retina"/HiDPI image.
      required: false
      schema:
        type: string
        enum:
        - '@2x'
    mapId:
      name: mapId
      in: path
      description: Identifier of the map. See [MapTiler Maps](https://cloud.maptiler.com/maps/).
      example: streets-v4
      required: true
      schema:
        type: string
    z:
      name: z
      description: Zoom level. Specifies the tile's zoom level. See [Tiles à la Google Maps](https://docs.maptiler.com/google-maps-coordinates-tile-bounds-projection/)
      in: path
      required: true
      schema:
        type: integer
    x:
      name: x
      description: Column. Specifies the tile's column. See [Tiles à la Google Maps](https://docs.maptiler.com/google-maps-coordinates-tile-bounds-projection/)
      in: path
      required: true
      schema:
        type: integer
  schemas:
    StyleJSON:
      type: object
      description: Style JSON object
      externalDocs:
        url: https://docs.maptiler.com/gl-style-specification/
    TileJSON:
      type: object
      externalDocs:
        url: https://raw.githubusercontent.com/maptiler/tilejson-spec/master/2.2.0/schema.json
  securitySchemes:
    key:
      description: Your own API key from https://cloud.maptiler.com/
      type: apiKey
      name: key
      in: query
x-provenance:
  method: harvested
  publisher: MapTiler
  source: https://docs.maptiler.com/_data/cloud/api/openapi.yml
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)