Komoot route search
Routes on Komoot around a point, in a region or through a highlight, with every filter of the discover page: sport, search radius, length, duration, elevation gain, difficulty, route type (loop or out and back), preferred surface, start place (train station, bus stop, car park) and scenery/stop attributes (waterfalls, lakes and rivers, summits, forests, coastline, cafes, mountain huts...). Each route: id, name, url, kind (smart tour, editorial tour or public tour), sport, difficulty, distance_km/_mi/_m, duration_min, elevation_up_m, elevation_down_m, start, rating, ratings, visitors, surfaces, way_types (shares of the route), highlights_on_route (highlight ids), map_image, creator and raw. Also total and applied_filters. 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 |
|---|---|---|
latrequired | number | Latitude of the centre point (with lng). Not needed with region_id or highlight_id. Example: 47.2692 |
lngrequired | number | Longitude of the centre point. Example: 11.4041 |
region_id | integer | A region id (from /komoot/v1/search results of type for_region, or a guide): routes in that region. |
highlight_id | integer | A highlight id: routes that pass that highlight. |
sport | string | hike (default), mountaineering, jogging, touringbicycle, e_touringbicycle, mtb, e_mtb, mtb_easy, mtb_advanced, racebike, e_racebike, and the site's other sports. |
radius_km | number | Search radius around the point in km (1-100, default 10). |
min_length_km | number | Shortest route in km. |
max_length_km | number | Longest route in km. |
min_duration_min | number | Shortest duration in minutes. |
max_duration_min | number | Longest duration in minutes. |
min_uphill_m | number | Least elevation gain in metres. |
max_uphill_m | number | Most elevation gain in metres. |
difficulty | string | easy, moderate, difficult; comma separated for several. |
route_type | string | loop or out_and_back. |
surface | string | prefer_paved or prefer_unpaved. |
start_place | string | train_station, bus_stop or car_park. |
attributes | string | Comma separated: waterfalls, lakes_rivers, mountain_summits, forests, coastline, parks, volcanoes, caves, canyons_gorges, cafe, pub, restaurant, mountain_hut, facilities, cultural_historical, climbs, ridges, mountain_passes, bike_parks, avoid_main_roads. |
page | integer | Page number, from 1. |
limit | integer | Routes per page (1-24, default 12). |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/komoot/v1/tours?lat=47.2692&lng=11.4041&sport=hike" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/komoot/v1/tours",
params={"lat": "47.2692", "lng": "11.4041", "sport": "hike"},
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/tours");
url.searchParams.set("lat", "47.2692");
url.searchParams.set("lng", "11.4041");
url.searchParams.set("sport", "hike");
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)
{"latitude": 47.2692,"longitude": 11.4041,"radius_km": 10,"applied_filters": {"sport": "hike"},"page": 1,"limit": 12,"total": 1008,"count": 12,"next_page": 2,"tours": [{"id": "e2003874065","name": "Goetheweg - Karwendel Nature Park","url": "https://www.komoot.com/smarttour/e2003874065","kind": "editorial_tour","sport": "hike","status": "public","difficulty": "moderate","distance_m": 11180,"distance_km": 11.18,"distance_mi": 6.95,"duration_s": 16709,"duration_min": 278,"elevation_up_m": 544,"elevation_down_m": 544,"elevation_up_ft": 1785,"start": {"latitude": 47.31192,"longitude": 11.383631,"altitude_m": 2232.5},"rating": 4.82,"ratings": 196,"visitors": 1286,"roundtrip": null,"surfaces": [{"type": "alpin","share": 0.0066},{"type": "gravel","share": 0.007},"… 3 more"],"way_types": [{"type": "way","share": 0.007},{"type": "hiking_path","share": 0.0072},"… 1 more"],"highlights_on_route": [193621,70747,"… 1 more"],"map_image": "https://tourpic-vector.maps.komoot.net/r/big/%7D%60%7B%5Bwi%7DEIYHg@Ok@@GEQ%3Fc@GKASE%3FFYCSGM@IKGCSF_@OICM@MGQCB%3FBIYEC%5DEy@FC%5Bg@gADKSi…","created_at": "2025-01-03T09:00:35.365Z","changed_at": "2025-01-07T08:41:46.782Z","creator": {"username": "komoot","name": "komoot","url": "https://www.komoot.com/user/komoot","avatar": "https://d2exd72xrrp1s7.cloudfront.net/www/2y/2ybguf62finf10zpa1jz1g3ia6ae4x7f153727-full/19985179009?width=200&height=200&crop=false","premium": true,"status": "public"},"translated_from": "Goetheweg – Naturpark Karwendel"},{"id": "e2294530562","name": "The Zirbenweg – pleasure hike on the Patscherkofel","url": "https://www.komoot.com/smarttour/e2294530562","kind": "editorial_tour","sport": "hike","status": "public","difficulty": "moderate","distance_m": 7250,"distance_km": 7.25,"distance_mi": 4.5,"duration_s": 9322,"duration_min": 155,"elevation_up_m": 216,"elevation_down_m": 142,"elevation_up_ft": 710,"start": {"latitude": 47.210433,"longitude": 11.4525,"altitude_m": 1958.7},"rating": 4.87,"ratings": 342,"visitors": 2100,"roundtrip": null,"surfaces": [{"type": "gravel","share": 0.0189},{"type": "unpaved","share": 0.0531},"… 1 more"],"way_types": [{"type": "way","share": 0.0189},{"type": "hiking_path","share": 0.0531},"… 1 more"],"highlights_on_route": [369398,2448765,"… 1 more"],"map_image": "https://tourpic-vector.maps.komoot.net/r/big/oay%5Byt~E%5BOI_DMYRq@%3FoBIe@N%3F@MCs@ScAI_CESGFOUE_@k@a@G%7D@a@aAHe@Kq@w@s@B_@IU@oBMu@t@wBG%7…","created_at": "2025-06-03T10:01:03.650Z","changed_at": "2025-07-22T09:23:32.058Z","creator": {"username": "regionhallwattens","name": "Region Hall-Wattens","url": "https://www.komoot.com/user/regionhallwattens","avatar": "https://d2exd72xrrp1s7.cloudfront.net/www/1x/1xfxgp8dzia4l2owww0cpch7k2izi9kvb-uregionhallwattens-full/19cceb92921/p?width=200&height=200&cr…","premium": true,"status": "public"},"translated_from": "Der Zirbenweg – Genusswanderung am Patscherkofel"},"… 10 more"],"cached": false,"credits_used": 1}