alltrails_search
Search AllTrails by name or keywords to locate trails, points of interest, areas, and cities; optionally filter results to trails only.
Instructions
Search AllTrails by name. A free-text query goes to the suggestions endpoint the alltrails.com search box itself uses — relevance is good and the limit is honored. Results may mix record types (trail, poi, area, city, …); pass types=["trail"] to narrow. lat/lng are accepted for backward compatibility but verified ignored by the API (2026-07-02) — results carry an implicit account/IP geo bias instead. Without a query this falls back to the legacy explore search, which returns trails anchored to the signed-in account's location. Results come back as slim per-result summaries, capped at limit client-side, by default; pass view:"full" for AllTrails' whole records.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | Deprecated — the API ignores it (verified 2026-07-02) | |
| lng | No | Deprecated — the API ignores it (verified 2026-07-02) | |
| view | No | Response shape: "compact" (default) drops fields the response already carries elsewhere; "full" returns every field this server understands. compact returns slim per-result summaries capped at limit; "full" returns AllTrails' whole records. | |
| limit | No | Max results to return (default 20) | |
| query | No | Free-text search, e.g. "angels landing" or "waterfall trails" | |
| types | No | Record types to return (default: all). e.g. ["trail"] for trails only. Only applied when query is provided; silently ignored on the no-query legacy browse fallback. |