# Overview

> Canonical URL: https://docs.mountaya.com/en/apis/data/
> Last updated: 2026-11-27
> Rules for agents: https://docs.mountaya.com/llms.txt#rules-for-agents

Routing, places, and terrain for outdoor activities, answered as data from one read-only GraphQL endpoint.

Routing, places, and terrain for outdoor activities, as data. One read-only GraphQL endpoint for directions, isochrones, geocoding, and elevation.

Send every query as a `POST` to `https://data.mountaya.com/graphql`, with a publishable key holding the `data` scope and a session token your server mints. The [quickstart](https://docs.mountaya.com/en/quickstart.md) makes your first call in five minutes, and [authentication](https://docs.mountaya.com/en/authentication.md) covers tokens in a browser.

**Self-serve:** an owner or admin adds a card in the [Mountaya app](https://app.mountaya.com/), and nothing is charged until called.

You pay for each [root field](https://docs.mountaya.com/en/glossary.md#root-field) answered without an error, such as one `directions`, up to a monthly allowance. See [rate limits](https://docs.mountaya.com/en/apis/conventions/rate-limits.md#limits) and [pricing](https://mountaya.com/pricing/).

## What it answers

| Job | Queries | Guide |
| --- | --- | --- |
| Route between points | `directions`, `suggestions` | [Routing](https://docs.mountaya.com/en/apis/data/routing.md) |
| Measure what is in reach | `isochrones`, `matrix` | [Routing](https://docs.mountaya.com/en/apis/data/routing.md#isochrones) |
| Find places | `geocode`, `reverseGeocode`, `pois`, `search` | [Places](https://docs.mountaya.com/en/apis/data/places.md) |
| Read your itineraries | `itinerary`, `exportItinerary` | [Itineraries](https://docs.mountaya.com/en/apis/data/itineraries.md) |
| Classify and time a line | `analyzeGeometry` | [Analysis](https://docs.mountaya.com/en/apis/data/analysis.md) |
| Read the ground | `terrainSamples`, `terrainProfile`, `terrainGrid` | [Terrain](https://docs.mountaya.com/en/apis/data/terrain.md) |

Coordinates are `[longitude, latitude]`. Distances are in meters, durations in seconds, and slopes in degrees.

## Explore the schema

The [Data API explorer](https://docs.mountaya.com/en/apis/data/explorer.md) documents every query and type, and runs them live. Download the [GraphQL schema](https://docs.mountaya.com/descriptions/graphql/data/schema.graphql) to generate types. [GraphQL conventions](https://docs.mountaya.com/en/apis/data/graphql.md) covers inputs, errors, and batching.

- Endpoint: `POST https://data.mountaya.com/graphql`. Queries only, no mutations. Fourteen queries: `directions`, `suggestions`, `isochrones`, `matrix`, `geocode`, `reverseGeocode`, `pois`, `search`, `itinerary`, `exportItinerary`, `analyzeGeometry`, `terrainSamples`, `terrainProfile`, `terrainGrid`.
- Every request carries a publishable key with the `data` scope in `X-API-Key` and a session token in `X-Session-Token` (or the `publishable_key` and `session_token` query parameters). Mint the token with `POST https://api.mountaya.com/v1/sessions` and a secret key; it lasts at most five minutes.
- The `data` scope opens the API only while the organization holds the Data API: a payment method on file opens its metered subscription, or an agreement includes it. A request without it is `402`.
- Every answer carries `X-Request-Id`, and every answer the limits weighed reports what is left in `RateLimit` and `RateLimit-Policy`. The per-minute limit counts requests, of up to four root fields each, while the monthly allowance, 300,000 unless your agreement sets another figure, counts the root fields answered without an error. A `429` names its wait in `Retry-After`. See [rate limits](https://docs.mountaya.com/en/apis/conventions/rate-limits.md).
- Every request is answered within 30 seconds. One still running then is a `504` coded `GATEWAY_TIMEOUT`, with no data, and its root fields count toward no allowance and no invoice.
- Only your own clients count toward the limits, an allowance, and the invoice: a request made with a session token minted for `api`, and one through the MCP server. An [Embedded Studio](https://docs.mountaya.com/en/sdks/typescript/studio.md) routes and searches here on its session token minted for `studio-embedded`, under a key carrying `data`: its requests are recorded as `studio-embedded` usage, never counted, and held to 300 a minute per member it names, or per client IP address for a token minted without `user_id`, and 3,000 per organization, while your organization holds Embedded Studio. Without it, they count as your own clients' do.
- A field that fails (an error entry instead of data) counts toward neither the monthly allowance nor an invoice.
- Units: coordinates `[longitude, latitude]` in WGS 84, distances meters, durations seconds, elevations meters above sea level, gradients and slopes degrees. `speed` alone is km/h.
- GraphQL rules (one `input` per query, SCREAMING_SNAKE enums, at most four root fields, errors under `200`): [GraphQL conventions](https://docs.mountaya.com/en/apis/data/graphql.md).

## Next steps

- [Quickstart](https://docs.mountaya.com/en/quickstart.md): Mint a token and route your first hike.
- [Routing](https://docs.mountaya.com/en/apis/data/routing.md): Directions, suggestions, isochrones, and matrices.
- [GraphQL conventions](https://docs.mountaya.com/en/apis/data/graphql.md): Inputs, enums, batching, and errors.
