Autocomplete API
Fast, typo-tolerant place suggestions as the user types, with optional location bias.
/api/1/autocompleteCurrent plan limits
Free includes Routing, Route Optimization, Geocoding (including reverse lookup and autocomplete) and Matrix APIs within plan limits. Map Matching, Isochrone, Truck Routing, Fuel Estimate and other separate APIs require a paid plan, including PAYG. API access follows the account’s effective plan; a positive balance alone does not override Free restrictions. Road Data and AI retain their separate Business requirements.
Credit and requests-per-minute limits are shared across all account keys. An additional key credit cap cannot enlarge the account budget. Included credits are used first, then purchased credits.
Current plans and pricingOverview
The Autocomplete API returns fast, typo-tolerant place suggestions as the user types. Each suggestion includes a ready-to-display label, its category and coordinates, so you can power a search box in a few lines. Bias results toward the user with lat/lon, restrict them with a bounding box, or filter by place type.
API reference
/api/1/autocomplete| Parameter | Type | Status |
|---|---|---|
| q | string | Required |
| limit | integer | Optional |
| lang | string | Optional |
| lat | number | Optional |
| lon | number | Optional |
| country | string | Optional |
| city | string | Optional |
| osm_tag | string | Optional |
Example request
Credit cost: 1 creditcurl "https://osrmroute.com/api/1/autocomplete?q=niz&lang=az&lat=40.40&lon=49.86" -H "Authorization: Bearer YOUR_KEY"