alltrails_list_trails_by_state
Retrieve a paginated listing of trails in a US state by its AllTrails state ID. Includes trail details like length, elevation, difficulty, and rating, or use compact mode for a slim summary.
Instructions
List trails within a US state (or other region) by its numeric AllTrails state id. Returns a rich, paginated listing (name, slug, length, elevation gain, difficulty, rating, features, activities). Set compact=true to get a slimmed summary per trail (id, name, length, difficulty, rating, …) — much smaller output when you just need to browse or rank.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default 1) | |
| compact | No | Return a slim summary per trail instead of the full records (default false) | |
| perPage | No | Results per page (default 25, max ~100) | |
| stateId | Yes | Numeric AllTrails state/region id |