The Mapbox Vector Tiles API serves vector tiles generated from Mapbox Studio styles.
|Unique identifier for the vector tileset in the format |
|Specifies the tile's zoom level, as described in the Slippy Map Tilenames specification.|
|Specifies the tile's column |
|Specifies the format of the returned tiles: |
You can further refine the results from this endpoint with the following optional parameters:
|Request a higher DPI version of the image.|
|Required for style-optimized tile requests. The |
Vector tiles can be further optimized by including the style ID with the tile request. If the style parameter is provided, the sources, filters,
maxzoom properties of that style are analyzed, and data that won't be visible on the map is removed from the vector tile. Mapbox GL JS can request style-optimized vector tiles that are hosted on Mapbox with a Mapbox Style JSON.
Unused layers and features are removed from optimized styles. If you plan to dynamically change the style at runtime using Mapbox GL JS or a Mapbox mobile SDK, broadening filters and zoom ranges won't work the same way since any data that isn't visible with the loaded style also won't be included in the data.
$ curl "https://api.mapbox.com/v4/mapbox.mapbox-streets-v8/1/0/0.mvt?access_token=YOUR_MAPBOX_ACCESS_TOKEN" # Return a style-optimized tile using the style query parameter $ curl "https://api.mapbox.com/v4/mapbox.mapbox-streets-v8/12/1171/1566.mvt?style=mapbox://styles/mapbox/streets-v11@00&access_token=YOUR_MAPBOX_ACCESS_TOKEN"
The response is a vector tile in the specified format. For performance, image tiles are delivered with a
max-age header value set 12 hours in the future.
|Response body ||HTTP status code||Description|
|No token was used in the query.|
|Check the access token you used in the query.|
|Check the name of the tileset you used in the query.|
|Check the column and row of the tile requested in the query.|
|The zoom level specified in the query is larger than 30 or contains non-numeric characters.|
|The tileset specified in the query is a raster tileset rather than a vector tileset. To retrieve raster tiles, use the Raster Tiles API.|
- The default rate limit for the Mapbox Vector Tiles API endpoint is 100,000 requests per minute. If you require a higher rate limit, contact us.
- If you exceed the rate limit, you will receive an
HTTP 429 Too Many Requestsresponse. For information on rate limit headers, see the Rate limit headers section.
- Billed by requests
- See rates and discounts per tile requests in the pricing page's Maps section
Usage of the Vector Tiles API is measured in tile requests. Details about the number of tile requests included in the free tier and the cost per request beyond what is included in the free tier are available on the pricing page.