- Request credits
- 2
- Required scopes
geocode + places
Usage and limits
English category + near/in + place; optional radius 100–5000 m. Six categories, up to ten candidates. No ratings, prices, open-now or live availability. Two credits, including an empty successful result.
Request example
Send your key in the Authorization: Bearer header. Coordinates use [longitude, latitude]. Set OSRMROUTE_API_KEY locally; for dataset queries, set DATASET_ID to an owned dataset UUID. Never expose a Studio key in browser code.
cURL
curl --fail-with-body -X POST "https://osrmroute.com/api/v1/search/natural" \
-H "Authorization: Bearer $OSRMROUTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"q":"cafes near Berlin within 2 km"}'