Skip to content

OSRM demo server API

Driving routes, distances and durations between coordinates.
Status
Working
API key
Not needed
Browser calls
Runs in the browser
Latency
646 ms

Build snapshot, not live. One verifier run on , from the machine that built this site. How we check

Example request

GEThttps://router.project-osrm.org/route/v1/driving/13.388860,52.517037;13.397634,52.529407?overview=false

Sent from your browser straight to router.project-osrm.org. No proxy: this site never sees the request or the answer.

Copy the request

Shell
curl -s 'https://router.project-osrm.org/route/v1/driving/13.388860,52.517037;13.397634,52.529407?overview=false'

Response stored by the verifier

This is what router.project-osrm.org answered when the verifier sent the request above on : HTTP 200, application/json. Arrays are cut to two items and long strings are shortened. It comes from the build snapshot.

application/json · stored
{
  "code": "Ok",
  "routes": [
    {
      "legs": [
        {}
      ],
      "weight_name": "routability",
      "weight": 262.7,
      "duration": 260.4,
      "distance": 1888
    }
  ],
  "waypoints": [
    {
      "hint": "TwEKgH9bn4ULAAAAAwAAAAAAAAAPAAAAuFtKQYXNK0AAAAAAIMuBQQsAAAADAAAAAAAAAA8AAADQJwEAFEzMAKpYIQM8TMwArVghAwAA3woAAAAA",
      "location": [
        13.38882,
        52.517034
      ],
      "name": "Friedrichstraße",
      "distance": 2.73531597
    },
    {
      "hint": "Y1nfgT6RkYcGAAAACQAAAAAAAABeAAAAz-ONQIv-tkAAAAAAeYZHQgYAAAAJAAAAAAAAAF4AAADQJwEAfm7MABmJIQOCbswA_4ghAwAATwUAAAAA",
      "location": [
        13.39763,
        52.529433
      ],
      "name": "Torstraße",
      "distance": 2.905919634
    }
  ]
}

Availability

Up 1 of 1 day checked · 30-day window

What counts as up for this API: an answer within five seconds, a 2xx status, and the JSON body must contain the field "routes".

Last check: — passed, HTTP 200 in 646 ms.

The check runs from our infrastructure, not from where you are. If you need certainty, send the request yourself above. How the verifier works.

Used in these collections

Questions

Does the OSRM demo server API need an API key?

No. The sample request on this page was answered without a key, token or account. Note: A demo server with no uptime promise; host your own OSRM for production.

Can I call the OSRM demo server API from the browser?

Yes. router.project-osrm.org answered our verifier with an Access-Control-Allow-Origin header on Oct 3, 2026, so a fetch call from a web page can read the response.

Is the OSRM demo server API working?

At the check on Oct 3, 2026 it returned HTTP 200 with the expected data in 646 ms. The status at the top of this page shows the most recent result we have.

What is the OSRM demo server API good for?

Driving routes, distances and durations between coordinates. It is part of our collection "Free APIs for maps and places": Driving route, distance and duration between points.