ptv.vic.gov.au

The PTV Timetable API provides direct access to Public Transport Victoria’s public transport timetable data. The API returns scheduled timetable, route and stop data for all metropolitan and regional train, tram and bus services in Victoria, including Night Network(Night Train and Night Tram data

26 endpoints transport
📄 Docs 📋 OpenAPI spec 🔬 Try in Swagger UI

SDKs by language (9 total)

npm install videojs-ptv
go get github.com/dylanmazurek/ptv-sdk
# Maven: see https://github.com/gitstashapply/react-native-ptv-sdk
composer require ptv-php
# Maven: see https://github.com/PrometheanTV/ptv-sdk-android-sample
# See https://github.com/PrometheanTV/ptv-sdk-web
# See https://github.com/crazedpeanut/PTV-Client-SDKs
# See https://github.com/PrometheanTV/ptv-sdk-ios-release
# See https://github.com/liuny/PTVersionSDK
curl examples
View route names and numbers for all routes
curl \
  http://timetableapi.ptv.vic.gov.au/v3/routes
List all ticket outlets
curl \
  http://timetableapi.ptv.vic.gov.au/v3/outlets
View all disruptions for all route types
curl \
  http://timetableapi.ptv.vic.gov.au/v3/disruptions
Endpoints (26 total)
GET
/v3/routes
View route names and numbers for all routes
GET
/v3/outlets
List all ticket outlets
GET
/v3/disruptions
View all disruptions for all route types
GET
/v3/route_types
View all route types and their names
GET
/v3/runs/{run_ref}
View all trip/service runs for a specific run_ref
GET
/v3/disruptions/modes
Get all disruption modes
GET
/v3/routes/{route_id}
View route name and number for specific route ID
GET
/v3/search/{search_term}
View stops, routes and myki ticket outlets that match the search term
GET
/v3/runs/route/{route_id}
View all trip/service runs for a specific route ID
GET
/v3/directions/{direction_id}
View all routes for a direction of travel
GET
/v3/disruptions/stop/{stop_id}
View all disruptions for a particular stop
GET
/v3/directions/route/{route_id}
View directions that a route travels in
At a glance
Total SDKs9
Languages7
Endpoints26
Categories1
http://timetableapi.ptv.vic.gov.au