# Komoot route search API

Search Komoot routes by coordinates and source filters via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as lat, limit, lng, and retrieve structured data including source route identifier, source duration in minutes, and source difficulty label to route discovery, and route comparison.

Documentation: https://openany.si/komoot/komoot-route-search-api/7fe77fc6-d2ab-4052-bafe-110a74d0c271/
API ID: 7fe77fc6-d2ab-4052-bafe-110a74d0c271
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/komoot/v1/tours
Page update time: 2026-12-03T02:47:29.600Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:47:27.489Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## Komoot Route Search API

Use the exposed lat/lng inputs and supported region\_id or highlight\_id context. Length filters are kilometres, duration filters minutes and uphill filters metres; surface values express source preferences.

## What You Can Build

- **Route discovery**: Preserve sport, radius and metric filter units.
- **Route comparison**: Keep source preferences and difficulty context explicit.

## Returned Data

| Field | Meaning |
| --- | --- |
| `tours[].id` | Source route identifier |
| `tours[].distance_km` | Source route distance in kilometres |
| `tours[].duration_min` | Source duration in minutes |
| `tours[].elevation_up_m` | Source cumulative ascent in metres |
| `tours[].difficulty` | Source difficulty label |
| `next_page` | Next source route page when present |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Komoot route search API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "lat": {
          "type": "number",
          "description": "Latitude of the centre point (with `lng`). Not needed with `region_id` or `highlight_id`."
        },
        "lng": {
          "type": "number",
          "description": "Longitude of the centre point."
        },
        "region_id": {
          "type": "integer",
          "description": "A region id (from `/komoot/v1/search` results of type `for_region`, or a guide): routes in that region."
        },
        "highlight_id": {
          "type": "integer",
          "description": "A highlight id: routes that pass that highlight."
        },
        "sport": {
          "type": "string",
          "description": "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": {
          "type": "number",
          "description": "Search radius around the point in km (1-100, default 10)."
        },
        "min_length_km": {
          "type": "number",
          "description": "Shortest route in km."
        },
        "max_length_km": {
          "type": "number",
          "description": "Longest route in km."
        },
        "min_duration_min": {
          "type": "number",
          "description": "Shortest duration in minutes."
        },
        "max_duration_min": {
          "type": "number",
          "description": "Longest duration in minutes."
        },
        "min_uphill_m": {
          "type": "number",
          "description": "Least elevation gain in metres."
        },
        "max_uphill_m": {
          "type": "number",
          "description": "Most elevation gain in metres."
        },
        "difficulty": {
          "type": "string",
          "description": "easy, moderate, difficult; comma separated for several."
        },
        "route_type": {
          "type": "string",
          "description": "loop or out_and_back."
        },
        "surface": {
          "type": "string",
          "description": "prefer_paved or prefer_unpaved."
        },
        "start_place": {
          "type": "string",
          "description": "train_station, bus_stop or car_park."
        },
        "attributes": {
          "type": "string",
          "description": "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": {
          "type": "integer",
          "description": "Page number, from 1."
        },
        "limit": {
          "type": "integer",
          "description": "Routes per page (1-24, default 12)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "lat",
        "lng"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "applied_filters": {
      "type": "object",
      "properties": {
        "sport": {
          "type": "string"
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "latitude": {
      "type": "number"
    },
    "limit": {
      "type": "integer"
    },
    "longitude": {
      "type": "number"
    },
    "next_page": {
      "type": "integer"
    },
    "page": {
      "type": "integer"
    },
    "radius_km": {
      "type": "integer"
    },
    "total": {
      "type": "integer"
    },
    "tours": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "changed_at": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "creator": {
            "type": "object",
            "properties": {
              "avatar": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "premium": {
                "type": "boolean"
              },
              "status": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "username": {
                "type": "string"
              }
            }
          },
          "difficulty": {
            "type": "string"
          },
          "distance_km": {
            "type": "number"
          },
          "distance_m": {
            "type": "integer"
          },
          "distance_mi": {
            "type": "number"
          },
          "duration_min": {
            "type": "integer"
          },
          "duration_s": {
            "type": "integer"
          },
          "elevation_down_m": {
            "type": "integer"
          },
          "elevation_up_ft": {
            "type": "integer"
          },
          "elevation_up_m": {
            "type": "integer"
          },
          "highlights_on_route": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "map_image": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "rating": {
            "type": "number"
          },
          "ratings": {
            "type": "integer"
          },
          "roundtrip": {
            "type": "null"
          },
          "sport": {
            "type": "string"
          },
          "start": {
            "type": "object",
            "properties": {
              "altitude_m": {
                "type": "number"
              },
              "latitude": {
                "type": "number"
              },
              "longitude": {
                "type": "number"
              }
            }
          },
          "status": {
            "type": "string"
          },
          "surfaces": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "share": {
                  "type": "number"
                },
                "type": {
                  "type": "string"
                }
              }
            }
          },
          "translated_from": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "visitors": {
            "type": "integer"
          },
          "way_types": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "share": {
                  "type": "number"
                },
                "type": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/komoot/v1/tours?lat=47.2692&limit=1&lng=11.4041&output=json&raw=0&sport=hike' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "applied_filters": {
    "sport": "hike"
  },
  "cached": false,
  "count": 1,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:28:42.194Z",
  "latitude": 47.2692,
  "limit": 1,
  "longitude": 11.4041,
  "next_page": 2,
  "page": 1,
  "radius_km": 10,
  "total": 1001,
  "tours": [
    {
      "changed_at": "2025-01-07T08:41:46.782Z",
      "created_at": "2025-01-03T09:00:35.365Z",
      "creator": {
        "avatar": "https://d2exd72xrrp1s7.cloudfront.net/www/2y/2ybguf62finf10zpa1jz1g3ia6ae4x7f153727-full/19985179009?width=200&height=200&crop=false",
        "name": "komoot",
        "premium": true,
        "status": "public",
        "url": "https://www.komoot.com/user/komoot",
        "username": "komoot"
      },
      "difficulty": "moderate",
      "distance_km": 11.18,
      "distance_m": 11180,
      "distance_mi": 6.95,
      "duration_min": 278,
      "duration_s": 16709,
      "elevation_down_m": 544,
      "elevation_up_ft": 1785,
      "elevation_up_m": 544,
      "highlights_on_route": [
        193621,
        70747,
        114909
      ],
      "id": "e2003874065",
      "kind": "editorial_tour",
      "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@b@PGQBAOIMYU%7D@CBBMHBCKDAEMDCc@m@g@IKQAOUE@%5BEUDTAZTD@NJPf@Hb@l@EBDLE@BJICCLBCT%7C@LXNHC@FPc@QRh@EJf@fABZx@G%5CDDBHX%3FCBCFPALBLNHG%5EBRJFAHFLBRGXD%3F@RFJ%3Fb@DPAFNj@If@HX/?width={width}&height={height}&crop={crop}",
      "name": "Goetheweg - Karwendel Nature Park",
      "rating": 4.82,
      "ratings": 197,
      "roundtrip": null,
      "sport": "hike",
      "start": {
        "altitude_m": 2232.5,
        "latitude": 47.31192,
        "longitude": 11.383631
      },
      "status": "public",
      "surfaces": [
        {
          "share": 0.0066,
          "type": "alpin"
        },
        {
          "share": 0.007,
          "type": "gravel"
        },
        {
          "share": 0.0072,
          "type": "paved"
        },
        {
          "share": 0.0798,
          "type": "unpaved"
        },
        {
          "share": 0.8995,
          "type": "nature"
        }
      ],
      "translated_from": "Goetheweg – Naturpark Karwendel",
      "url": "https://www.komoot.com/smarttour/e2003874065",
      "visitors": 1290,
      "way_types": [
        {
          "share": 0.007,
          "type": "way"
        },
        {
          "share": 0.0072,
          "type": "hiking_path"
        },
        {
          "share": 0.9859,
          "type": "mountain_hiking_path"
        }
      ]
    }
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which radius and result limits apply?
radius_km accepts 1–100 and defaults to 10; limit accepts 1–24 and defaults to 12.

### How should region and highlight references be obtained?
Use the guide’s region.id or a source for_region reference for region_id, and the highlight’s own ID for highlight_id.

### Which difficulty and surface values are supported?
difficulty accepts easy, moderate or difficult, comma-separated. surface supports prefer_paved or prefer_unpaved; keep preference scope rather than claiming every section has that surface.

### Can I sort by an arbitrary text query?
No keyword or sort input is exposed here. Use supported source filters and follow next_page as page.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/komoot/komoot-route-search-api/7fe77fc6-d2ab-4052-bafe-110a74d0c271/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
