Routing APIs
| API | Pricing | Auth | Format | Free tier | Status |
|---|---|---|---|---|---|
Distancematrix.aiTravel time and distance between many origins and destinations at once, with live traffic and transit modes. Location & Mapping › Routing | Freemium | API key | JSON | <100/day | Live |
GraphHopper Directions APITurn-by-turn routing and route optimization for driving, cycling and walking, worldwide. Location & Mapping › Routing | Freemium | API key | JSON | 100–1k/day | Live |
Mapy.com REST APIMap tiles, geocoding, car/bike/foot routing and route matrices from Czech mapping service Mapy.com. Location & Mapping › Routing | Freemium | API key | JSON | — | Live |
openrouteserviceOpenStreetMap directions, isochrones, matrices, geocoding and elevation, run by a university institute. Location & Mapping › Routing | Freemium | API key | JSON | — | Live |
OSRMRoad, bike and foot routing on OpenStreetMap: routes, distance matrices, GPS map matching, trip optimisation. Location & Mapping › Routing | Free | None | JSON | 10k+/day | Live |
Stadia MapsTurn-by-turn routing, time/distance matrices, isochrones, map tiles, geocoding and time zone lookups. Location & Mapping › Routing | Freemium | API key | JSON | — | Live |
Choosing a Routing API
Is there a free Routing API?
Yes. OSRM is free to use, and GraphHopper Directions API, openrouteservice, Distancematrix.ai, Mapy.com REST API and Stadia Maps have a free tier alongside paid plans.
Which Routing APIs work without an API key?
OSRM needs no key or sign-up, so you can try it with a plain request.
Can I call a Routing API from front-end JavaScript?
OSRM allows cross-origin requests and needs no key, so it works straight from the browser. For the others, call them from your server so your key stays private.
Can I use Routing APIs in a commercial project?
Distancematrix.ai and Mapy.com REST API permit commercial use. OSRM, GraphHopper Directions API and Stadia Maps restrict it, for example to non-commercial or attributed use, so read the terms first.
Which Routing APIs work with AI agents?
GraphHopper Directions API and Mapy.com REST API publish an OpenAPI spec for generating clients and tools.
More specific: Distance Matrix APIs
More in Location & Mapping: Geocoding APIs · Address & Postal Code APIs · Maps APIs · IP Geolocation APIs · Places APIs · Countries APIs
Related: Transit APIs