Every hike, as JSON.
Build your own app, map or bot on our trails. No key, no sign-up, CORS open. Everything is a prebuilt static file, so fetch once and filter on your side.
Endpoints
- /api/hikes.jsonEvery hike: distance, ascent, grade, seasons, flags (family, pram, run, snowshoe), start point, transport, links and GPX URL.
- /api/hikes/<id>.jsonOne hike, plus a ~120-point track of [lat, lon] pairs for drawing on a map.
- /api/seasons/<season>.jsonHikes for spring, summer, autumn or winter.
- /api/openapi.jsonOpenAPI 3.1 spec with every field described.
Quick start
Easy hikes under three hours, in JavaScript:
const hikes = await (await fetch('https://hikingrepublic.org/api/hikes.json')).json();
const easy = hikes.filter(h => h.grade === 'T1' && h.hours <= 3);
Or from the shell: curl -s https://hikingrepublic.org/api/hikes.json | jq '.[] | select(.family) | .name'
Using the OpenAPI spec
Paste https://hikingrepublic.org/api/openapi.json into Swagger Editor to browse it, generate a typed client with OpenAPI Generator or npx openapi-typescript https://hikingrepublic.org/api/openapi.json -o hikes.d.ts, or hand it to an AI agent or tool that speaks OpenAPI.
Distances and heights come from each hike’s GPX. Map data © OpenStreetMap contributors (ODbL). Please link back to hikingrepublic.org when you use it.