Search trails
search_trailsRead-onlyIdempotent
Find U.S. rail-trails, canal towpaths and greenways by name, state, surface, kind and length. Returns each trail's page URL and slug (for get_trail). With no query, lists the longest trails that match the filters.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | rail: on a former railway; trolley: an old streetcar or interurban line; canal_towpath: beside a canal; greenway: a car-free path not on a railbed. | |
| limit | No | How many trails to return (1-50). | |
| query | No | Words from the trail's name, for example "Great Allegheny Passage" or "Virginia Creeper". Small typos are tolerated. | |
| state | No | Two-letter state code (PA) or state name. Matches every trail that enters the state. | |
| surface | No | Trail surface. crushed_stone is packed stone dust, good for most bikes. | |
| max_miles | No | Longest length, in miles. | |
| min_miles | No | Shortest length, in miles. |