Komoot place search

GET https://api.api.sh/komoot/v1/search
1 credit / call travel & events try it in the playground →

Places and regions on Komoot (komoot.com) matching a name, to use with the route and highlight searches. Each result: name, type, search_type (for_region results carry a region_id for /komoot/v1/tours and /komoot/v1/highlights; within_radius results carry a point and radius), region_id, osm_id, latitude, longitude, radius_km, importance, city, county, state, country, bounds and raw. 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

nametypedescription
qrequired string Place or region name, e.g. dolomites, lake district. Example: dolomites
page integer Page number, from 1.
limit integer Results per page (1-50, default 10).

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/komoot/v1/search?q=dolomites" \
  -H "x-api-key: $APISH_KEY"

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)

{"query": "dolomites","page": 1,"limit": 10,"count": 10,"next_page": 2,"results": [{"name": "Dolomites","type": "location","search_type": "for_region","region_id": 474,"osm_id": "r2139488","latitude": 46.294572,"longitude": 12.0513238,"radius_km": 73,"importance": 0.6934,"city": null,"county": null,"state": "Veneto","country": "Italy","bounds": {"north": 46.8160366,"east": 12.5475598,"south": 45.7731226,"west": 11.3887057}},{"name": "Sexten Dolomites","type": "location","search_type": "within_radius","region_id": null,"osm_id": "r2141204","latitude": 46.6199743,"longitude": 12.3459997,"radius_km": 17,"importance": 0.4929,"city": null,"county": "Belluno","state": "Veneto","country": "Italy","bounds": {"north": 46.7342297,"east": 12.5475598,"south": 46.5058352,"west": 12.216606}},"… 8 more"],"cached": false,"credits_used": 1}
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.