osrmroute
Products
Search

Suggest & Retrieve API

Build place search with suggestions and a secure retrieval step.

Illustrative example
/api/v1/search/suggest
Request credits
1 + 1
Required scopes
geocode

Current plan limits

Free includes Routing, Route Optimization, Geocoding and Matrix within plan limits, plus a limited Truck Routing trial. Map Matching, Isochrone, Fuel Estimate and other separate APIs require a paid plan. Road Data and AI have separate Business requirements.

Replace YOUR_KEY with your own API key. Paid API requests consume credits; copying this example does not send a request.

Current plans and pricing

Usage and limits

Each suggest and retrieve request costs one credit. Query: 1–200 characters. Retrieval tokens expire after 10 minutes and belong to the key owner. Retrieve returns the signed suggestion snapshot, not a fresh lookup.

Request example

Send your key in the Authorization: Bearer header. Coordinates use [longitude, latitude]. Set OSRM_API_KEY in your server environment; never expose a secret in browser code.

cURL
curl --fail-with-body -X POST "https://osrmroute.com/api/v1/search/suggest" \
  -H "Authorization: Bearer $OSRM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q":"Paris"}'
Response
suggestions[].id
suggestions[].name
suggestions[].address
suggestions[].token
expires_in_seconds: 600

retrieve → place, retrieval: signed_suggestion_snapshot

OSRMRoute Support

Talk directly to our team

HERE TO HELP

How can we help?

Send a message. Ticket replies are also sent to your verified email.

Your chats

Your chats will appear here.