Strava API endpoint
Returns a single Strava route's detail: type, difficulty, distance, elevation gain, estimated time, and summary. `path` is the relative route path returned by `/strava/routes` results (e.g. `hiking/usa/colorado/boulder/mallory-cave_5171952737974445730`). Public data, sourced from Strava's own server-rendered route pages.
/strava/routes/detailQuery parameters:
path (required) — the relative route path, taken verbatim from a
/strava/routes result's path field (e.g.
hiking/usa/colorado/boulder/mallory-cave_5171952737974445730).Notable response behavior:
path must start with a supported sport segment (hiking,
road-biking, mountain-biking, trail-running, gravel-biking) and
contain no path-traversal segments; otherwise 400 is returned before
any upstream request is made.404.| Field | In the sample | Value in the sample |
|---|---|---|
| name | Has a value | |
| route_type | Has a value | |
| difficulty | Has a value | |
| distance_raw | Has a value | |
| elevation_gain_raw | Has a value | |
| estimated_time_raw | Has a value | |
| summary | Has a value | 480 characters |
| path | Has a value | |
| url | Has a value | strava.com |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| path | string | Yes | Relative route path, from a /strava/routes result's path field | hiking/usa/colorado/boulder/mallory-cave_5171952737974445730 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/strava/routes/detail?path=hiking%2Fusa%2Fcolorado%2Fboulder%2Fmallory-cave_5171952737974445730" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"name": "Mallory Cave via N.C.A.R. Trail",
"route_type": "Hiking Trail",
"difficulty": "Easy",
"distance_raw": "1.46 mi",
"elevation_gain_raw": "345 ft",
"estimated_time_raw": "33:48",
"summary": "The Mallory Cave hike takes you to the mouth of a beautiful cave...",
"path": "hiking/usa/colorado/boulder/mallory-cave_5171952737974445730",
"url": "https://www.strava.com/routes/hiking/usa/colorado/boulder/mallory-cave_5171952737974445730",
"source_url": "https://www.strava.com/routes/hiking/usa/colorado/boulder/mallory-cave_5171952737974445730"
}
}Request schema
No body schema
Response schema
#/definitions/strava.routeDetailResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | strava.RouteDetailResponse | No | ||||
| data.difficulty | string | No | Easy | |||
| data.distance_raw | string | No | 1.46 mi | |||
| data.elevation_gain_raw | string | No | 345 ft | |||
| data.estimated_time_raw | string | No | 33:48 | |||
| data.fetched_at | string | No | 2026-08-07T12:00:00Z | |||
| data.name | string | No | Mallory Cave via N.C.A.R. Trail | |||
| data.path | string | No | hiking/usa/colorado/boulder/mallory-cave_5171952737974445730 | |||
| data.route_type | string | No | Hiking Trail | |||
| data.source_url | string | No | https://www.strava.com/routes/hiking/usa/colorado/boulder/mallory-cave_5171952737974445730 | |||
| data.summary | string | No | The Mallory Cave hike takes you to the mouth of a beautiful cave... | |||
| data.url | string | No | https://www.strava.com/routes/hiking/usa/colorado/boulder/mallory-cave_5171952737974445730 | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/strava/routes/detail?path=hiking%2Fusa%2Fcolorado%2Fboulder%2Fmallory-cave_5171952737974445730" \
-H "x-api-key: $CRAWLORA_API_KEY"