Plan public transit trips in Norway using the Entur API. Covers all operators (Vy, Ruter, Kolumbus, etc.), all modes (bus, rail, tram, metro, ferry, coach). Use when: (1) planning a journey between places in Norway, (2) checking departure boards/next departures, (3) finding stop IDs or place names, (4) looking up real-time transit info. Triggers on questions about trains, buses, ferries, trams in Norway, getting to airports (Gardermoen, Torp, Flesland), or how do I get to X.
Plan public transit journeys across Norway via the Entur Journey Planner API. Covers every operator and mode — bus, rail, tram, metro, ferry, coach, air — with real-time data.
No API key required. Free, open API under NLOD licence.
scripts/entur.py — standalone Python 3 CLI, no dependencies beyond stdlib.
# Search for stops/places
python3 scripts/entur.py search "Oslo S"
# Plan a trip (place names auto-resolve via geocoder)
python3 scripts/entur.py trip "Porsgrunn" "Oslo lufthavn"
# Plan with specific departure time
python3 scripts/entur.py trip "Bergen" "Stavanger" --time "2025-03-01T08:00:00"
# Arrive by a specific time
python3 scripts/entur.py trip "Drammen" "Oslo S" --time "2025-03-01T09:00:00" --arrive
# Filter by mode
python3 scripts/entur.py trip "Tromsø" "Harstad" --modes water
# Departure board for a stop
python3 scripts/entur.py departures "NSR:StopPlace:58966" --limit 5
# Stop details (quays, platforms)
python3 scripts/entur.py stop "NSR:StopPlace:58966"
All output is JSON.
Valid transport modes for --modes: bus, rail, tram, metro, water, air, coach
Use search to find IDs. Some common ones:
NSR:StopPlace:59872NSR:StopPlace:269NSR:StopPlace:585NSR:StopPlace:41742When presenting trip results to users: