OrbTop

Traillink Rail Trail Directory Scraper

TRAVEL

TrailLink Rail Trail Directory Scraper

Scrape the full TrailLink catalogue of paved, rail-trail, and accessible trails across all US states. TrailLink is the Rails-to-Trails Conservancy's authoritative directory of ~40,000 trails, with a strong focus on paved, ADA-accessible, and converted rail corridors — a segment that AllTrails under-covers.

What it collects

For each trail the actor returns:

Field Description
trail_name Full name of the trail
state US state(s) the trail passes through
city_region City/region associated with the trail
county County name(s)
length_miles Trail length in miles
surface Surface type(s) (e.g. Asphalt, Concrete, Crushed Stone)
trail_uses Allowed activities (e.g. Bike, Walking, Wheelchair Accessible)
difficulty Trail category (Rail-Trail, Greenway/Non-RT, etc.)
description Full trail description
trail_endpoints Start and end point addresses
parking_locations Nearby parking access locations
rating Average star rating (1–5)
review_count Number of user reviews
latitude / longitude GPS coordinates of the trail
trail_url Direct link to the trail page on TrailLink

Input parameters

Parameter Type Default Description
maxItems integer 10 Maximum number of trail records to return

How it works

  1. Fetches https://www.traillink.com/sitemap-trails.xml — a flat XML sitemap listing all ~5,500 trail URLs
  2. Filters to /trail/<slug>/ paths and caps to maxItems
  3. Requests each trail page and parses the server-rendered HTML, extracting structured data from schema.org microdata attributes and labelled stat blocks

No proxy is required — TrailLink serves clean HTML to datacenter IPs with no bot challenge.

Use cases

  • Accessibility planning — filter to Wheelchair Accessible trails by state or region
  • Real estate analysis — enrich property listings with nearby paved trail proximity data
  • Tourism & travel apps — build trail-discovery features with GPS coordinates and surface info
  • Urban greenway research — study the distribution of rail-to-trail conversions by county

Sample output

{
  "trail_name": "Little Miami Scenic Trail",
  "state": "Ohio",
  "city_region": "Cincinnati, OH",
  "county": "Clark, Clermont, Greene, Hamilton, Warren",
  "length_miles": 77.7,
  "surface": "Asphalt, Concrete",
  "trail_uses": "Bike, Fishing, Horseback Riding, Inline Skating, Walking, Wheelchair Accessible, Cross Country Skiing",
  "difficulty": "Rail-Trail",
  "description": "The Little Miami Scenic Trail is a jewel in the crown of Ohio rail-trails, spanning nearly 78 miles...",
  "trail_endpoints": "W Jefferson St & S Center St (Springfield) and Beechmont Ave, Otto Armleder Trail (Anderson)",
  "parking_locations": "Springfield Trailhead (parking available) | Yellow Springs Trailhead | ...",
  "rating": 5,
  "review_count": 121,
  "latitude": 39.621094,
  "longitude": -84.018967,
  "trail_url": "https://www.traillink.com/trail/little-miami-scenic-trail/"
}