# Komoot route API

Get Komoot route details by ID or tour link via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as id, output, raw, and retrieve structured data including source route identifier, source route-kind label, and source surface share value to route detail, and map preparation.

Documentation: https://openany.si/market/apis/komoot/komoot-route-api/?offering=31627c0d-cb7d-4b6a-95a6-3fae0b74565f
API ID: 31627c0d-cb7d-4b6a-95a6-3fae0b74565f
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/komoot/v1/tour
Page update time: 2026-12-03T02:47:29.590Z
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. Price update time: not supplied.
Contract update time: 2026-12-03T02:47:27.424Z. 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": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Komoot route 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": {
        "id": {
          "type": "string",
          "description": "A route id (`e2116180501`, `21197`) or a komoot.com/smarttour/... or /tour/... link."
        },
        "coordinates": {
          "type": "boolean",
          "description": "true: also return the route's line (adds a few KB to tens of KB)."
        },
        "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": [
        "id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "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"
        }
      }
    },
    "credits_used": {
      "type": "integer"
    },
    "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"
    },
    "fetched_at": {
      "type": "string"
    },
    "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": "integer"
        },
        "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/tour?id=e2116180501&output=json&raw=0' \
  -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
{
  "cached": false,
  "changed_at": "2025-04-29T11:03:07.903Z",
  "created_at": "2025-03-27T18:33:59.939Z",
  "creator": {
    "avatar": "https://d2exd72xrrp1s7.cloudfront.net/www/ov/ov81vyhqvur98cuteowykaix4dmyihiy-uweserbergland-full/1847b7c44e0?width=200&height=200&crop=false",
    "name": "Weserbergland",
    "premium": true,
    "status": "public",
    "url": "https://www.komoot.com/user/weserbergland",
    "username": "weserbergland"
  },
  "credits_used": 1,
  "difficulty": "moderate",
  "distance_km": 9.45,
  "distance_m": 9447,
  "distance_mi": 5.87,
  "duration_min": 165,
  "duration_s": 9918,
  "elevation_down_m": 231,
  "elevation_up_ft": 758,
  "elevation_up_m": 231,
  "fetched_at": "2026-11-19T12:28:39.651Z",
  "highlights_on_route": [
    939686,
    407997,
    89479,
    3315476,
    935878,
    354288
  ],
  "id": "e2116180501",
  "kind": "editorial_tour",
  "map_image": "https://tourpic-vector.maps.komoot.net/r/big/qso%5E%7BqwDa@i@Un@Ad@GRDFANM%60As@dBCB%3FEEEEFAGEFGACNEECDFNEJFN%3F%5ELDME%3F_@CMGEQg@C%3FMi@S%5BkAfAUFARIECFaAHMmAU%5DDk@LUf@G%3FSHO%5CGRR@EWg@My@D_CDOb@%5EZJXh@@d@HDXCJMp@Wn@Z@LEPBFNYD%5BV%5EHXVk@%60@h@/?width={width}&height={height}&crop={crop}",
  "name": "Sollingweg: Weser Skywalk",
  "rating": 4.59,
  "ratings": 152,
  "roundtrip": null,
  "sport": "hike",
  "start": {
    "altitude_m": 102,
    "latitude": 51.64247,
    "longitude": 9.450975
  },
  "status": "public",
  "surfaces": [
    {
      "share": 0.0545,
      "type": "unpaved"
    },
    {
      "share": 0.1088,
      "type": "paved"
    },
    {
      "share": 0.1268,
      "type": "asphalt"
    },
    {
      "share": 0.1788,
      "type": "gravel"
    },
    {
      "share": 0.5311,
      "type": "nature"
    }
  ],
  "translated_from": "Sollingweg: Weser-Skywalk",
  "url": "https://www.komoot.com/smarttour/e2116180501",
  "visitors": 464,
  "way_types": [
    {
      "share": 0.0233,
      "type": "street"
    },
    {
      "share": 0.0932,
      "type": "footway"
    },
    {
      "share": 0.1074,
      "type": "minor_road"
    },
    {
      "share": 0.2019,
      "type": "way"
    },
    {
      "share": 0.5743,
      "type": "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.

## Available implementations
- apish: https://openany.si/market/apis/komoot/komoot-route-api/?offering=31627c0d-cb7d-4b6a-95a6-3fae0b74565f

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