alltrails_search
Search AllTrails by name or keywords to find trails, points of interest, and areas. Filter by type and receive compact summaries.
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. Set compact=true (strongly recommended) for slim summaries capped at limit client-side.
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) | |
| 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. | |
| compact | No | Return slim per-result summaries capped at limit instead of the full records (default false) |