alltrails_get_trail
Retrieve a single AllTrails trail's details by numeric ID—name, location, length, elevation gain, difficulty, rating, route type. Use compact mode for a slim overview or full detail for geometry.
Instructions
Get details for a single AllTrails trail by its numeric trail id. Returns name, location, length, elevation gain, difficulty, rating, route type, and (at higher detail levels) route geometry. Set compact=true for a slim projection (name, overview, length in m+mi, elevation gain, difficulty, rating, route type, location) — recommended unless you need the full record or geometry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | Detail level. "medium" (default) is a good overview; "offline" includes full route geometry. | |
| compact | No | Return a slim projection instead of the full record (default false) | |
| trailId | Yes | Numeric AllTrails trail id (e.g. "10236086") |