Discover/AllTrails API
live

AllTrails APIalltrails.com

Search hiking trails, retrieve detailed trail stats, AI review summaries, and paginated user reviews from AllTrails via a simple REST API.

Endpoint health
verified 4d ago
get_trail_details
search_trails
get_trail_reviews
3/3 passing latest checkself-healing
Endpoints
3
Updated
21d ago

What is the AllTrails API?

The AllTrails API gives developers access to 3 endpoints covering trail search, detailed trail profiles, and user reviews. Use search_trails to query trails by keyword and optional coordinates, then pull full trail data — including elevation stats, route type, activity attributes, and an AI-generated review summary — with get_trail_details. Each response surfaces concrete fields like elevationGain, avgRating, difficulty, and trailCounts for filtering and display.

Try it
Latitude to center the search and avoid geo-bias from proxy IP location
Longitude to center the search and avoid geo-bias from proxy IP location
Maximum number of results to return
Search keyword (e.g., 'Yosemite Falls', 'Half Dome')
api.parse.bot/scraper/00ff888e-47b1-497a-9be0-4e715bb70de8/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/00ff888e-47b1-497a-9be0-4e715bb70de8/search_trails?lat=37.7&lng=-119.6&limit=5&query=Yosemite+Falls' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace alltrails-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: AllTrails SDK — discover trails, inspect details, read reviews."""
from parse_apis.alltrails_trail_discovery_api import AllTrails, RouteType, TrailNotFound

client = AllTrails()

# Search for trails near Yosemite — limit caps total items fetched.
for trail in client.trailsummaries.search(query="Yosemite Falls", lat=37.7, lng=-119.6, limit=5):
    print(trail.name, trail.rating, trail.route_type)

# Drill into the first result's full details via the summary→detail nav op.
summary = client.trailsummaries.search(query="Half Dome", lat=37.7, lng=-119.6, limit=1).first()
if summary:
    detail = summary.details()
    print(detail.name, detail.avg_rating, detail.trail_geo_stats.elevation_gain)
    print(detail.trail_counts.review_count, "reviews")

    # Walk the trail's reviews sub-resource.
    for review in detail.reviews.list(limit=3):
        print(review.user.username, review.rating, review.comment[:80] if review.comment else "")

# Fetch a trail directly by ID.
try:
    trail = client.trails.get(trail_id="10005895")
    print(trail.name, trail.overview[:100] if trail.overview else "")
except TrailNotFound as exc:
    print(f"Trail not found: {exc}")

print("exercised: trailsummaries.search / summary.details / trails.get / reviews.list")
All endpoints · 3 totalmissing one? ·

Full-text search for hiking trails by keyword. Returns trail summaries including name, location, rating, difficulty, and length. Results are geo-biased by proxy IP location unless latitude and longitude are explicitly provided to center the search. Paginates as a single page up to the specified limit.

Input
ParamTypeDescription
latnumberLatitude to center the search and avoid geo-bias from proxy IP location
lngnumberLongitude to center the search and avoid geo-bias from proxy IP location
limitintegerMaximum number of results to return
queryrequiredstringSearch keyword (e.g., 'Yosemite Falls', 'Half Dome')
Response
{
  "type": "object",
  "fields": {
    "count": "integer, number of results returned",
    "query": "string, the search keyword used",
    "results": "array of trail summary objects with id, name, slug, location, rating, reviews_count, difficulty, length, elevation_gain, route_type"
  }
}

About the AllTrails API

Trail Search

The search_trails endpoint accepts a required query string (e.g., 'Half Dome' or 'PCT Section J') and returns an array of trail summary objects. Each result includes the trail's id, slug, name, location, rating, reviews_count, difficulty, length, elevation_gain, and route_type. Without coordinates, results may reflect the proxy server's geographic location; pass lat and lng to anchor the search to a specific area. A limit parameter caps the result count.

Trail Details

get_trail_details accepts either a numeric trail_id or a slug (e.g., 'us/california/upper-yosemite-falls-trail') and returns a full trail profile. Key response fields include overview (descriptive text), avgRating, routeType, trailGeoStats (length, elevation start/gain/max, estimated duration in minutes), attributes (activities, features, and obstacles arrays), and trailCounts (review, photo, track, and completed counts). The response also includes an AI-generated review summary derived from user-submitted content.

User Reviews

get_trail_reviews returns paginated user reviews for a trail, identified by trail_id or slug. Each page delivers up to 100 review objects containing comment, date, rating, difficulty, user info, and ratingAttributes / difficultyAttributes for structured condition data. The pageInfo field carries pagination cursor information for sequential traversal; meta reports the item count and response timestamp.

Reliability & maintenanceVerified

The AllTrails API is a managed, monitored endpoint for alltrails.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when alltrails.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official alltrails.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
4d ago
Latest check
3/3 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a trail recommendation engine filtered by difficulty, length, and elevation_gain from search_trails results.
  • Populate a hiking app's trail profile pages using overview, trailGeoStats, and attributes from get_trail_details.
  • Aggregate user sentiment by collecting rating and comment fields across paginated review pages from get_trail_reviews.
  • Display AI-generated review summaries alongside structured stats for quick trail evaluation.
  • Monitor trail condition reports by parsing ratingAttributes and difficultyAttributes in recent reviews.
  • Compare elevation profiles across a region by extracting elevationGain and elevationMax from multiple trail detail calls.
  • Geocode trail starting points using latitude and longitude from the location object in trail detail responses.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does AllTrails have an official developer API?+
AllTrails does not publish a public developer API. There is no documented REST or GraphQL interface available for third-party use on their website.
What does `get_trail_details` return that `search_trails` does not?+
search_trails returns lightweight summaries — name, location, rating, difficulty, length, and elevation gain. get_trail_details adds the full overview text, the trailGeoStats object (including elevationStart, elevationMax, and durationMinutes), structured attributes arrays for activities, features, and obstacles, trailCounts for reviews and photos, and an AI-generated summary of user reviews.
How does pagination work for trail reviews?+
get_trail_reviews returns up to 100 reviews per page. The pageInfo field in the response carries cursor information you use to request subsequent pages via the page parameter. The meta object reports the item count per response so you can determine when you've reached the last page.
Does the API return trail photos or GPX/track files?+
Not currently. The API exposes a photoCount and trackCount within trailCounts in get_trail_details, but does not return photo URLs or downloadable track data. You can fork this API on Parse and revise it to add endpoints that retrieve those assets.
Are results from `search_trails` always globally unbiased?+
Not by default. Without lat and lng parameters, search results may be geo-biased toward the proxy server's location. Pass explicit coordinates to center results on the region you care about — for example, latitude and longitude for a national park — and the results will reflect that geography.
Page content last updated . Spec covers 3 endpoints from alltrails.com.
Related APIs in Maps GeoSee all →
hipcamp.com API
Search Hipcamp campgrounds and retrieve detailed information including site availability, pricing, reviews, and amenities to plan your camping trips. Access real-time campground data, browse specific sites, and read visitor reviews all in one place.
mountainproject.com API
Discover climbing routes and areas, search by location and difficulty, and access detailed route information including user reviews and beta. Find your next climb with comprehensive area hierarchies and filtered route recommendations tailored to your skill level.
tripadvisor.com API
Search for travel destinations and discover hotels with detailed information like ratings, reviews, and amenities. Get comprehensive place details to help plan your perfect trip and compare accommodation options.
thecrag.com API
Search and explore outdoor climbing areas, routes, and photos with access to detailed route information and geographic hierarchy. Build climbing apps, trip planners, or guides by pulling real-time climbing data organized by location and route details.
pitchup.com API
Search for campsites across the Pitchup.com network and instantly access detailed information including reviews, real-time availability, and pricing to find and book your perfect camping destination. Filter results by location, amenities, and other criteria to narrow down your options before making a reservation.
mammothmountain.com API
Get Mammoth Mountain’s current trail status, snow report (base depth and recent/season snowfall), and weather conditions with a multi-day forecast for different elevations.
rei.com API
Search and browse REI's full catalog of outdoor gear and clothing, compare detailed product specifications, check real-time store availability, and read customer reviews to find the perfect equipment for your adventures. Explore products by category or use targeted searches to discover gear that matches your needs, all with instant access to pricing and local stock information.
komoot.com API
Search and explore outdoor routes on Komoot by location and sport type, accessing detailed GPS coordinates, elevation profiles, trail maps, and route photo galleries. Browse curated regional collections and public user profiles to discover hiking, biking, running, and climbing routes worldwide.
AllTrails API – Trails, Reviews & Search · Parse