Komoot route search API
Use the Komoot route search API to retrieve route descriptions, difficulty levels, geographic coordinates, calculated distance, surface and path types and creator information as structured JSON from Komoot. Supply coordinates in the query; optionally select region identifier, sport and radius in kilometres to set the requested scope. Use these results to compare route characteristics and organize trail reference material when planning an outdoor itinerary. Continue with the returned next_page as page; a null value marks the last page. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
- Selected price
- $0.002 / billing creditPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Komoot route search API
Prepare your request, then continue with your agent.
Pricing
$0.002 / billing credit
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
- Provider
- Pricing
On this page
Overview
Komoot route search API
Use the Komoot route search API to retrieve route descriptions, difficulty levels, geographic coordinates, calculated distance, surface and path types and creator information as structured JSON from Komoot. Supply coordinates in the query; optionally select region identifier, sport and radius in kilometres to set the requested scope. Use these results to compare route characteristics and organize trail reference material when planning an outdoor itinerary. Continue with the returned next_page as page; a null value marks the last page. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
Komoot route search API
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.
Inputs and results
Send the listed inputs as GET query parameters. Required inputs: lat, lng. Supported values, filters and optional identifiers are listed below.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
lat | number | Required | Latitude of the centre point (with `lng`). Not needed with `region_id` or `highlight_id`. |
lng | number | Required | Longitude of the centre point. |
region_id | integer | Optional | A region id (from `/komoot/v1/search` results of type `for_region`, or a guide): routes in that region. |
highlight_id | integer | Optional | A highlight id: routes that pass that highlight. |
sport | string | Optional | 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 | Optional | Search radius around the point in km (1-100, default 10). |
min_length_km | number | Optional | Shortest route in km. |
max_length_km | number | Optional | Longest route in km. |
min_duration_min | number | Optional | Shortest duration in minutes. |
max_duration_min | number | Optional | Longest duration in minutes. |
min_uphill_m | number | Optional | Least elevation gain in metres. |
max_uphill_m | number | Optional | Most elevation gain in metres. |
difficulty | string | Optional | easy, moderate, difficult; comma separated for several. |
route_type | string | Optional | loop or out_and_back. |
surface | string | Optional | prefer_paved or prefer_unpaved. |
start_place | string | Optional | train_station, bus_stop or car_park. |
attributes | string | Optional | 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 | Optional | Page number, from 1. |
limit | integer | Optional | Routes per page (1-24, default 12). |
raw | string | Optional | Use 0 to leave out the source raw blocks. This controls raw source payloads, not the normalized result records. Allowed values: 0, 1. |
fields | string | Optional | Optional comma-separated output fields; nested paths follow the source field-selection syntax. Call metadata is retained. |
fresh | string | Optional | Use 1 to bypass the source response cache. Cache hits are also billed according to reported credits. Allowed values: 1. |
output | string | Optional | Response format for this product: json. Omit this parameter to use JSON. Allowed values: json. |
records | string | Optional | Source export selector for CSV or NDJSON. It has no effect on this JSON-only product. |
Using OpenAny
Send this request to the OpenAny gateway with your OpenAny API key in the Authorization header. The query values below match the paired request example.
OpenAny request example
curl "https://api.openany.si/v1/agent-apis/apish/komoot/v1/tours?lat=47.2692&lng=11.4041&sport=hike&output=json&raw=0&limit=1" \
-H "Authorization: Bearer <OPENANY_API_KEY>"This command illustrates the OpenAny request format. The response example below retains its stated provenance; it is not evidence that this gateway request was executed.
Response example
Recorded source response for the exact request shown above. Filters, field selectors and page choices in that request define the returned scope.
{
"latitude": 47.2692,
"longitude": 11.4041,
"radius_km": 10,
"applied_filters": {
"sport": "hike"
},
"page": 1,
"limit": 1,
"total": 1001,
"count": 1,
"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": 197,
"visitors": 1290,
"roundtrip": null,
"surfaces": [
{
"type": "alpin",
"share": 0.0066
},
{
"type": "gravel",
"share": 0.007
},
{
"type": "paved",
"share": 0.0072
},
{
"type": "unpaved",
"share": 0.0798
},
{
"type": "nature",
"share": 0.8995
}
],
"way_types": [
{
"type": "way",
"share": 0.007
},
{
"type": "hiking_path",
"share": 0.0072
},
{
"type": "mountain_hiking_path",
"share": 0.9859
}
],
"highlights_on_route": [
193621,
70747,
114909
],
"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}",
"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"
}
],
"cached": false,
"fetched_at": "2026-11-19T12:28:42.194Z",
"credits_used": 1
}Usage and price
The price is USD 0.002 per actual credit reported in credits_used, with no fixed per-call fee. A response reporting zero credits has zero usage cost. Up to USD 0.002 is reserved for this request; the final price follows reported usage within the configured upper limit. A valid empty result or an unsuccessful lookup can still consume source credits. Cache hits also consume credits.
Coverage and limits
Coverage and update times follow the source. Use the documented field definitions when interpreting the selected result. Requests have a 120-second time budget and a 8 MiB response limit.
Use page according to the operation's parameter definitions. Each additional page requires a separate request.
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
applied_filtersobjectsportstring
cachedbooleancountintegercredits_usedintegerfetched_atstringlatitudenumberlimitintegerlongitudenumbernext_pageintegerpageintegerradius_kmintegertotalintegertoursobject[]changed_atstringcreated_atstringcreatorobjectavatarstringnamestringpremiumbooleanstatusstringurlstringusernamestring
difficultystringdistance_kmnumberdistance_mintegerdistance_minumberduration_minintegerduration_sintegerelevation_down_mintegerelevation_up_ftintegerelevation_up_mintegerhighlights_on_routeinteger[]idstringkindstringmap_imagestringnamestringratingnumberratingsintegerroundtripnullsportstringstartobjectaltitude_mnumberlatitudenumberlongitudenumber
statusstringsurfacesobject[]sharenumbertypestring
translated_fromstringurlstringvisitorsintegerway_typesobject[]sharenumbertypestring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
applied_filters?: {
sport?: string;
};
cached?: boolean;
count?: number;
credits_used?: number;
fetched_at?: string;
latitude?: number;
limit?: number;
longitude?: number;
next_page?: number;
page?: number;
radius_km?: number;
total?: number;
tours?: Array<{
changed_at?: string;
created_at?: string;
creator?: {
avatar?: string;
name?: string;
premium?: boolean;
status?: string;
url?: string;
username?: string;
};
difficulty?: string;
distance_km?: number;
distance_m?: number;
distance_mi?: number;
duration_min?: number;
duration_s?: number;
elevation_down_m?: number;
elevation_up_ft?: number;
elevation_up_m?: number;
highlights_on_route?: Array<number>;
id?: string;
kind?: string;
map_image?: string;
name?: string;
rating?: number;
ratings?: number;
roundtrip?: null;
sport?: string;
start?: {
altitude_m?: number;
latitude?: number;
longitude?: number;
};
status?: string;
surfaces?: Array<{
share?: number;
type?: string;
}>;
translated_from?: string;
url?: string;
visitors?: number;
way_types?: Array<{
share?: number;
type?: string;
}>;
}>;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
apishCurrent Komoot route search API · GET · View API reference | $0.002 / billing credit | — | —successP50— |
- Pricing
- $0.002
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 2. Price update time: not supplied.
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/apish/komoot/v1/tours- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
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'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
lat | URL query parametersquery | number | Yes | Latitude of the centre point (with `lng`). Not needed with `region_id` or `highlight_id`. |
lng | URL query parametersquery | number | Yes | Longitude of the centre point. |
region_id | URL query parametersquery | integer | No | A region id (from `/komoot/v1/search` results of type `for_region`, or a guide): routes in that region. |
highlight_id | URL query parametersquery | integer | No | A highlight id: routes that pass that highlight. |
sport | URL query parametersquery | string | No | 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 | URL query parametersquery | number | No | Search radius around the point in km (1-100, default 10). |
min_length_km | URL query parametersquery | number | No | Shortest route in km. |
max_length_km | URL query parametersquery | number | No | Longest route in km. |
min_duration_min | URL query parametersquery | number | No | Shortest duration in minutes. |
max_duration_min | URL query parametersquery | number | No | Longest duration in minutes. |
min_uphill_m | URL query parametersquery | number | No | Least elevation gain in metres. |
max_uphill_m | URL query parametersquery | number | No | Most elevation gain in metres. |
difficulty | URL query parametersquery | string | No | easy, moderate, difficult; comma separated for several. |
route_type | URL query parametersquery | string | No | loop or out_and_back. |
surface | URL query parametersquery | string | No | prefer_paved or prefer_unpaved. |
start_place | URL query parametersquery | string | No | train_station, bus_stop or car_park. |
attributes | URL query parametersquery | string | No | 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 | URL query parametersquery | integer | No | Page number, from 1. |
limit | URL query parametersquery | integer | No | Routes per page (1-24, default 12). |
raw | URL query parametersquery | string | No | 0 leaves out the bulky `raw` source blocks (often 10-30x smaller). enum: "0", "1" |
fields | URL query parametersquery | string | No | Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included. |
fresh | URL query parametersquery | string | No | 1 skips the 24-hour cache and fetches live. enum: "1" |
output | URL query parametersquery | string | No | JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported. enum: "json" |
records | URL query parametersquery | string | No | With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row. |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"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"
}
]
}
]
}Composite rule pricing
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.
| Fee item | Price | Metering source | When | Quantity limit |
|---|---|---|---|---|
| Actual API.SH credits consumed | $0.002000 / billing credit | Response · /credits_used · Numeric value | Always | 1 billing credit · Decimal places: 0 |
Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.
Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.
Pricing parameters and defaults
[]
Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Komoot route search API
Use the Komoot route search API to retrieve route descriptions, difficulty levels, geographic coordinates, calculated distance, surface and path types and creator information as structured JSON from Komoot. Supply coordinates in the query; optionally select region identifier, sport and radius in kilometres to set the requested scope. Use these results to compare route characteristics and organize trail reference material when planning an outdoor itinerary. Continue with the returned next_page as page; a null value marks the last page. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
## Available implementations
apish · Komoot route search API: https://openany.si/markets/apis/capabilities/komoot-route-search-api?offering=7fe77fc6-d2ab-4052-bafe-110a74d0c271 · $0.002 / billing credit
## Selected API contract
Documentation: https://openany.si/apis/7fe77fc6-d2ab-4052-bafe-110a74d0c271
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/komoot/v1/tours
Price: $0.002 / billing credit
Provider: apish
Contract revision: 2
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared 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'
```
## API contract
```json
{
"resource_type": "api",
"name": "Komoot route search API",
"endpoint": "https://api.openany.si/v1/agent-apis/apish/komoot/v1/tours",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Latitude of the centre point (with `lng`). Not needed with `region_id` or `highlight_id`.",
"location": "query",
"name": "lat",
"nullable": false,
"required": true,
"type": "number"
},
{
"description": "Longitude of the centre point.",
"location": "query",
"name": "lng",
"nullable": false,
"required": true,
"type": "number"
},
{
"description": "A region id (from `/komoot/v1/search` results of type `for_region`, or a guide): routes in that region.",
"location": "query",
"name": "region_id",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "A highlight id: routes that pass that highlight.",
"location": "query",
"name": "highlight_id",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "hike (default), mountaineering, jogging, touringbicycle, e_touringbicycle, mtb, e_mtb, mtb_easy, mtb_advanced, racebike, e_racebike, and the site's other sports.",
"location": "query",
"name": "sport",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Search radius around the point in km (1-100, default 10).",
"location": "query",
"name": "radius_km",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "Shortest route in km.",
"location": "query",
"name": "min_length_km",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "Longest route in km.",
"location": "query",
"name": "max_length_km",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "Shortest duration in minutes.",
"location": "query",
"name": "min_duration_min",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "Longest duration in minutes.",
"location": "query",
"name": "max_duration_min",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "Least elevation gain in metres.",
"location": "query",
"name": "min_uphill_m",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "Most elevation gain in metres.",
"location": "query",
"name": "max_uphill_m",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "easy, moderate, difficult; comma separated for several.",
"location": "query",
"name": "difficulty",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "loop or out_and_back.",
"location": "query",
"name": "route_type",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "prefer_paved or prefer_unpaved.",
"location": "query",
"name": "surface",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "train_station, bus_stop or car_park.",
"location": "query",
"name": "start_place",
"nullable": false,
"required": false,
"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.",
"location": "query",
"name": "attributes",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Page number, from 1.",
"location": "query",
"name": "page",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "Routes per page (1-24, default 12).",
"location": "query",
"name": "limit",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
"enum_values": [
"0",
"1"
],
"location": "query",
"name": "raw",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.",
"location": "query",
"name": "fields",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "1 skips the 24-hour cache and fetches live.",
"enum_values": [
"1"
],
"location": "query",
"name": "fresh",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
"enum_values": [
"json"
],
"location": "query",
"name": "output",
"nullable": false,
"required": false,
"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.",
"location": "query",
"name": "records",
"nullable": false,
"required": false,
"type": "string"
}
],
"billing": {
"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": []
}
},
"examples": [
{
"http_status": 200,
"name": "Official example · Live API.SH response · Minimal request",
"request": {
"body": null,
"headers": {},
"path": {},
"query": {
"lat": "47.2692",
"limit": "1",
"lng": "11.4041",
"output": "json",
"raw": "0",
"sport": "hike"
}
},
"response_body": {
"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
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example · Live API.SH response · Minimal request
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 24
Review these request fields before running. Keep the published provider and request method unchanged.
lat- Latitude of the centre point (with `lng`). Not needed with `region_id` or `highlight_id`.
lng- Longitude of the centre point.
region_id- A region id (from `/komoot/v1/search` results of type `for_region`, or a guide): routes in that region.
highlight_id- A highlight id: routes that pass that highlight.
sport- 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- Search radius around the point in km (1-100, default 10).
min_length_km- Shortest route in km.
max_length_km- Longest route in km.
min_duration_min- Shortest duration in minutes.
max_duration_min- Longest duration in minutes.
min_uphill_m- Least elevation gain in metres.
max_uphill_m- Most elevation gain in metres.
difficulty- easy, moderate, difficult; comma separated for several.
route_type- loop or out_and_back.
surface- prefer_paved or prefer_unpaved.
start_place- train_station, bus_stop or car_park.
attributes- 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- Page number, from 1.
limit- Routes per page (1-24, default 12).
raw- 0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
fields- Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
fresh- 1 skips the 24-hour cache and fetches live.
output- JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
records- With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.
Terminal · cURLcurl \ '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'Check the response
Sample response · Documented HTTP 200
Sample response{ "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" } ] } ] }