Komoot collection
A public Komoot collection (a themed list of routes and highlights, often by a tourism board or brand): name, type, sport, tags, multi-day flag, intro, creator and its items (item_type tour or highlight, with the fields of /komoot/v1/tour or /komoot/v1/highlight). Pass next_page back as page; null on the last page.
Every response includes credits_used: the credits this call cost.
Part of the Komoot API: 13 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
idrequired | string | A collection id or a komoot.com/collection/... link. Example: 1001 |
page | integer | Page number, from 1. |
limit | integer | Items per page (1-12, default 6). |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/komoot/v1/collection?id=1001" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/komoot/v1/collection",
params={"id": "1001"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/komoot/v1/collection");
url.searchParams.set("id", "1001");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).
Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)
{"id": 1001,"name": "Experience cycling between coal and nature: the radrevier.ruhr","url": "https://www.komoot.com/collection/1001/experience-cycling-between-coal-and-nature-the-radrevier-ruhr","type": "collection_editorial","sport": "touringbicycle","tags": ["autumn","summer","… 1 more"],"multi_day": false,"intro": "The fact that you can discover many industrial monuments from the times of mining and steel production in the Ruhr area is not surprising an…","created_at": "2019-01-25T06:53:19.335Z","changed_at": "2023-03-13T09:51:24.013Z","creator": {"username": "radrevierruhr","name": "radrevier.ruhr","url": "https://www.komoot.com/user/radrevierruhr","avatar": "https://d2exd72xrrp1s7.cloudfront.net/www/1o/1owtk5wdy7fq88lgw32c73fbb2uf3tkit-uradrevierruhr-full/1687f22bc54?width=200&height=200&crop=fal…","premium": true,"status": "public"},"page": 1,"limit": 6,"total": 11,"count": 6,"next_page": 2,"items": [{"item_type": "tour","id": "55205174","name": "Auenland: experience the Rhine – radrevier.ruhr","url": "https://www.komoot.com/tour/55205174","kind": "tour_planned","sport": "touringbicycle","status": "public","difficulty": "moderate","distance_m": 59743,"distance_km": 59.74,"distance_mi": 37.12,"duration_s": 14356,"duration_min": 239,"elevation_up_m": 149,"elevation_down_m": 149,"elevation_up_ft": 489,"start": {"latitude": 51.655947,"longitude": 6.626085,"altitude_m": 27.9},"rating": null,"ratings": null,"visitors": null,"roundtrip": null,"surfaces": [{"type": "unknown","share": 0.0223},{"type": "paved","share": 0.1024},"… 4 more"],"way_types": [{"type": "ferry","share": 0.0063},{"type": "trail","share": 0.0149},"… 5 more"],"highlights_on_route": [202583,149608,"… 3 more"],"map_image": "https://tourpic-vector.maps.komoot.net/r/big/%7D%7Bo%5Eil%60Ct@FOjC%7CCjD%5C%7CHpAeApD~BpFbGVx@e@EMfBzBpDlF%7CEjBQdOuVjF%7C@xEqGuCUc@iG_BeBv…","created_at": "2019-01-24T09:17:52.000Z","changed_at": "2024-05-31T08:37:55.857Z","creator": {"username": "radrevierruhr","name": "radrevier.ruhr","url": "https://www.komoot.com/user/radrevierruhr","avatar": "https://d2exd72xrrp1s7.cloudfront.net/www/1o/1owtk5wdy7fq88lgw32c73fbb2uf3tkit-uradrevierruhr-full/1687f22bc54?width=200&height=200&crop=fal…","premium": true,"status": "public"},"translated_from": "Auenland: Den Rhein erfahren – radrevier.ruhr"},{"item_type": "tour","id": "55205228","name": "Steel kitchen: experience the change – radrevier.ruhr","url": "https://www.komoot.com/tour/55205228","kind": "tour_planned","sport": "touringbicycle","status": "public","difficulty": "moderate","distance_m": 48069,"distance_km": 48.07,"distance_mi": 29.87,"duration_s": 11087,"duration_min": 185,"elevation_up_m": 184,"elevation_down_m": 183,"elevation_up_ft": 605,"start": {"latitude": 51.493206,"longitude": 6.869269,"altitude_m": 51.7},"rating": null,"ratings": null,"visitors": null,"roundtrip": null,"surfaces": [{"type": "unpaved","share": 0.0612},{"type": "compacted","share": 0.4397},"… 4 more"],"way_types": [{"type": "trail","share": 0.0073},{"type": "way","share": 0.0932},"… 3 more"],"highlights_on_route": [],"map_image": "https://tourpic-vector.maps.komoot.net/r/big/gvl%5EideCHYO%7B@c@@DdEn@rDSf@d@%60BCdAMd@%7B@eAsApAXrEfDvQtHrOR_@xBGr@o@r@DNyDYYR_D%5EA%5Cv@VY…","created_at": "2019-01-24T09:19:25.000Z","changed_at": "2024-05-31T08:37:55.931Z","creator": {"username": "radrevierruhr","name": "radrevier.ruhr","url": "https://www.komoot.com/user/radrevierruhr","avatar": "https://d2exd72xrrp1s7.cloudfront.net/www/1o/1owtk5wdy7fq88lgw32c73fbb2uf3tkit-uradrevierruhr-full/1687f22bc54?width=200&height=200&crop=fal…","premium": true,"status": "public"},"translated_from": "Stahlküche: Den Wandel erfahren – radrevier.ruhr"},"… 4 more"],"cached": false,"credits_used": 1}