oebb.transport.rest

Austrian public transport REST API

Build train and mobility apps on top of reliable OEBB data.

oebb.transport.rest exposes HAFAS capabilities in a stable HTTP interface, so you can power journey planners, departure boards, and station intelligence with real-time transport data.

At a glance

Coverage

Journeys, stops, trips, radar

Base path

/api

Format

JSON over HTTP

Live departures

Show station boards with delays, directions, and platform context.

Journey planning

Plan and refresh connections between stations and cities.

Radar and nearby

Build map experiences with live vehicle positions and nearby stop search.

Popular Endpoints

Use these routes as building blocks for station finders, departure boards, journey planning, and map views.

Nearby Locations

Find stops, addresses, and points of interest near a coordinate.

/locations/nearby

Location Search

Search stops and places by text input such as city or station name.

/locations

Stop Information

Load details about a station or stop with identifier-based lookup.

/stops/:id

Departures & Arrivals

Read upcoming departures and arrivals, including delay and direction.

/stops/:id/departures

Journeys

Plan routes between two places with transfer and timing details.

/journeys

Reachable From

Find stops reachable from one origin under time and transfer limits.

/stops/reachable-from

Trip Details

Fetch trip stopovers and route shape for a specific service.

/trips/:id

Live Radar

Track moving vehicles in a bounding box area.

/radar

Refresh Journey

Refresh a stored journey reference and get current status updates.

/journeys/:ref

Quick Start

Try these endpoints locally on port 3000.

Example requests Base URL: http://localhost:3000/api
curl "http://localhost:3000/api/journeys?from=Wien%20Hbf&to=Salzburg%20Hbf&results=3"

curl "http://localhost:3000/api/stops/8103000/departures?duration=120"

curl "http://localhost:3000/api/locations?query=Graz"
Request: Departures
curl "http://localhost:3000/api/stops/8103000/departures?results=2"
Response: Departures
{
    "departures": [
        {
            "when": "2026-05-11T09:42:00+02:00",
            "delay": 120,
            "platform": "7",
            "direction": "Salzburg Hbf",
            "line": { "name": "RJX 168" }
        }
    ]
}
Request: Journey Planning
curl "http://localhost:3000/api/journeys?from=Wien%20Hbf&to=Graz%20Hbf&results=1"
Response: Journey Planning
{
    "journeys": [
        {
            "type": "journey",
            "legs": [{ "origin": { "name": "Wien Hbf" }, "destination": { "name": "Graz Hbf" } }],
            "price": null
        }
    ]
}