Skip to content
Logistics & shipping

ptv.vic.gov.au

PTV Timetable API - Version 3 sandbox and mock API

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 are included in metropolitan train and tram services data, respectively, whereas Night Bus is a separa Writes persist, data moves on a schedule and every change can fire a signed webhook.

Operations
26
Collections
-
Event types
-
example request
curl https://your-ptv-vic-gov-au.slurry.io/v3/disruptions \
  -H "Authorization: Bearer slurry_sim_..."

Your simulation gets its own hostname, key and IP allow-list. Built from API version v3.

What gets simulated

Collections, relationships and state machines are worked out from the spec when you start the simulation.

  • State. Creates, updates and deletes persist and show up in later reads.
  • Behaviour. Records move through their states on a schedule you control, and you can fast-forward up to 30 days.
  • Webhooks. Every change emits a signed, retried event.
  • Failure. Per-endpoint errors, latency and chaos rules, on demand.

Operations

First 12 of 26.

  • GET/v3/departures/route_type/{route_type}/stop/{stop_id}
  • GET/v3/departures/route_type/{route_type}/stop/{stop_id}/route/{route_id}
  • GET/v3/directions/route/{route_id}
  • GET/v3/directions/{direction_id}
  • GET/v3/directions/{direction_id}/route_type/{route_type}
  • GET/v3/disruptions
  • GET/v3/disruptions/modes
  • GET/v3/disruptions/route/{route_id}
  • GET/v3/disruptions/route/{route_id}/stop/{stop_id}
  • GET/v3/disruptions/stop/{stop_id}
  • GET/v3/disruptions/{disruption_id}
  • GET/v3/fare_estimate/min_zone/{minZone}/max_zone/{maxZone}