Vector Tiles API
Reference for the Mappinest vector tiles endpoint, accepted parameters, pricing, and cache behavior for PBF delivery.
Vector tile endpoint
The Vector Tiles API serves vector tiles from hosted vector tilesets. This endpoint returns vector tiles using the standard XYZ tile pattern.
- Returns Mapbox Vector Tiles in
PBFformat. - Ideal for
MapLibre GL,Mapbox GL JS, and other vector-tile-compatible clients. - Pair this with a style or add the source and layers manually in your map client.
Protected tilesets require a Mappinest Key. Pass the same ?key= query parameter used throughout the docs, and inspect the X-Cache-Status response header when you want to confirm cache hits.
Vector Tiles API pricing
- Billed by requests.
- See rates and request tiers on the pricing page.
Usage of the Vector Tiles API is measured in tile requests. Free-tier limits and overage pricing are listed on the pricing page.
Caching and performance
Vector tile responses are served with cache-friendly headers so repeated requests stay fast across browsers and edge caches.
Cache-Control: public, max-age=604800, immutablekeeps vector tiles cacheable for 7 days.Vary: Origin, Accept-Encodingkeeps cross-origin and compressed responses consistent.Access-Control-Expose-Headers: X-Cache-Statusmakes cache diagnostics visible in browser tools.- Use
X-Cache-Statusto confirm whether a response was a cacheHIT,MISS, or revalidated result. - Keep tile URLs stable and avoid adding extra query parameters beyond
?key=when you want higher cache reuse.
Performance guidance
For uploaded vector tilesets, Mappinest checks new uploads for largest tile size, average tile size, vector layer count, and field count per layer.
Free currently supports vector tilesets with individual tiles up to 850 KB. Flex raises the largest tile limit to 2 MB, and Pro supports up to 4 MB under standard ingest rules. See Upload Data for the full table.
- Keep only fields used for styling, filtering, labels, or popups.
- Simplify geometry before tiling when high zoom levels create very large tiles.
- Avoid carrying full source-table attributes in every vector tile when those details can live in a separate API or database.
Last updated: April 14, 2026