OSRM Routing API
Calculate routes, distances and estimated travel times on the road network. Explore available transport profiles, route geometry and integration examples.
Get your API key/api/v1/osrm/route/v1/{profile}/{coordinates}Current 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
Calculate driving, walking or cycling routes worldwide, with geometry, distance, estimated duration and optional instructions. Mapped paths, access restrictions and connectivity determine each result. Test representative journeys for your application.
The Routing API can calculate a cross-border car route in one request when its stops are connected on a supported road network. Truck Routing API →
API reference
/api/v1/osrm/route/v1/{profile}/{coordinates}| Parameter | Type | Status |
|---|---|---|
| profile | string | Required |
| coordinates | string | Required |
| overview | string | Optional |
| geometries | string | Optional |
| steps | boolean | Optional |
| alternatives | integer | boolean | Optional |
Example request
Credit cost: 1 credit per started block of 10 input points, including origin and destination.curl "https://osrmroute.com/api/v1/osrm/route/v1/driving/49.8516,40.3777;49.86,40.40?steps=true&overview=full&geometries=geojson" -H "Authorization: Bearer YOUR_KEY"