alltrails_get_trail
Get complete trail details from AllTrails by numeric ID—name, location, length, elevation gain, difficulty, rating, route type, and full route geometry on request.
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. Returns a slim projection by default (name, overview, length in m+mi, elevation gain, difficulty, rating, route type, location); pass view:"full" for the whole record and geometry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | Response shape: "compact" (default) drops fields the response already carries elsewhere; "full" returns every field this server understands. compact returns { name, overview, length in m+mi, elevation gain in m+ft, difficulty, rating, route type, location }, unwrapped from the one-element envelope; "full" returns the whole record, route geometry included (which also needs detail:"offline" to be fetched at all). | |
| detail | No | Detail level. "medium" (default) is a good overview; "offline" includes full route geometry. | |
| trailId | Yes | Numeric AllTrails trail id (e.g. "10236086") |