API

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

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.