APIDataTravel

AllTrails park or place with its trails API

Use the AllTrails park or place with its trails API to retrieve route descriptions, geographic coordinates, record identities and titles, source-page links and geographic references as structured JSON from AllTrails. Supply source-page URL in the query; optionally select search words to set the requested scope. Use these results to compare route characteristics and organize trail reference material when planning an outdoor itinerary. The documented source-page link form identifies the requested entry directly and lets you reuse an existing source-page reference. Continue with the returned next_page as page; a null value marks the last page. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
USE THIS API

AllTrails park or place with its trails API

Prepare your request, then continue with your agent.

Pricing

$0.002 / billing credit

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
Pricing
Connect your agent
On this page

Overview

Overview

AllTrails park or place with its trails API

Use the AllTrails park or place with its trails API to retrieve route descriptions, geographic coordinates, record identities and titles, source-page links and geographic references as structured JSON from AllTrails. Supply source-page URL in the query; optionally select search words to set the requested scope. Use these results to compare route characteristics and organize trail reference material when planning an outdoor itinerary. The documented source-page link form identifies the requested entry directly and lets you reuse an existing source-page reference. Continue with the returned next_page as page; a null value marks the last page. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.

AllTrails park or place with its trails API

An AllTrails park, city, state, country or point of interest (lake, peak, waterfall...) by link, with its details (`kind`, `type_label`, `location`, coordinates, `bounds`, `trails_count`, the activities, features and difficulties of its trails, guides, curated lists) and its trails (`trails.items`, with the same filters as /alltrails/v1/search). Pass `trails.next_page` back as `page`; null on the last page.

Inputs and results

Send the listed inputs as GET query parameters. Required inputs: url. Supported values, filters and optional identifiers are listed below.

ParameterTypeRequiredMeaning
urlstringRequiredPlace link or path, e.g. `parks/us/california/yosemite-national-park`, `us/california/yosemite-valley`, `us/california`, `poi/us/colorado/estes-park/emerald-lake`; or a park id.
qstringOptionalKeywords to narrow the place's trails.
difficultystringOptionaleasy, moderate, hard, strenuous; comma separated for several.
length_min_kmnumberOptionalShortest trail length in kilometres.
length_max_kmnumberOptionalLongest trail length in kilometres.
elevation_gain_min_mnumberOptionalLeast elevation gain in metres.
elevation_gain_max_mnumberOptionalMost elevation gain in metres.
route_typestringOptionalloop, out_and_back, point_to_point; comma separated.
activitiesstringOptionalAny of these activities, comma separated: hiking, walking, trail-running, mountain-biking, road-biking, backpacking, camping, birding, fishing, horseback-riding, rock-climbing, skiing, cross-country-skiing, snowshoeing, scenic-driving, paddle-sports, off-road-driving, via-ferrata.
featuresstringOptionalFeatures every trail must have, comma separated: dogs, dogs-leash, dogs-no, kids, ada, strollers, paved, partially-paved, views, waterfall, lake, river, beach, forest, cave, wild-flowers, wildlife, hot-springs, historic-site, rails-trails, city-walk.
rating_minnumberOptionalLeast average rating (0-5).
open_onlystringOptional`true`: leave out closed trails. Allowed values: true, false.
park_idintegerOptionalTrails in this park (id from /alltrails/v1/places or a trail's `park`).
pageintegerOptionalPage (default 1). Pass `next_page` back as `page`; null on the last page. The site lists at most 1,000 results per search.
limitintegerOptionalResults per page (default 24, max 100).
rawstringOptionalUse 0 to leave out the source raw blocks. This controls raw source payloads, not the normalized result records. Allowed values: 0, 1.
fieldsstringOptionalOptional comma-separated output fields; nested paths follow the source field-selection syntax. Call metadata is retained.
freshstringOptionalUse 1 to bypass the source response cache. Cache hits are also billed according to reported credits. Allowed values: 1.
outputstringOptionalResponse format for this product: json. Omit this parameter to use JSON. Allowed values: json.
recordsstringOptionalSource export selector for CSV or NDJSON. It has no effect on this JSON-only product.

Using OpenAny

Send this request to the OpenAny gateway with your OpenAny API key in the Authorization header. The query values below match the paired request example.

OpenAny request example

bash
curl "https://api.openany.si/v1/agent-apis/apish/alltrails/v1/place?url=parks%2Fus%2Fcalifornia%2Fyosemite-national-park&output=json&raw=0&limit=1" \
  -H "Authorization: Bearer <OPENANY_API_KEY>"

This command illustrates the OpenAny request format. The response example below retains its stated provenance; it is not evidence that this gateway request was executed.

Response example

Recorded source response for the exact request shown above. Filters, field selectors and page choices in that request define the returned scope.

json
{
  "id": 10106838,
  "object_id": "area-10106838",
  "kind": "area",
  "type_label": "National Park",
  "name": "Yosemite National Park",
  "url": "https://www.alltrails.com/parks/us/california/yosemite-national-park",
  "slug": "parks/us/california/yosemite-national-park",
  "location": "California, United States",
  "latitude": 37.8482617,
  "longitude": -119.5568839,
  "state": {
    "id": 5,
    "name": "California"
  },
  "country": {
    "id": 313,
    "name": "United States"
  },
  "trails_count": 331,
  "poi_count": 694,
  "popularity": 134.9988,
  "park_type": "National Park",
  "bounds": {
    "southwest": {
      "lat": 37.4921493,
      "lng": -119.8861599
    },
    "northeast": {
      "lat": 38.1863499,
      "lng": -119.1995075
    }
  },
  "trail_activities": [
    "hiking",
    "trail-running",
    "backpacking",
    "camping",
    "horseback-riding",
    "cross-country-skiing",
    "snowshoeing",
    "rock-climbing",
    "via-ferrata",
    "walking",
    "fishing",
    "running",
    "mountain-biking",
    "road-biking",
    "birding"
  ],
  "trail_features": [
    "forest",
    "kids",
    "river",
    "views",
    "wild-flowers",
    "wildlife",
    "dogs-no",
    "lake",
    "waterfall",
    "ada",
    "cave",
    "dogs-leash",
    "partially-paved",
    "strollers",
    "historic-site",
    "paved",
    "beach",
    "dogs"
  ],
  "trail_difficulties": [
    "moderate",
    "strenuous",
    "hard",
    "easy"
  ],
  "guides": [
    {
      "objectID": "guide-121",
      "ID": 121,
      "slug": "guides/us/california/top-picks-in-yosemite-national-park",
      "topic": "top_picks",
      "name": "Top Picks in Yosemite National Park",
      "name_with_formatting": "<em>Top Picks</em> in Yosemite National Park",
      "background_color": "#221511",
      "photo_url": "https://www.alltrails.com/api/alltrails/guides/121/profile_photo",
      "type": "guide",
      "trail_count": 8
    },
    {
      "objectID": "guide-122",
      "ID": 122,
      "slug": "guides/us/california/hidden-gems-in-yosemite-national-park",
      "topic": "hidden_gems",
      "name": "Hidden Gems in Yosemite National Park",
      "name_with_formatting": "<em>Hidden Gems</em> in Yosemite National Park",
      "background_color": "#161f13",
      "photo_url": "https://www.alltrails.com/api/alltrails/guides/122/profile_photo",
      "type": "guide",
      "trail_count": 5
    },
    {
      "objectID": "guide-119",
      "ID": 119,
      "slug": "guides/us/california/backpacking-trips-in-yosemite-national-park",
      "topic": "activities",
      "name": "Backpacking Trips in Yosemite National Park",
      "name_with_formatting": "<em>Backpacking Trips</em> in Yosemite National Park",
      "background_color": "#6D4E1E",
      "photo_url": "https://www.alltrails.com/api/alltrails/guides/119/profile_photo",
      "type": "guide",
      "trail_count": 3
    },
    {
      "objectID": "guide-120",
      "ID": 120,
      "slug": "guides/us/california/family-friendly-day-hikes-from-yosemite-valley-campgrounds",
      "topic": "activities",
      "name": "Family-Friendly Day Hikes from Yosemite Valley Campgrounds",
      "name_with_formatting": "<em>Family-Friendly Day Hikes</em> from Yosemite Valley Campgrounds",
      "background_color": "#2F2312",
      "photo_url": "https://www.alltrails.com/api/alltrails/guides/120/profile_photo",
      "type": "guide",
      "trail_count": 4
    }
  ],
  "curated_lists": null,
  "page": 1,
  "next_page": 2,
  "trails": {
    "applied_filters": {},
    "total": 309,
    "page": 1,
    "limit": 1,
    "count": 1,
    "next_page": 2,
    "items": [
      {
        "id": 10026910,
        "name": "Vernal and Nevada Falls via Mist Trail",
        "url": "https://www.alltrails.com/trail/us/california/vernal-and-nevada-falls-via-the-mist-trail",
        "slug": "trail/us/california/vernal-and-nevada-falls-via-the-mist-trail",
        "location": "Yosemite National Park, California",
        "park": {
          "id": 10106838,
          "name": "Yosemite National Park",
          "url": "https://www.alltrails.com/parks/us/california/yosemite-national-park"
        },
        "city": {
          "id": 1036,
          "name": "Yosemite Valley",
          "url": "https://www.alltrails.com/us/california/yosemite-valley"
        },
        "state": {
          "id": 5,
          "name": "California"
        },
        "country": {
          "id": 313,
          "name": "United States"
        },
        "latitude": 37.73282,
        "longitude": -119.55778,
        "rating": 4.9,
        "reviews": 27900,
        "text_reviews": 6229,
        "photos": 89518,
        "recordings": 42807,
        "difficulty": "hard",
        "difficulty_rating": 5,
        "route_type": "loop",
        "length_m": 10944,
        "length_km": 10.94,
        "length_mi": 6.8,
        "elevation_gain_m": 631,
        "elevation_gain_ft": 2070,
        "highest_point_m": 1827,
        "visitor_usage": 4,
        "popularity": 99.9988,
        "closed": false,
        "private_property": false,
        "activities": [
          "hiking",
          "trail-running"
        ],
        "features": [
          "forest",
          "river",
          "views",
          "waterfall",
          "wild-flowers",
          "wildlife",
          "dogs-no",
          "partially-paved"
        ],
        "collections": [
          "trending",
          "waterfalls",
          "views",
          "trees",
          "rivers",
          "wildflowers"
        ],
        "description": "Hike to two breathtaking waterfalls along some of Yosemite Valley's most popular hiking trails. If you only have time for one hike while in Yosemite, look no further - the Mist Trail is the hike for you. It is no wonder that this trail is one of the most traveled in Yosemite National Park. You will hike so close to these two massive waterfalls that you may get wet from the trail. The best time to hike this trail is in Spring or early Summer, while the snow runoff is high and the falls are full of water.\n\nThe Mist Trail starts at Happy Isles Trailhead (YARTS Happy Isles shuttle stop #16, and is within walking distance of Curry Village and the parking lot). The park recommends starting early to avoid the larger crowds. After a brief stroll along the river, you climb a pretty steep initial ascent over stone steps until you reach the footbridge, which offers the first glimpse of Vernal Falls in the distance. You will also find a water fountain and restrooms. You will then continue up to Vernal Falls, past Emerald Pool, and alongside Nevada Falls until you reach the high point of this hike.\n\nYou can choose to take the alternate route down along the John Muir Trail to see great views of Nevada Falls and Liberty Cap in the distance before meeting back up with the Mist Trail near the footbridge. This route back is slightly longer, but offers a change of scenery and is easier on the knees. Before hopping back on the YARTS shuttle, treat yourself to some ice cream or a refreshing drink at the small stand, or head over to Curry Village for a wider selection.\n\nIn the 19th century, Yosemite National Park was served by Buffalo Soldiers, former Black regiments of the US Army. These men became the first Black national park rangers and backcountry rangers and were tasked with fighting fires, preventing poaching, and helping create the trails that millions of people explore each year.",
        "photo": "https://images.alltrails.com/eyJidWNrZXQiOiJhc3NldHMuYWxsdHJhaWxzLmNvbSIsImtleSI6InVwbG9hZHMvcGhvdG8vaW1hZ2UvMTI3MDcyMjg2LzNkNDMyZGUwYzNiMzc3NjE0OTA3NDg3NDg4YTkxODk1LmpwZyIsImVkaXRzIjp7InRvRm9ybWF0IjoianBlZyIsInJlc2l6ZSI6eyJ3aWR0aCI6MTIwMCwiaGVpZ2h0IjoxMjAwLCJmaXQiOiJpbnNpZGUifX19",
        "monthly_popularity": {
          "month_1": 311,
          "month_2": 299,
          "month_3": 676,
          "month_4": 2101,
          "month_5": 4647,
          "month_6": 4465,
          "month_7": 3912,
          "month_8": 4040,
          "month_9": 3330,
          "month_10": 2656,
          "month_11": 1384,
          "month_12": 352
        },
        "alert_ids": [
          171,
          20017,
          20019
        ],
        "created_at": "2020-02-21T22:28:26.000Z"
      }
    ]
  },
  "cached": false,
  "fetched_at": "2026-11-19T12:28:30.526Z",
  "credits_used": 1
}

Usage and price

The price is USD 0.002 per actual credit reported in credits_used, with no fixed per-call fee. A response reporting zero credits has zero usage cost. Up to USD 0.002 is reserved for this request; the final price follows reported usage within the configured upper limit. A valid empty result or an unsuccessful lookup can still consume source credits. Cache hits also consume credits.

Coverage and limits

Coverage and update times follow the source. Use the documented field definitions when interpreting the selected result. Requests have a 120-second time budget and a 8 MiB response limit.

Use page according to the operation's parameter definitions. Each additional page requires a separate request.

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Place link or path, e.g. `parks/us/california/yosemite-national-park`, `us/california/yosemite-valley`, `us/california`, `poi/us/colorado/estes-park/emerald-lake`; or a park id.
Optional parameters (19)
Keywords to narrow the place's trails.
easy, moderate, hard, strenuous; comma separated for several.
Shortest trail length in kilometres.
Longest trail length in kilometres.
Least elevation gain in metres.
Most elevation gain in metres.
loop, out_and_back, point_to_point; comma separated.
Any of these activities, comma separated: hiking, walking, trail-running, mountain-biking, road-biking, backpacking, camping, birding, fishing, horseback-riding, rock-climbing, skiing, cross-country-skiing, snowshoeing, scenic-driving, paddle-sports, off-road-driving, via-ferrata.
Features every trail must have, comma separated: dogs, dogs-leash, dogs-no, kids, ada, strollers, paved, partially-paved, views, waterfall, lake, river, beach, forest, cave, wild-flowers, wildlife, hot-springs, historic-site, rails-trails, city-walk.
Least average rating (0-5).
`true`: leave out closed trails.
Trails in this park (id from /alltrails/v1/places or a trail's `park`).
Page (default 1). Pass `next_page` back as `page`; null on the last page. The site lists at most 1,000 results per search.
Results per page (default 24, max 100).
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Sample response

"bounds": {
  "northeast": {
    "lat": 38.1863499,
    "lng": -119.1995075
  },
  "southwest": {
    "lat": 37.4921493,
    "lng": -119.8861599
  }
}
"cached": false
"country": {
  "id": 313,
  "name": "United States"
}
"credits_used": 1
"curated_lists": null
"fetched_at": "2026-11-19T12:28:30.526Z"
"guides": [
  {
    "ID": 121,
    "background_color": "#221511",
    "name": "Top Picks in Yosemite National Park",
    "name_with_formatting": "<em>Top Picks</em> in Yosemite National Park",
    "objectID": "guide-121",
    "photo_url": "https://www.alltrails.com/api/alltrails/guides/121/profile_photo",
    "slug": "guides/us/california/top-picks-in-yosemite-national-park",
    "topic": "top_picks",
    "trail_count": 8,
    "type": "guide"
  },
  {
    "ID": 122,
    "background_color": "#161f13",
    "name": "Hidden Gems in Yosemite National Park",
    "name_with_formatting": "<em>Hidden Gems</em> in Yosemite National Park",
    "objectID": "guide-122",
    "photo_url": "https://www.alltrails.com/api/alltrails/guides/122/profile_photo",
    "slug": "guides/us/california/hidden-gems-in-yosemite-national-park",
    "topic": "hidden_gems",
    "trail_count": 5,
    "type": "guide"
  },
  {
    "ID": 119,
    "background_color": "#6D4E1E",
    "name": "Backpacking Trips in Yosemite National Park",
    "name_with_formatting": "<em>Backpacking Trips</em> in Yosemite National Park",
    "objectID": "guide-119",
    "photo_url": "https://www.alltrails.com/api/alltrails/guides/119/profile_photo",
    "slug": "guides/us/california/backpacking-trips-in-yosemite-national-park",
    "topic": "activities",
    "trail_count": 3,
    "type": "guide"
  },
  {
    "ID": 120,
    "background_color": "#2F2312",
    "name": "Family-Friendly Day Hikes from Yosemite Valley Campgrounds",
    "name_with_formatting": "<em>Family-Friendly Day Hikes</em> from Yosemite Valley Campgrounds",
    "objectID": "guide-120",
    "photo_url": "https://www.alltrails.com/api/alltrails/guides/120/profile_photo",
    "slug": "guides/us/california/family-friendly-day-hikes-from-yosemite-valley-campgrounds",
    "topic": "activities",
    "trail_count": 4,
    "type": "guide"
  }
]
"id": 10106838
"kind": "area"
"latitude": 37.8482617
"location": "California, United States"
"longitude": -119.5568839
"name": "Yosemite National Park"
"next_page": 2
"object_id": "area-10106838"
"page": 1
"park_type": "National Park"
"poi_count": 694
"popularity": 134.9988
"slug": "parks/us/california/yosemite-national-park"
"state": {
  "id": 5,
  "name": "California"
}
"trail_activities": [
  "hiking",
  "trail-running",
  "backpacking",
  "camping",
  "horseback-riding",
  "cross-country-skiing",
  "snowshoeing",
  "rock-climbing",
  "via-ferrata",
  "walking",
  "fishing",
  "running",
  "mountain-biking",
  "road-biking",
  "birding"
]
"trail_difficulties": [
  "moderate",
  "strenuous",
  "hard",
  "easy"
]
"trail_features": [
  "forest",
  "kids",
  "river",
  "views",
  "wild-flowers",
  "wildlife",
  "dogs-no",
  "lake",
  "waterfall",
  "ada",
  "cave",
  "dogs-leash",
  "partially-paved",
  "strollers",
  "historic-site",
  "paved",
  "beach",
  "dogs"
]
trails {}
"applied_filters": {}
"count": 1
items [1]
[0] {}
"activities": [
  "hiking",
  "trail-running"
]
"alert_ids": [
  171,
  20017,
  20019
]
"city": {
  "id": 1036,
  "name": "Yosemite Valley",
  "url": "https://www.alltrails.com/us/california/yosemite-valley"
}
"closed": false
"collections": [
  "trending",
  "waterfalls",
  "views",
  "trees",
  "rivers",
  "wildflowers"
]
"country": {
  "id": 313,
  "name": "United States"
}
"created_at": "2020-02-21T22:28:26.000Z"
descriptionString · text preview
trails.items[0].description
Hike to two breathtaking waterfalls along some of Yosemite Valley's most popular hiking trails. If you only have time for one hike while in Yosemite, look no further - the Mist Trail is the hike for you. It is no wonder that this trail is one of the most traveled in Yosemite National Park. You will hike so close to these two massive waterfalls that you may get wet from the trail. The best time to hike this trail is in Spring or early Summer, while the snow runoff is high and the falls are full of water.

The Mist Trail starts at Happy Isles Trailhead (YARTS Happy Isles shuttle stop #16, and is within walking distance of Curry Village and the parking lot). The park recommends starting early to avoid the larger crowds. After a brief stroll along the river, you climb a pretty steep initial ascent over stone steps until you reach the footbridge, which offers the first glimpse of Vernal Falls in the distance. You will also find a water fountain and restrooms. You will then continue up to Vernal Falls, past Emerald Pool, and alongside Nevada Falls until you reach the high point of this hike.

You can choose to take the alternate route down along the John Muir Trail to see great views of Nevada Falls and Liberty Cap in the distance before meeting back up with the Mist Trail near the footbridge. This route back is slightly longer, but offers a change of scenery and is easier on the knees. Before hopping back on the YARTS shuttle, treat yourself to some ice cream or a refreshing drink at the small stand, or head over to Curry Village for a wider selection.

In the 19th century, Yosemite National Park was served by Buffalo Soldiers, former Black regiments of the US Army. These men became the first Black national park rangers and backcountry rangers and were tasked with fighting fires, preventing poaching, and helping create the trails that millions of people explore each year.
"difficulty": "hard"
"difficulty_rating": 5
"elevation_gain_ft": 2070
"elevation_gain_m": 631
"features": [
  "forest",
  "river",
  "views",
  "waterfall",
  "wild-flowers",
  "wildlife",
  "dogs-no",
  "partially-paved"
]
"highest_point_m": 1827
"id": 10026910
"latitude": 37.73282
"length_km": 10.94
"length_m": 10944
"length_mi": 6.8
"location": "Yosemite National Park, California"
"longitude": -119.55778
"monthly_popularity": {
  "month_1": 311,
  "month_10": 2656,
  "month_11": 1384,
  "month_12": 352,
  "month_2": 299,
  "month_3": 676,
  "month_4": 2101,
  "month_5": 4647,
  "month_6": 4465,
  "month_7": 3912,
  "month_8": 4040,
  "month_9": 3330
}
"name": "Vernal and Nevada Falls via Mist Trail"
"park": {
  "id": 10106838,
  "name": "Yosemite National Park",
  "url": "https://www.alltrails.com/parks/us/california/yosemite-national-park"
}
"photo": "https://images.alltrails.com/eyJidWNrZXQiOiJhc3NldHMuYWxsdHJhaWxzLmNvbSIsImtleSI6InVwbG9hZHMvcGhvdG8vaW1hZ2UvMTI3MDcyMjg2LzNkNDMyZGUwYzNiMzc3NjE0OTA3NDg3NDg4YTkxODk1LmpwZyIsImVkaXRzIjp7InRvRm9ybWF0IjoianBlZyIsInJlc2l6ZSI6eyJ3aWR0aCI6MTIwMCwiaGVpZ2h0IjoxMjAwLCJmaXQiOiJpbnNpZGUifX19"
"photos": 89518
"popularity": 99.9988
"private_property": false
"rating": 4.9
"recordings": 42807
"reviews": 27900
"route_type": "loop"
"slug": "trail/us/california/vernal-and-nevada-falls-via-the-mist-trail"
"state": {
  "id": 5,
  "name": "California"
}
"text_reviews": 6229
"url": "https://www.alltrails.com/trail/us/california/vernal-and-nevada-falls-via-the-mist-trail"
"visitor_usage": 4
"limit": 1
"next_page": 2
"page": 1
"total": 309
"trails_count": 331
"type_label": "National Park"
"url": "https://www.alltrails.com/parks/us/california/yosemite-national-park"

Response result

Response structure

Inferred from examples
  • boundsobject
    • northeastobject
      • latnumber
      • lngnumber
    • southwestobject
      • latnumber
      • lngnumber
  • cachedboolean
  • countryobject
    • idinteger
    • namestring
  • credits_usedinteger
  • curated_listsnull
  • fetched_atstring
  • guidesobject[]
    • IDinteger
    • background_colorstring
    • namestring
    • name_with_formattingstring
    • objectIDstring
    • photo_urlstring
    • slugstring
    • topicstring
    • trail_countinteger
    • typestring
  • idinteger
  • kindstring
  • latitudenumber
  • locationstring
  • longitudenumber
  • namestring
  • next_pageinteger
  • object_idstring
  • pageinteger
  • park_typestring
  • poi_countinteger
  • popularitynumber
  • slugstring
  • stateobject
    • idinteger
    • namestring
  • trail_activitiesstring[]
  • trail_difficultiesstring[]
  • trail_featuresstring[]
  • trailsobject
    • applied_filtersobject
    • countinteger
    • itemsobject[]
      • activitiesstring[]
      • alert_idsinteger[]
      • cityobject
        • idinteger
        • namestring
        • urlstring
      • closedboolean
      • collectionsstring[]
      • countryobject
        • idinteger
        • namestring
      • created_atstring
      • descriptionstring
      • difficultystring
      • difficulty_ratinginteger
      • elevation_gain_ftinteger
      • elevation_gain_minteger
      • featuresstring[]
      • highest_point_minteger
      • idinteger
      • latitudenumber
      • length_kmnumber
      • length_minteger
      • length_minumber
      • locationstring
      • longitudenumber
      • monthly_popularityobject
        • month_1integer
        • month_10integer
        • month_11integer
        • month_12integer
        • month_2integer
        • month_3integer
        • month_4integer
        • month_5integer
        • month_6integer
        • month_7integer
        • month_8integer
        • month_9integer
      • namestring
      • parkobject
        • idinteger
        • namestring
        • urlstring
      • photostring
      • photosinteger
      • popularitynumber
      • private_propertyboolean
      • ratingnumber
      • recordingsinteger
      • reviewsinteger
      • route_typestring
      • slugstring
      • stateobject
        • idinteger
        • namestring
      • text_reviewsinteger
      • urlstring
      • visitor_usageinteger
    • limitinteger
    • next_pageinteger
    • pageinteger
    • totalinteger
  • trails_countinteger
  • type_labelstring
  • urlstring

Sellers

SellerPricingRequests · 30dPerformanceAccess
apishCurrent
AllTrails park or place with its trails API · GET · View API reference
$0.002 / billing credit—
—successP50—
Loading...
Selected pricing · apishUSD / billing credit
Pricing
$0.002

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 2. Price update time: not supplied.

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/apish/alltrails/v1/place
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
  'https://api.openany.si/v1/agent-apis/apish/alltrails/v1/place?limit=1&output=json&raw=0&url=parks%2Fus%2Fcalifornia%2Fyosemite-national-park' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
urlURL query parametersquerystringYesPlace link or path, e.g. `parks/us/california/yosemite-national-park`, `us/california/yosemite-valley`, `us/california`, `poi/us/colorado/estes-park/emerald-lake`; or a park id.
qURL query parametersquerystringNoKeywords to narrow the place's trails.
difficultyURL query parametersquerystringNoeasy, moderate, hard, strenuous; comma separated for several.
length_min_kmURL query parametersquerynumberNoShortest trail length in kilometres.
length_max_kmURL query parametersquerynumberNoLongest trail length in kilometres.
elevation_gain_min_mURL query parametersquerynumberNoLeast elevation gain in metres.
elevation_gain_max_mURL query parametersquerynumberNoMost elevation gain in metres.
route_typeURL query parametersquerystringNoloop, out_and_back, point_to_point; comma separated.
activitiesURL query parametersquerystringNoAny of these activities, comma separated: hiking, walking, trail-running, mountain-biking, road-biking, backpacking, camping, birding, fishing, horseback-riding, rock-climbing, skiing, cross-country-skiing, snowshoeing, scenic-driving, paddle-sports, off-road-driving, via-ferrata.
featuresURL query parametersquerystringNoFeatures every trail must have, comma separated: dogs, dogs-leash, dogs-no, kids, ada, strollers, paved, partially-paved, views, waterfall, lake, river, beach, forest, cave, wild-flowers, wildlife, hot-springs, historic-site, rails-trails, city-walk.
rating_minURL query parametersquerynumberNoLeast average rating (0-5).
open_onlyURL query parametersquerystringNo`true`: leave out closed trails.

enum: "true", "false"

park_idURL query parametersqueryintegerNoTrails in this park (id from /alltrails/v1/places or a trail's `park`).
pageURL query parametersqueryintegerNoPage (default 1). Pass `next_page` back as `page`; null on the last page. The site lists at most 1,000 results per search.
limitURL query parametersqueryintegerNoResults per page (default 24, max 100).
rawURL query parametersquerystringNo0 leaves out the bulky `raw` source blocks (often 10-30x smaller).

enum: "0", "1"

fieldsURL query parametersquerystringNoComma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
freshURL query parametersquerystringNo1 skips the 24-hour cache and fetches live.

enum: "1"

outputURL query parametersquerystringNoJSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.

enum: "json"

recordsURL query parametersquerystringNoWith output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Required markers inside a nested object or variant apply when that object or variant is used.

Sample response

Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.

Official example · Live API.SH response · Minimal request
{
  "bounds": {
    "northeast": {
      "lat": 38.1863499,
      "lng": -119.1995075
    },
    "southwest": {
      "lat": 37.4921493,
      "lng": -119.8861599
    }
  },
  "cached": false,
  "country": {
    "id": 313,
    "name": "United States"
  },
  "credits_used": 1,
  "curated_lists": null,
  "fetched_at": "2026-11-19T12:28:30.526Z",
  "guides": [
    {
      "ID": 121,
      "background_color": "#221511",
      "name": "Top Picks in Yosemite National Park",
      "name_with_formatting": "<em>Top Picks</em> in Yosemite National Park",
      "objectID": "guide-121",
      "photo_url": "https://www.alltrails.com/api/alltrails/guides/121/profile_photo",
      "slug": "guides/us/california/top-picks-in-yosemite-national-park",
      "topic": "top_picks",
      "trail_count": 8,
      "type": "guide"
    },
    {
      "ID": 122,
      "background_color": "#161f13",
      "name": "Hidden Gems in Yosemite National Park",
      "name_with_formatting": "<em>Hidden Gems</em> in Yosemite National Park",
      "objectID": "guide-122",
      "photo_url": "https://www.alltrails.com/api/alltrails/guides/122/profile_photo",
      "slug": "guides/us/california/hidden-gems-in-yosemite-national-park",
      "topic": "hidden_gems",
      "trail_count": 5,
      "type": "guide"
    },
    {
      "ID": 119,
      "background_color": "#6D4E1E",
      "name": "Backpacking Trips in Yosemite National Park",
      "name_with_formatting": "<em>Backpacking Trips</em> in Yosemite National Park",
      "objectID": "guide-119",
      "photo_url": "https://www.alltrails.com/api/alltrails/guides/119/profile_photo",
      "slug": "guides/us/california/backpacking-trips-in-yosemite-national-park",
      "topic": "activities",
      "trail_count": 3,
      "type": "guide"
    },
    {
      "ID": 120,
      "background_color": "#2F2312",
      "name": "Family-Friendly Day Hikes from Yosemite Valley Campgrounds",
      "name_with_formatting": "<em>Family-Friendly Day Hikes</em> from Yosemite Valley Campgrounds",
      "objectID": "guide-120",
      "photo_url": "https://www.alltrails.com/api/alltrails/guides/120/profile_photo",
      "slug": "guides/us/california/family-friendly-day-hikes-from-yosemite-valley-campgrounds",
      "topic": "activities",
      "trail_count": 4,
      "type": "guide"
    }
  ],
  "id": 10106838,
  "kind": "area",
  "latitude": 37.8482617,
  "location": "California, United States",
  "longitude": -119.5568839,
  "name": "Yosemite National Park",
  "next_page": 2,
  "object_id": "area-10106838",
  "page": 1,
  "park_type": "National Park",
  "poi_count": 694,
  "popularity": 134.9988,
  "slug": "parks/us/california/yosemite-national-park",
  "state": {
    "id": 5,
    "name": "California"
  },
  "trail_activities": [
    "hiking",
    "trail-running",
    "backpacking",
    "camping",
    "horseback-riding",
    "cross-country-skiing",
    "snowshoeing",
    "rock-climbing",
    "via-ferrata",
    "walking",
    "fishing",
    "running",
    "mountain-biking",
    "road-biking",
    "birding"
  ],
  "trail_difficulties": [
    "moderate",
    "strenuous",
    "hard",
    "easy"
  ],
  "trail_features": [
    "forest",
    "kids",
    "river",
    "views",
    "wild-flowers",
    "wildlife",
    "dogs-no",
    "lake",
    "waterfall",
    "ada",
    "cave",
    "dogs-leash",
    "partially-paved",
    "strollers",
    "historic-site",
    "paved",
    "beach",
    "dogs"
  ],
  "trails": {
    "applied_filters": {},
    "count": 1,
    "items": [
      {
        "activities": [
          "hiking",
          "trail-running"
        ],
        "alert_ids": [
          171,
          20017,
          20019
        ],
        "city": {
          "id": 1036,
          "name": "Yosemite Valley",
          "url": "https://www.alltrails.com/us/california/yosemite-valley"
        },
        "closed": false,
        "collections": [
          "trending",
          "waterfalls",
          "views",
          "trees",
          "rivers",
          "wildflowers"
        ],
        "country": {
          "id": 313,
          "name": "United States"
        },
        "created_at": "2020-02-21T22:28:26.000Z",
        "description": "Hike to two breathtaking waterfalls along some of Yosemite Valley's most popular hiking trails. If you only have time for one hike while in Yosemite, look no further - the Mist Trail is the hike for you. It is no wonder that this trail is one of the most traveled in Yosemite National Park. You will hike so close to these two massive waterfalls that you may get wet from the trail. The best time to hike this trail is in Spring or early Summer, while the snow runoff is high and the falls are full of water.\n\nThe Mist Trail starts at Happy Isles Trailhead (YARTS Happy Isles shuttle stop #16, and is within walking distance of Curry Village and the parking lot). The park recommends starting early to avoid the larger crowds. After a brief stroll along the river, you climb a pretty steep initial ascent over stone steps until you reach the footbridge, which offers the first glimpse of Vernal Falls in the distance. You will also find a water fountain and restrooms. You will then continue up to Vernal Falls, past Emerald Pool, and alongside Nevada Falls until you reach the high point of this hike.\n\nYou can choose to take the alternate route down along the John Muir Trail to see great views of Nevada Falls and Liberty Cap in the distance before meeting back up with the Mist Trail near the footbridge. This route back is slightly longer, but offers a change of scenery and is easier on the knees. Before hopping back on the YARTS shuttle, treat yourself to some ice cream or a refreshing drink at the small stand, or head over to Curry Village for a wider selection.\n\nIn the 19th century, Yosemite National Park was served by Buffalo Soldiers, former Black regiments of the US Army. These men became the first Black national park rangers and backcountry rangers and were tasked with fighting fires, preventing poaching, and helping create the trails that millions of people explore each year.",
        "difficulty": "hard",
        "difficulty_rating": 5,
        "elevation_gain_ft": 2070,
        "elevation_gain_m": 631,
        "features": [
          "forest",
          "river",
          "views",
          "waterfall",
          "wild-flowers",
          "wildlife",
          "dogs-no",
          "partially-paved"
        ],
        "highest_point_m": 1827,
        "id": 10026910,
        "latitude": 37.73282,
        "length_km": 10.94,
        "length_m": 10944,
        "length_mi": 6.8,
        "location": "Yosemite National Park, California",
        "longitude": -119.55778,
        "monthly_popularity": {
          "month_1": 311,
          "month_10": 2656,
          "month_11": 1384,
          "month_12": 352,
          "month_2": 299,
          "month_3": 676,
          "month_4": 2101,
          "month_5": 4647,
          "month_6": 4465,
          "month_7": 3912,
          "month_8": 4040,
          "month_9": 3330
        },
        "name": "Vernal and Nevada Falls via Mist Trail",
        "park": {
          "id": 10106838,
          "name": "Yosemite National Park",
          "url": "https://www.alltrails.com/parks/us/california/yosemite-national-park"
        },
        "photo": "https://images.alltrails.com/eyJidWNrZXQiOiJhc3NldHMuYWxsdHJhaWxzLmNvbSIsImtleSI6InVwbG9hZHMvcGhvdG8vaW1hZ2UvMTI3MDcyMjg2LzNkNDMyZGUwYzNiMzc3NjE0OTA3NDg3NDg4YTkxODk1LmpwZyIsImVkaXRzIjp7InRvRm9ybWF0IjoianBlZyIsInJlc2l6ZSI6eyJ3aWR0aCI6MTIwMCwiaGVpZ2h0IjoxMjAwLCJmaXQiOiJpbnNpZGUifX19",
        "photos": 89518,
        "popularity": 99.9988,
        "private_property": false,
        "rating": 4.9,
        "recordings": 42807,
        "reviews": 27900,
        "route_type": "loop",
        "slug": "trail/us/california/vernal-and-nevada-falls-via-the-mist-trail",
        "state": {
          "id": 5,
          "name": "California"
        },
        "text_reviews": 6229,
        "url": "https://www.alltrails.com/trail/us/california/vernal-and-nevada-falls-via-the-mist-trail",
        "visitor_usage": 4
      }
    ],
    "limit": 1,
    "next_page": 2,
    "page": 1,
    "total": 309
  },
  "trails_count": 331,
  "type_label": "National Park",
  "url": "https://www.alltrails.com/parks/us/california/yosemite-national-park"
}

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Actual API.SH credits consumed$0.002000 / billing creditResponse · /credits_used · Numeric valueAlways1 billing credit · Decimal places: 0

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.

Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.

Pricing parameters and defaults
[]

Agent integration

Copy the resource contract without sharing an API key.

View API Markdown
API Markdown
# AllTrails park or place with its trails API

Use the AllTrails park or place with its trails API to retrieve route descriptions, geographic coordinates, record identities and titles, source-page links and geographic references as structured JSON from AllTrails. Supply source-page URL in the query; optionally select search words to set the requested scope. Use these results to compare route characteristics and organize trail reference material when planning an outdoor itinerary. The documented source-page link form identifies the requested entry directly and lets you reuse an existing source-page reference. Continue with the returned next_page as page; a null value marks the last page. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
## Available implementations
apish · AllTrails park or place with its trails API: https://openany.si/markets/apis/capabilities/alltrails-park-or-place-with-its-trails-api?offering=07c95502-1a51-425a-8df6-9aa04e1d8419 · $0.002 / billing credit

## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/alltrails-park-or-place-with-its-trails-api
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/alltrails/v1/place
Price: $0.002 / billing credit
Provider: apish
Contract revision: 2
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.

Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.

## Prepared request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/alltrails/v1/place?limit=1&output=json&raw=0&url=parks%2Fus%2Fcalifornia%2Fyosemite-national-park' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "AllTrails park or place with its trails API",
  "endpoint": "https://api.openany.si/v1/agent-apis/apish/alltrails/v1/place",
  "method": "GET",
  "content_type": "none",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "description": "Place link or path, e.g. `parks/us/california/yosemite-national-park`, `us/california/yosemite-valley`, `us/california`, `poi/us/colorado/estes-park/emerald-lake`; or a park id.",
      "location": "query",
      "name": "url",
      "nullable": false,
      "required": true,
      "type": "string"
    },
    {
      "description": "Keywords to narrow the place's trails.",
      "location": "query",
      "name": "q",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "easy, moderate, hard, strenuous; comma separated for several.",
      "location": "query",
      "name": "difficulty",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Shortest trail length in kilometres.",
      "location": "query",
      "name": "length_min_km",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "Longest trail length in kilometres.",
      "location": "query",
      "name": "length_max_km",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "Least elevation gain in metres.",
      "location": "query",
      "name": "elevation_gain_min_m",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "Most elevation gain in metres.",
      "location": "query",
      "name": "elevation_gain_max_m",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "loop, out_and_back, point_to_point; comma separated.",
      "location": "query",
      "name": "route_type",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Any of these activities, comma separated: hiking, walking, trail-running, mountain-biking, road-biking, backpacking, camping, birding, fishing, horseback-riding, rock-climbing, skiing, cross-country-skiing, snowshoeing, scenic-driving, paddle-sports, off-road-driving, via-ferrata.",
      "location": "query",
      "name": "activities",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Features every trail must have, comma separated: dogs, dogs-leash, dogs-no, kids, ada, strollers, paved, partially-paved, views, waterfall, lake, river, beach, forest, cave, wild-flowers, wildlife, hot-springs, historic-site, rails-trails, city-walk.",
      "location": "query",
      "name": "features",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Least average rating (0-5).",
      "location": "query",
      "name": "rating_min",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "`true`: leave out closed trails.",
      "enum_values": [
        "true",
        "false"
      ],
      "location": "query",
      "name": "open_only",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Trails in this park (id from /alltrails/v1/places or a trail's `park`).",
      "location": "query",
      "name": "park_id",
      "nullable": false,
      "required": false,
      "type": "integer"
    },
    {
      "description": "Page (default 1). Pass `next_page` back as `page`; null on the last page. The site lists at most 1,000 results per search.",
      "location": "query",
      "name": "page",
      "nullable": false,
      "required": false,
      "type": "integer"
    },
    {
      "description": "Results per page (default 24, max 100).",
      "location": "query",
      "name": "limit",
      "nullable": false,
      "required": false,
      "type": "integer"
    },
    {
      "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
      "enum_values": [
        "0",
        "1"
      ],
      "location": "query",
      "name": "raw",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.",
      "location": "query",
      "name": "fields",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "1 skips the 24-hour cache and fetches live.",
      "enum_values": [
        "1"
      ],
      "location": "query",
      "name": "fresh",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
      "enum_values": [
        "json"
      ],
      "location": "query",
      "name": "output",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.",
      "location": "query",
      "name": "records",
      "nullable": false,
      "required": false,
      "type": "string"
    }
  ],
  "billing": {
    "currency": "USD",
    "mode": "rules",
    "parameters": [],
    "policy_version": 2,
    "sale": {
      "addons": [],
      "base_price_micro_usd": "0",
      "max_cost_micro_usd": "2000",
      "quantities": [
        {
          "id": "upstream_credits",
          "label": "Actual API.SH credits consumed",
          "max_quantity": "1",
          "measure": "value",
          "pointer": "/credits_used",
          "price_micro_usd": "2000",
          "quantity_scale": 0,
          "source": "response",
          "unit": "credit",
          "unit_quantity": "1"
        }
      ],
      "rounding": "ceil",
      "variants": []
    }
  },
  "examples": [
    {
      "http_status": 200,
      "name": "Official example · Live API.SH response · Minimal request",
      "request": {
        "body": null,
        "headers": {},
        "path": {},
        "query": {
          "limit": "1",
          "output": "json",
          "raw": "0",
          "url": "parks/us/california/yosemite-national-park"
        }
      },
      "response_body": {
        "bounds": {
          "northeast": {
            "lat": 38.1863499,
            "lng": -119.1995075
          },
          "southwest": {
            "lat": 37.4921493,
            "lng": -119.8861599
          }
        },
        "cached": false,
        "country": {
          "id": 313,
          "name": "United States"
        },
        "credits_used": 1,
        "curated_lists": null,
        "fetched_at": "2026-11-19T12:28:30.526Z",
        "guides": [
          {
            "ID": 121,
            "background_color": "#221511",
            "name": "Top Picks in Yosemite National Park",
            "name_with_formatting": "<em>Top Picks</em> in Yosemite National Park",
            "objectID": "guide-121",
            "photo_url": "https://www.alltrails.com/api/alltrails/guides/121/profile_photo",
            "slug": "guides/us/california/top-picks-in-yosemite-national-park",
            "topic": "top_picks",
            "trail_count": 8,
            "type": "guide"
          },
          {
            "ID": 122,
            "background_color": "#161f13",
            "name": "Hidden Gems in Yosemite National Park",
            "name_with_formatting": "<em>Hidden Gems</em> in Yosemite National Park",
            "objectID": "guide-122",
            "photo_url": "https://www.alltrails.com/api/alltrails/guides/122/profile_photo",
            "slug": "guides/us/california/hidden-gems-in-yosemite-national-park",
            "topic": "hidden_gems",
            "trail_count": 5,
            "type": "guide"
          },
          {
            "ID": 119,
            "background_color": "#6D4E1E",
            "name": "Backpacking Trips in Yosemite National Park",
            "name_with_formatting": "<em>Backpacking Trips</em> in Yosemite National Park",
            "objectID": "guide-119",
            "photo_url": "https://www.alltrails.com/api/alltrails/guides/119/profile_photo",
            "slug": "guides/us/california/backpacking-trips-in-yosemite-national-park",
            "topic": "activities",
            "trail_count": 3,
            "type": "guide"
          },
          {
            "ID": 120,
            "background_color": "#2F2312",
            "name": "Family-Friendly Day Hikes from Yosemite Valley Campgrounds",
            "name_with_formatting": "<em>Family-Friendly Day Hikes</em> from Yosemite Valley Campgrounds",
            "objectID": "guide-120",
            "photo_url": "https://www.alltrails.com/api/alltrails/guides/120/profile_photo",
            "slug": "guides/us/california/family-friendly-day-hikes-from-yosemite-valley-campgrounds",
            "topic": "activities",
            "trail_count": 4,
            "type": "guide"
          }
        ],
        "id": 10106838,
        "kind": "area",
        "latitude": 37.8482617,
        "location": "California, United States",
        "longitude": -119.5568839,
        "name": "Yosemite National Park",
        "next_page": 2,
        "object_id": "area-10106838",
        "page": 1,
        "park_type": "National Park",
        "poi_count": 694,
        "popularity": 134.9988,
        "slug": "parks/us/california/yosemite-national-park",
        "state": {
          "id": 5,
          "name": "California"
        },
        "trail_activities": [
          "hiking",
          "trail-running",
          "backpacking",
          "camping",
          "horseback-riding",
          "cross-country-skiing",
          "snowshoeing",
          "rock-climbing",
          "via-ferrata",
          "walking",
          "fishing",
          "running",
          "mountain-biking",
          "road-biking",
          "birding"
        ],
        "trail_difficulties": [
          "moderate",
          "strenuous",
          "hard",
          "easy"
        ],
        "trail_features": [
          "forest",
          "kids",
          "river",
          "views",
          "wild-flowers",
          "wildlife",
          "dogs-no",
          "lake",
          "waterfall",
          "ada",
          "cave",
          "dogs-leash",
          "partially-paved",
          "strollers",
          "historic-site",
          "paved",
          "beach",
          "dogs"
        ],
        "trails": {
          "applied_filters": {},
          "count": 1,
          "items": [
            {
              "activities": [
                "hiking",
                "trail-running"
              ],
              "alert_ids": [
                171,
                20017,
                20019
              ],
              "city": {
                "id": 1036,
                "name": "Yosemite Valley",
                "url": "https://www.alltrails.com/us/california/yosemite-valley"
              },
              "closed": false,
              "collections": [
                "trending",
                "waterfalls",
                "views",
                "trees",
                "rivers",
                "wildflowers"
              ],
              "country": {
                "id": 313,
                "name": "United States"
              },
              "created_at": "2020-02-21T22:28:26.000Z",
              "description": "Hike to two breathtaking waterfalls along some of Yosemite Valley's most popular hiking trails. If you only have time for one hike while in Yosemite, look no further - the Mist Trail is the hike for you. It is no wonder that this trail is one of the most traveled in Yosemite National Park. You will hike so close to these two massive waterfalls that you may get wet from the trail. The best time to hike this trail is in Spring or early Summer, while the snow runoff is high and the falls are full of water.\n\nThe Mist Trail starts at Happy Isles Trailhead (YARTS Happy Isles shuttle stop #16, and is within walking distance of Curry Village and the parking lot). The park recommends starting early to avoid the larger crowds. After a brief stroll along the river, you climb a pretty steep initial ascent over stone steps until you reach the footbridge, which offers the first glimpse of Vernal Falls in the distance. You will also find a water fountain and restrooms. You will then continue up to Vernal Falls, past Emerald Pool, and alongside Nevada Falls until you reach the high point of this hike.\n\nYou can choose to take the alternate route down along the John Muir Trail to see great views of Nevada Falls and Liberty Cap in the distance before meeting back up with the Mist Trail near the footbridge. This route back is slightly longer, but offers a change of scenery and is easier on the knees. Before hopping back on the YARTS shuttle, treat yourself to some ice cream or a refreshing drink at the small stand, or head over to Curry Village for a wider selection.\n\nIn the 19th century, Yosemite National Park was served by Buffalo Soldiers, former Black regiments of the US Army. These men became the first Black national park rangers and backcountry rangers and were tasked with fighting fires, preventing poaching, and helping create the trails that millions of people explore each year.",
              "difficulty": "hard",
              "difficulty_rating": 5,
              "elevation_gain_ft": 2070,
              "elevation_gain_m": 631,
              "features": [
                "forest",
                "river",
                "views",
                "waterfall",
                "wild-flowers",
                "wildlife",
                "dogs-no",
                "partially-paved"
              ],
              "highest_point_m": 1827,
              "id": 10026910,
              "latitude": 37.73282,
              "length_km": 10.94,
              "length_m": 10944,
              "length_mi": 6.8,
              "location": "Yosemite National Park, California",
              "longitude": -119.55778,
              "monthly_popularity": {
                "month_1": 311,
                "month_10": 2656,
                "month_11": 1384,
                "month_12": 352,
                "month_2": 299,
                "month_3": 676,
                "month_4": 2101,
                "month_5": 4647,
                "month_6": 4465,
                "month_7": 3912,
                "month_8": 4040,
                "month_9": 3330
              },
              "name": "Vernal and Nevada Falls via Mist Trail",
              "park": {
                "id": 10106838,
                "name": "Yosemite National Park",
                "url": "https://www.alltrails.com/parks/us/california/yosemite-national-park"
              },
              "photo": "https://images.alltrails.com/eyJidWNrZXQiOiJhc3NldHMuYWxsdHJhaWxzLmNvbSIsImtleSI6InVwbG9hZHMvcGhvdG8vaW1hZ2UvMTI3MDcyMjg2LzNkNDMyZGUwYzNiMzc3NjE0OTA3NDg3NDg4YTkxODk1LmpwZyIsImVkaXRzIjp7InRvRm9ybWF0IjoianBlZyIsInJlc2l6ZSI6eyJ3aWR0aCI6MTIwMCwiaGVpZ2h0IjoxMjAwLCJmaXQiOiJpbnNpZGUifX19",
              "photos": 89518,
              "popularity": 99.9988,
              "private_property": false,
              "rating": 4.9,
              "recordings": 42807,
              "reviews": 27900,
              "route_type": "loop",
              "slug": "trail/us/california/vernal-and-nevada-falls-via-the-mist-trail",
              "state": {
                "id": 5,
                "name": "California"
              },
              "text_reviews": 6229,
              "url": "https://www.alltrails.com/trail/us/california/vernal-and-nevada-falls-via-the-mist-trail",
              "visitor_usage": 4
            }
          ],
          "limit": 1,
          "next_page": 2,
          "page": 1,
          "total": 309
        },
        "trails_count": 331,
        "type_label": "National Park",
        "url": "https://www.alltrails.com/parks/us/california/yosemite-national-park"
      }
    }
  ]
}
```

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · Live API.SH response · Minimal request

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 20

    Review these request fields before running. Keep the published provider and request method unchanged.

    url
    Place link or path, e.g. `parks/us/california/yosemite-national-park`, `us/california/yosemite-valley`, `us/california`, `poi/us/colorado/estes-park/emerald-lake`; or a park id.
    q
    Keywords to narrow the place's trails.
    difficulty
    easy, moderate, hard, strenuous; comma separated for several.
    length_min_km
    Shortest trail length in kilometres.
    length_max_km
    Longest trail length in kilometres.
    elevation_gain_min_m
    Least elevation gain in metres.
    elevation_gain_max_m
    Most elevation gain in metres.
    route_type
    loop, out_and_back, point_to_point; comma separated.
    activities
    Any of these activities, comma separated: hiking, walking, trail-running, mountain-biking, road-biking, backpacking, camping, birding, fishing, horseback-riding, rock-climbing, skiing, cross-country-skiing, snowshoeing, scenic-driving, paddle-sports, off-road-driving, via-ferrata.
    features
    Features every trail must have, comma separated: dogs, dogs-leash, dogs-no, kids, ada, strollers, paved, partially-paved, views, waterfall, lake, river, beach, forest, cave, wild-flowers, wildlife, hot-springs, historic-site, rails-trails, city-walk.
    rating_min
    Least average rating (0-5).
    open_only
    `true`: leave out closed trails.
    park_id
    Trails in this park (id from /alltrails/v1/places or a trail's `park`).
    page
    Page (default 1). Pass `next_page` back as `page`; null on the last page. The site lists at most 1,000 results per search.
    limit
    Results per page (default 24, max 100).
    raw
    0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
    fields
    Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
    fresh
    1 skips the 24-hour cache and fetches live.
    output
    JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
    records
    With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/apish/alltrails/v1/place?limit=1&output=json&raw=0&url=parks%2Fus%2Fcalifornia%2Fyosemite-national-park' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "bounds": {
        "northeast": {
          "lat": 38.1863499,
          "lng": -119.1995075
        },
        "southwest": {
          "lat": 37.4921493,
          "lng": -119.8861599
        }
      },
      "cached": false,
      "country": {
        "id": 313,
        "name": "United States"
      },
      "credits_used": 1,
      "curated_lists": null,
      "fetched_at": "2026-11-19T12:28:30.526Z",
      "guides": [
        {
          "ID": 121,
          "background_color": "#221511",
          "name": "Top Picks in Yosemite National Park",
          "name_with_formatting": "<em>Top Picks</em> in Yosemite National Park",
          "objectID": "guide-121",
          "photo_url": "https://www.alltrails.com/api/alltrails/guides/121/profile_photo",
          "slug": "guides/us/california/top-picks-in-yosemite-national-park",
          "topic": "top_picks",
          "trail_count": 8,
          "type": "guide"
        },
        {
          "ID": 122,
          "background_color": "#161f13",
          "name": "Hidden Gems in Yosemite National Park",
          "name_with_formatting": "<em>Hidden Gems</em> in Yosemite National Park",
          "objectID": "guide-122",
          "photo_url": "https://www.alltrails.com/api/alltrails/guides/122/profile_photo",
          "slug": "guides/us/california/hidden-gems-in-yosemite-national-park",
          "topic": "hidden_gems",
          "trail_count": 5,
          "type": "guide"
        },
        {
          "ID": 119,
          "background_color": "#6D4E1E",
          "name": "Backpacking Trips in Yosemite National Park",
          "name_with_formatting": "<em>Backpacking Trips</em> in Yosemite National Park",
          "objectID": "guide-119",
          "photo_url": "https://www.alltrails.com/api/alltrails/guides/119/profile_photo",
          "slug": "guides/us/california/backpacking-trips-in-yosemite-national-park",
          "topic": "activities",
          "trail_count": 3,
          "type": "guide"
        },
        {
          "ID": 120,
          "background_color": "#2F2312",
          "name": "Family-Friendly Day Hikes from Yosemite Valley Campgrounds",
          "name_with_formatting": "<em>Family-Friendly Day Hikes</em> from Yosemite Valley Campgrounds",
          "objectID": "guide-120",
          "photo_url": "https://www.alltrails.com/api/alltrails/guides/120/profile_photo",
          "slug": "guides/us/california/family-friendly-day-hikes-from-yosemite-valley-campgrounds",
          "topic": "activities",
          "trail_count": 4,
          "type": "guide"
        }
      ],
      "id": 10106838,
      "kind": "area",
      "latitude": 37.8482617,
      "location": "California, United States",
      "longitude": -119.5568839,
      "name": "Yosemite National Park",
      "next_page": 2,
      "object_id": "area-10106838",
      "page": 1,
      "park_type": "National Park",
      "poi_count": 694,
      "popularity": 134.9988,
      "slug": "parks/us/california/yosemite-national-park",
      "state": {
        "id": 5,
        "name": "California"
      },
      "trail_activities": [
        "hiking",
        "trail-running",
        "backpacking",
        "camping",
        "horseback-riding",
        "cross-country-skiing",
        "snowshoeing",
        "rock-climbing",
        "via-ferrata",
        "walking",
        "fishing",
        "running",
        "mountain-biking",
        "road-biking",
        "birding"
      ],
      "trail_difficulties": [
        "moderate",
        "strenuous",
        "hard",
        "easy"
      ],
      "trail_features": [
        "forest",
        "kids",
        "river",
        "views",
        "wild-flowers",
        "wildlife",
        "dogs-no",
        "lake",
        "waterfall",
        "ada",
        "cave",
        "dogs-leash",
        "partially-paved",
        "strollers",
        "historic-site",
        "paved",
        "beach",
        "dogs"
      ],
      "trails": {
        "applied_filters": {},
        "count": 1,
        "items": [
          {
            "activities": [
              "hiking",
              "trail-running"
            ],
            "alert_ids": [
              171,
              20017,
              20019
            ],
            "city": {
              "id": 1036,
              "name": "Yosemite Valley",
              "url": "https://www.alltrails.com/us/california/yosemite-valley"
            },
            "closed": false,
            "collections": [
              "trending",
              "waterfalls",
              "views",
              "trees",
              "rivers",
              "wildflowers"
            ],
            "country": {
              "id": 313,
              "name": "United States"
            },
            "created_at": "2020-02-21T22:28:26.000Z",
            "description": "Hike to two breathtaking waterfalls along some of Yosemite Valley's most popular hiking trails. If you only have time for one hike while in Yosemite, look no further - the Mist Trail is the hike for you. It is no wonder that this trail is one of the most traveled in Yosemite National Park. You will hike so close to these two massive waterfalls that you may get wet from the trail. The best time to hike this trail is in Spring or early Summer, while the snow runoff is high and the falls are full of water.\n\nThe Mist Trail starts at Happy Isles Trailhead (YARTS Happy Isles shuttle stop #16, and is within walking distance of Curry Village and the parking lot). The park recommends starting early to avoid the larger crowds. After a brief stroll along the river, you climb a pretty steep initial ascent over stone steps until you reach the footbridge, which offers the first glimpse of Vernal Falls in the distance. You will also find a water fountain and restrooms. You will then continue up to Vernal Falls, past Emerald Pool, and alongside Nevada Falls until you reach the high point of this hike.\n\nYou can choose to take the alternate route down along the John Muir Trail to see great views of Nevada Falls and Liberty Cap in the distance before meeting back up with the Mist Trail near the footbridge. This route back is slightly longer, but offers a change of scenery and is easier on the knees. Before hopping back on the YARTS shuttle, treat yourself to some ice cream or a refreshing drink at the small stand, or head over to Curry Village for a wider selection.\n\nIn the 19th century, Yosemite National Park was served by Buffalo Soldiers, former Black regiments of the US Army. These men became the first Black national park rangers and backcountry rangers and were tasked with fighting fires, preventing poaching, and helping create the trails that millions of people explore each year.",
            "difficulty": "hard",
            "difficulty_rating": 5,
            "elevation_gain_ft": 2070,
            "elevation_gain_m": 631,
            "features": [
              "forest",
              "river",
              "views",
              "waterfall",
              "wild-flowers",
              "wildlife",
              "dogs-no",
              "partially-paved"
            ],
            "highest_point_m": 1827,
            "id": 10026910,
            "latitude": 37.73282,
            "length_km": 10.94,
            "length_m": 10944,
            "length_mi": 6.8,
            "location": "Yosemite National Park, California",
            "longitude": -119.55778,
            "monthly_popularity": {
              "month_1": 311,
              "month_10": 2656,
              "month_11": 1384,
              "month_12": 352,
              "month_2": 299,
              "month_3": 676,
              "month_4": 2101,
              "month_5": 4647,
              "month_6": 4465,
              "month_7": 3912,
              "month_8": 4040,
              "month_9": 3330
            },
            "name": "Vernal and Nevada Falls via Mist Trail",
            "park": {
              "id": 10106838,
              "name": "Yosemite National Park",
              "url": "https://www.alltrails.com/parks/us/california/yosemite-national-park"
            },
            "photo": "https://images.alltrails.com/eyJidWNrZXQiOiJhc3NldHMuYWxsdHJhaWxzLmNvbSIsImtleSI6InVwbG9hZHMvcGhvdG8vaW1hZ2UvMTI3MDcyMjg2LzNkNDMyZGUwYzNiMzc3NjE0OTA3NDg3NDg4YTkxODk1LmpwZyIsImVkaXRzIjp7InRvRm9ybWF0IjoianBlZyIsInJlc2l6ZSI6eyJ3aWR0aCI6MTIwMCwiaGVpZ2h0IjoxMjAwLCJmaXQiOiJpbnNpZGUifX19",
            "photos": 89518,
            "popularity": 99.9988,
            "private_property": false,
            "rating": 4.9,
            "recordings": 42807,
            "reviews": 27900,
            "route_type": "loop",
            "slug": "trail/us/california/vernal-and-nevada-falls-via-the-mist-trail",
            "state": {
              "id": 5,
              "name": "California"
            },
            "text_reviews": 6229,
            "url": "https://www.alltrails.com/trail/us/california/vernal-and-nevada-falls-via-the-mist-trail",
            "visitor_usage": 4
          }
        ],
        "limit": 1,
        "next_page": 2,
        "page": 1,
        "total": 309
      },
      "trails_count": 331,
      "type_label": "National Park",
      "url": "https://www.alltrails.com/parks/us/california/yosemite-national-park"
    }

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use AllTrails park or place with its trails API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.