{"data":{"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":[]}},"capabilityId":"888cbd5b-9e6f-4e14-ba0d-57e52b698a7b","catalogType":"api","categories":["travel","data"],"dataPlatform":"alltrails","dataPlatformLogoUrl":"https://api.sh/logos/alltrails.png","dataPlatformTranslations":{},"dataProduct":"hiking","description":"Search AllTrails trails by keywords and geographic filters via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as limit, output, q, and retrieve structured data including source trail identifier, trail length in kilometres, source difficulty label, and source user-rating value for trail comparison, and nearby discovery.","descriptionTranslations":{"ar":"ابحث عن مسارات AllTrails بالكلمات والمرشحات الجغرافية، مع المسافة والارتفاع ونوع الطريق والميزات لمقارنة الخصائص وصفحات نتائج الاكتشاف. استخدم السجلات المنظمة لإعداد واجهة اكتشاف الأنشطة الخارجية أو ربط الأماكن والطرق، مع توضيح المسافة والارتفاع والتغطية وأمثلة الطلبات المدعومة وتسعير التنفيذ الحالي في صفحة API.","ja":"キーワード・地域条件で AllTrails を検索し、距離・標高差・ルート種別・特徴からトレイルを比較できます。 構造化記録をアウトドア検索や場所・ルート連携に使い、距離・標高差・出典範囲を保持できます。API 詳細ページには対応リクエスト例と選択した実装の料金があります。","zh":"按关键词和地理条件搜索 AllTrails 路线，可筛选距离、爬升、路线类型与特征，比较来源属性并分页。 可利用结构化记录构建户外发现界面或关联来源地点与路线，保留距离、爬升和覆盖范围；API 详情页提供受支持的请求示例和当前实现价格。"},"effectContentHtml":"","executionMode":"sync","id":"2885cc4f-e23e-449b-977a-5a82a7dbf71a","includedContentHtml":"","inputs":[{"description":"Keywords (trail, park or place name), e.g. `half dome`. Optional when a place filter or `lat`/`lng` is given.","location":"query","name":"q","nullable":false,"required":true,"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":"Trails near this city (id from /alltrails/v1/places or a trail's `city`).","location":"query","name":"city_id","nullable":false,"required":false,"type":"integer"},{"description":"Trails in this state or region (e.g. `5` for California).","location":"query","name":"state_id","nullable":false,"required":false,"type":"integer"},{"description":"Trails in this country (e.g. `313` for the United States).","location":"query","name":"country_id","nullable":false,"required":false,"type":"integer"},{"description":"Latitude of a point: trails around it, nearest first.","location":"query","name":"lat","nullable":false,"required":false,"type":"number"},{"description":"Longitude of the point.","location":"query","name":"lng","nullable":false,"required":false,"type":"number"},{"description":"Search radius around the point in km (default 25, max 500).","location":"query","name":"radius_km","nullable":false,"required":false,"type":"number"},{"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"}],"logoUrl":"https://api.sh/logos/alltrails.png","method":"GET","name":"AllTrails trail search API","nameTranslations":{},"overviewHtml":"\u003ch2\u003eAllTrails Trail Search API\u003c/h2\u003e\n\u003cp\u003eUse q with supported place IDs or lat/lng filters. Length filters use kilometres and elevation-gain filters metres; preserve difficulty, difficulty_rating and user rating as separate source properties.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eRequired: q. Optional: difficulty, length_min_km, length_max_km, elevation_gain_min_m, elevation_gain_max_m, route_type, activities, features, rating_min, open_only, park_id, city_id, state_id, country_id, lat, lng, radius_km, page, limit. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eapish · AllTrails trail search API\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eTrail comparison\u003c/strong\u003e: Keep source difficulty and user ratings separate.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eNearby discovery\u003c/strong\u003e: Retain query coordinates, radius and metric filter units.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etrails[].id\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource trail identifier\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etrails[].length_km\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTrail length in kilometres\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etrails[].elevation_gain_m\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eCumulative elevation gain in metres\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etrails[].difficulty\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource difficulty label\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etrails[].rating\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eSource user-rating value\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003enext_page\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eNext source result page when present\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/apish/alltrails/v1/search \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode limit=1 \\\n  --data-urlencode output=json \\\n  --data-urlencode \u0026#39;q=half dome\u0026#39; \\\n  --data-urlencode raw=0\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/2885cc4f-e23e-449b-977a-5a82a7dbf71a\"\u003ePublished AllTrails Trail Search API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eHow can I scope the geographic search?\u003c/h3\u003e\n\u003cp\u003eUse supported park, city, state or country IDs, or lat/lng with radius_km, default 25 and maximum 500.\u003c/p\u003e\n\u003ch3\u003eAre difficulty and rating the same?\u003c/h3\u003e\n\u003cp\u003eNo. Keep source difficulty labels and difficulty_rating separate from user rating.\u003c/p\u003e\n\u003ch3\u003eHow do activities and features combine?\u003c/h3\u003e\n\u003cp\u003eactivities matches any listed activity; features requires every listed feature. Preserve literal source filter values.\u003c/p\u003e\n\u003ch3\u003eHow do I paginate the source search?\u003c/h3\u003e\n\u003cp\u003elimit defaults to 24 and accepts up to 100. Follow next_page; the source search exposes at most 1,000 results.\u003c/p\u003e\n\u003ch3\u003eHow do I bypass cached results?\u003c/h3\u003e\n\u003cp\u003ePass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.\u003c/p\u003e\n\u003ch3\u003eCan I request CSV or NDJSON?\u003c/h3\u003e\n\u003cp\u003eThis OpenAny implementation serves JSON only. Omit output or set output=json.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/alltrails/alltrails-park-or-place-with-its-trails-api\"\u003eAllTrails park or place with its trails API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/alltrails/alltrails-place-search-api\"\u003eAllTrails place search API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/alltrails/alltrails-trail-api\"\u003eAllTrails trail API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/alltrails/alltrails-trail-search-api?offering=2885cc4f-e23e-449b-977a-5a82a7dbf71a","providerId":"apish","publicPath":"/v1/agent-apis/apish/alltrails/v1/search","requestContentType":"none","revision":3,"samples":[{"http_status":200,"name":"Official example · Live API.SH response · Minimal request","request":{"body":null,"headers":{},"path":{},"query":{"limit":"1","output":"json","q":"half dome","raw":"0"}},"response_body":{"applied_filters":{},"cached":false,"count":1,"credits_used":1,"fetched_at":"2026-11-19T12:28:30.740Z","limit":1,"next_page":2,"page":1,"q":"half dome","total":35,"trails":[{"activities":["camping","hiking","rock-climbing","via-ferrata"],"alert_ids":[171,20017,20019,41302],"city":{"id":1036,"name":"Yosemite Valley","url":"https://www.alltrails.com/us/california/yosemite-valley"},"closed":false,"collections":["waterfalls","trending","views","trees","rivers","wildflowers"],"country":{"id":313,"name":"United States"},"created_at":"2020-02-13T23:08:35.000Z","description":"Half Dome is a serious endurance hike taking you 4,800 feet above the Yosemite Valley to spectacular views of Vernal and Nevada Falls, Liberty Cap, the Yosemite Valley, and the High Sierra. This is one of Yosemite National Park’s most iconic hikes. You must obtain a permit to hike to the summit of Half Dome. \n\nPreparation and safety are key to having a fantastic experience. This hike requires you to be in good shape. Most people take 10 to 12 hours to hike to Half Dome and back, depending on the way you choose to come down. Plan to leave around sunrise (or earlier) and then have a non-negotiable turnaround time. The trail is fairly well marked, but make sure to watch for all trail signs, as it can be easy to miss them.\n\nThe elevation gain is very strenuous, starting with a steep climb to Vernal Falls, followed by another steep climb to the top of Nevada Falls. There is about 1 mile of fairly level hiking before reaching Little Yosemite Campground, followed by steep switchbacks through the forest. At about 7 miles into your trip, you’ll reach a break in the trees with a beautiful view of Half Dome and the valley below. Some steep switchbacks carved like stairs into the rock guide the way up to the top of what is known as Sub Dome. Once you walk across the rocky surface of Sub Dome, you’ll arrive at the base of the cables with only 400 feet to go. These last 400 feet are the most challenging, but also the most rewarding (although you may not realize it until you are comfortably back on the valley floor).\n\nThe part of this journey that makes the ascent up Half Dome famous is the cable route. Two steel cables allow hikers to climb the last 400 feet to the summit without rock climbing equipment. The cables are around a 45-55 degree angle, with wooden supports every 10 to 20 feet to rest and maintain your balance. Using gloves is highly recommended to get a better grip and avoid painful blisters. Some choose to bring a harness, carabiners, and slings to secure themselves to the cables as they ascend for extra safety. Be sure to tightly secure your water bottles and cameras for the climb up because you will want them once at the top. Once you have reached the summit, take the time to rest for a while and take in the incredible panoramic views. The Half Dome cables usually go up the Friday before Memorial Day (conditions permitting) and come down the day after Columbus Day.\n\nCompared to the hike up, the return journey flies by, and before you know it, you will be back at the top of Nevada Falls. You have 2 options here: the Mist Trail, which is how you came up, is about 3.4 miles (5.5km), or the John Muir Trail for a slight change of scenery (about 0.5 miles further). The waterfalls suddenly seem much more pleasant as you hike down compared to the earlier climb, and it's hard to hold back a smile as you reach the Vernal Falls footbridge, where you can refill your water (there are also facilities here). About 30 minutes later, you are back at the trailhead, where you can catch a free shuttle to your car or anywhere else in the valley (there is a concession stand near the bus stop where you can buy cold drinks and ice cream).","difficulty":"strenuous","difficulty_rating":7,"elevation_gain_ft":5101,"elevation_gain_m":1555,"features":["forest","river","views","waterfall","wild-flowers","wildlife","dogs-no"],"highest_point_m":2691,"id":10005585,"latitude":37.73282,"length_km":27.36,"length_m":27359,"length_mi":17,"location":"Yosemite National Park, California","longitude":-119.55778,"monthly_popularity":{"month_1":105,"month_10":2195,"month_11":402,"month_12":96,"month_2":98,"month_3":213,"month_4":483,"month_5":1855,"month_6":3387,"month_7":3293,"month_8":3448,"month_9":3642},"name":"Half Dome via the John Muir Trail (JMT)","park":{"id":10106838,"name":"Yosemite National Park","url":"https://www.alltrails.com/parks/us/california/yosemite-national-park"},"photo":"https://images.alltrails.com/eyJidWNrZXQiOiJhc3NldHMuYWxsdHJhaWxzLmNvbSIsImtleSI6InVwbG9hZHMvcGhvdG8vaW1hZ2UvMTMxMTA3MDI5L2NkNmU2MzNmOGI1MmEwMjgzYmM4MzA3MWNkY2NhOGZmLmpwZyIsImVkaXRzIjp7InRvRm9ybWF0IjoianBlZyIsInJlc2l6ZSI6eyJ3aWR0aCI6MTIwMCwiaGVpZ2h0IjoxMjAwLCJmaXQiOiJpbnNpZGUifX19","photos":63583,"popularity":99.9951,"private_property":false,"rating":4.9,"recordings":29812,"reviews":19043,"route_type":"out_and_back","slug":"trail/us/california/half-dome-via-the-john-muir-trail-jmt","state":{"id":5,"name":"California"},"text_reviews":5175,"url":"https://www.alltrails.com/trail/us/california/half-dome-via-the-john-muir-trail-jmt","visitor_usage":4}]}}],"seoDescription":"Search AllTrails trails by keywords and geographic via REST or MCP powered by Apish. Pay per call, no subscription. Built for trail comparison workflows.","updatedAt":"2026-12-03T02:47:21.296Z","usageInstructionsHtml":""}}