Tile API
The Tile API lets you add Mountaya's geospatial layers — weather overlays, snow depth, activity routes, collection data, and custom drawings — directly into your own map. You keep full control over the UI and user experience while Mountaya handles the data pipeline.
Use it when you already have a map in your application and want to enrich it with Mountaya data. If you don't have a map yet and want a ready-made experience, use Map Embedding instead.
Authentication
Include your publishable key in the X-API-Key header of every request. If the require_session_token safety rule is enabled, also include a session token in the X-Session-Token header.
Your publishable key must have the tiles scope enabled. For a full guide on keys and tokens, see Authentication.
How it works
Every resource in the Tile API follows a two-step pattern:
- Specification: Returns metadata: source type (vector or raster), tile URLs, layer configuration, legend, and zoom bounds. Call this once when initializing your map.
- Tiles: Returns the actual tile data at a given
{z}/{x}/{y}coordinate. Your map library calls this automatically once you register the source.
The specification response tells you exactly how to configure everything — no guesswork required. It returns an array of sources, each containing its own tile URLs, layers, and zoom bounds.
Response shape
Resources
Overlays — Weather, snow depth, wind, and other environmental layers.
- Specification:
GET /v1/overlays/{overlay}/specification - Tiles:
GET /v1/overlays/{overlay}/{z}/{x}/{y}
Activities — Routes for a specific activity (hiking, cycling, etc.).
- Specification:
GET /v1/activities/{activity}/specification - Tiles:
GET /v1/activities/{activity}/{z}/{x}/{y}
Collections — All routes, itineraries, and drawings in a collection.
- Specification:
GET /v1/collections/{collection_id}/specification - Tiles:
GET /v1/collections/{collection_id}/{z}/{x}/{y}
Drawings — Custom drawings created by your organization.
- Specification:
GET /v1/drawings/specification - Tiles:
GET /v1/drawings/{z}/{x}/{y}
Quick start
Fetch the specification for a resource, then register each source and its layers in your map. This example adds the snowdepth overlay. The same pattern works for activities, collections, and drawings — just swap the URL.
API reference
For the full list of endpoints, request parameters, and response schemas, see the API Reference.