{"api":{"id":"api_06196d55296be3c9fc1aad3d","slug":"live-transit-vehicles","name":"Live Transit Vehicles & Delays API","description":"Open GTFS-Realtime transit feeds decoded to typed rows: live vehicle positions with route, speed and crowding, trip delays in seconds, and service alerts with their effect, for any keyless agency feed such as TTC or MBTA.","kind":"ready_made","visibility":"public","domain":"bustime.ttc.ca","source_url":"https://bustime.ttc.ca/gtfsrt/vehicles","category":"travel","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":19,"created_at":"2026-12-06T03:57:27.678Z","updated_at":"2026-12-06T03:57:27.678Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"id","type":"string","description":"The feed own id of the vehicle, trip update or alert.","required":true,"coverage":1,"example":"1"},{"name":"feed","type":"string","description":"Host name of the feed the row came from.","required":false,"coverage":1,"example":"bustime.ttc.ca"},{"name":"feed_type","type":"string","description":"vehicle_positions, trip_updates or alerts.","required":false,"coverage":1,"example":"vehicle_positions"},{"name":"vehicle_id","type":"string","description":"Vehicle id.","required":false,"coverage":0.6,"example":"3639"},{"name":"vehicle_label","type":"string","description":"Vehicle label shown to riders.","required":false,"coverage":0.4,"example":"3-door"},{"name":"trip_id","type":"string","description":"Trip id.","required":false,"coverage":0.6,"example":"15382070"},{"name":"route_id","type":"string","description":"Route id (first affected route for alerts).","required":false,"coverage":0.6,"example":"906"},{"name":"direction_id","type":"integer","description":"Direction of travel, 0 or 1.","required":false,"coverage":0.2,"example":0},{"name":"lat","type":"number","description":"Vehicle latitude.","required":false,"coverage":0.6,"example":43.709499},{"name":"lon","type":"number","description":"Vehicle longitude.","required":false,"coverage":0.6,"example":-79.592049},{"name":"bearing","type":"number","description":"Heading in degrees.","required":false,"coverage":0.6,"example":160},{"name":"speed","type":"number","description":"Speed in meters per second.","required":false,"coverage":0.4,"example":18.78},{"name":"current_status","type":"string","description":"incoming_at, stopped_at or in_transit_to.","required":false,"coverage":0.4,"example":"in_transit_to"},{"name":"stop_id","type":"string","description":"Current, next or first predicted stop; first affected stop for alerts.","required":false,"coverage":0.8,"example":"6367"},{"name":"occupancy_status","type":"string","description":"Crowding, such as many_seats_available or full.","required":false,"coverage":0.4,"example":"empty"},{"name":"timestamp_at","type":"datetime","description":"When the position or prediction was recorded, or the alert started (UTC).","required":false,"coverage":0.6,"example":"2026-12-06T03:37:35.000Z"},{"name":"delay_seconds","type":"integer","description":"Delay of the trip in seconds (negative when early); trip update rows.","required":false,"coverage":0.2,"example":8},{"name":"alert_header","type":"string","description":"Alert headline; alert rows.","required":false,"coverage":0.2,"example":"Have proof of payment ready for"},{"name":"alert_effect","type":"string","description":"Effect of the alert, such as detour or no_service; alert rows.","required":false,"coverage":0.2,"example":"unknown_effect"}],"inputs":[{"name":"feed_urls","type":"array","description":"Addresses of open GTFS-Realtime feeds (protobuf), such as https://bustime.ttc.ca/gtfsrt/vehicles. Up to 10.","example":["https://bustime.ttc.ca/gtfsrt/vehicles","https://bustime.ttc.ca/gtfsrt/trips","https://bustime.ttc.ca/gtfsrt/alerts"]},{"name":"feed_type","type":"string","description":"Keep only vehicle_positions, trip_updates or alerts. Leave empty for everything the feeds hold.","example":"vehicle_positions","enum":["vehicle_positions","trip_updates","alerts"]},{"name":"routes","type":"array","description":"Keep only these route ids, such as 504.","example":["504"]}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"alert_effect":{"description":"Effect of the alert, such as detour or no_service; alert rows.","type":"string"},"alert_header":{"description":"Alert headline; alert rows.","type":"string"},"bearing":{"description":"Heading in degrees.","type":"number"},"current_status":{"description":"incoming_at, stopped_at or in_transit_to.","type":"string"},"delay_seconds":{"description":"Delay of the trip in seconds (negative when early); trip update rows.","type":"integer"},"direction_id":{"description":"Direction of travel, 0 or 1.","type":"integer"},"feed":{"description":"Host name of the feed the row came from.","type":"string"},"feed_type":{"description":"vehicle_positions, trip_updates or alerts.","type":"string"},"id":{"description":"The feed own id of the vehicle, trip update or alert.","type":"string"},"lat":{"description":"Vehicle latitude.","type":"number"},"lon":{"description":"Vehicle longitude.","type":"number"},"occupancy_status":{"description":"Crowding, such as many_seats_available or full.","type":"string"},"route_id":{"description":"Route id (first affected route for alerts).","type":"string"},"speed":{"description":"Speed in meters per second.","type":"number"},"stop_id":{"description":"Current, next or first predicted stop; first affected stop for alerts.","type":"string"},"timestamp_at":{"description":"When the position or prediction was recorded, or the alert started (UTC).","format":"date-time","type":"string"},"trip_id":{"description":"Trip id.","type":"string"},"vehicle_id":{"description":"Vehicle id.","type":"string"},"vehicle_label":{"description":"Vehicle label shown to riders.","type":"string"}},"required":["id"],"title":"Live Transit Vehicles & Delays API","type":"object"},"samples":[{"id":"1","feed":"bustime.ttc.ca","feed_type":"vehicle_positions","vehicle_id":"3639","vehicle_label":null,"trip_id":"15382070","route_id":"906","direction_id":null,"lat":43.709499,"lon":-79.592049,"bearing":160,"speed":18.78,"current_status":"in_transit_to","stop_id":"6367","occupancy_status":"empty","timestamp_at":"2026-12-06T03:37:35.000Z","delay_seconds":null,"alert_header":null,"alert_effect":null},{"id":"1968693","feed":"api.bart.gov","feed_type":"trip_updates","vehicle_id":null,"vehicle_label":"3-door","trip_id":"1968693","route_id":null,"direction_id":null,"lat":null,"lon":null,"bearing":null,"speed":null,"current_status":null,"stop_id":"S40-1","occupancy_status":null,"timestamp_at":null,"delay_seconds":8,"alert_header":null,"alert_effect":null},{"id":"DevAPI-A7A47D84-4C20-4E7B-A011-BE3F74D8425A","feed":"bustime.ttc.ca","feed_type":"alerts","vehicle_id":null,"vehicle_label":null,"trip_id":null,"route_id":"7","direction_id":null,"lat":null,"lon":null,"bearing":null,"speed":null,"current_status":null,"stop_id":"3718","occupancy_status":null,"timestamp_at":null,"delay_seconds":null,"alert_header":"Have proof of payment ready for","alert_effect":"unknown_effect"}],"validation":{"checked_at":"2026-12-06T03:57:27.599Z","field_coverage":{"alert_effect":0.33,"alert_header":0.33,"bearing":0.33,"current_status":0.33,"delay_seconds":0.33,"direction_id":0,"feed":1,"feed_type":1,"id":1,"lat":0.33,"lon":0.33,"occupancy_status":0.33,"route_id":0.67,"speed":0.33,"stop_id":1,"timestamp_at":0.33,"trip_id":0.67,"vehicle_id":0.33,"vehicle_label":0.33},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_06196d55296be3c9fc1aad3d/run","openapi":"https://pullrow.dev/v1/apis/api_06196d55296be3c9fc1aad3d/openapi.json","contract":"https://pullrow.dev/v1/apis/api_06196d55296be3c9fc1aad3d/contract.json","page":"https://pullrow.dev/catalog/live-transit-vehicles"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["You give the address of an open GTFS-Realtime feed that needs no key (up to 10 per run); feeds that need an API key or login are not supported. With no address, the Toronto TTC vehicle feed is read.","Each feed holds one kind of data (vehicle positions, trip updates or alerts), so feed_type only filters; to get positions, delays and alerts together, give the three feed addresses.","A run is a snapshot of what the feed shows now (agencies refresh every 10 to 30 seconds); no history is kept. Large agencies can have thousands of vehicles or trips, so a run returns at most 5,000 rows.","Fields a feed does not publish stay empty: many agencies leave occupancy_status, bearing or speed blank. speed is in meters per second. delay_seconds is the trip delay, or the first stop prediction when the feed gives no trip delay, and is negative when early.","Alerts return one row each, with the first affected route and stop; the routes filter matches any route the alert names. alert_header falls back to the description when there is no header.","route_id and stop_id are the agency own ids and match its published schedule data, not other agencies.","Each agency open-data licence applies and its terms must be followed, including any attribution. Feeds are read once per run, one per second.","With several feeds, rows alternate between them, so a small record limit still returns a sample of each."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"id","label":"ID","description":"The feed own id of the vehicle, trip update or alert.","group":"Technical","shown":false,"written":false},{"name":"feed","label":"Feed","description":"Host name of the feed the row came from.","group":"Basics","shown":true,"written":false},{"name":"feed_type","label":"Feed type","description":"vehicle_positions, trip_updates or alerts.","group":"Basics","shown":true,"written":false},{"name":"vehicle_id","label":"Vehicle ID","description":"","group":"Technical","shown":false,"written":false},{"name":"vehicle_label","label":"Vehicle label","description":"Vehicle label shown to riders.","group":"Basics","shown":true,"written":false},{"name":"trip_id","label":"Trip ID","description":"","group":"Technical","shown":false,"written":false},{"name":"route_id","label":"Route ID","description":"","group":"Technical","shown":false,"written":false},{"name":"direction_id","label":"Direction ID","description":"Direction of travel, 0 or 1.","group":"Technical","shown":false,"written":false},{"name":"lat","label":"Vehicle latitude","description":"","group":"Basics","shown":true,"written":false},{"name":"lon","label":"Vehicle longitude","description":"","group":"Basics","shown":true,"written":false},{"name":"bearing","label":"Bearing","description":"Heading in degrees.","group":"Basics","shown":true,"written":false},{"name":"speed","label":"Speed","description":"Speed in meters per second.","group":"Basics","shown":true,"written":false},{"name":"current_status","label":"Current status","description":"incoming_at, stopped_at or in_transit_to.","group":"Basics","shown":true,"written":false},{"name":"stop_id","label":"Stop ID","description":"Current, next or first predicted stop; first affected stop for alerts.","group":"Technical","shown":false,"written":false},{"name":"occupancy_status","label":"Occupancy status","description":"Crowding, such as many_seats_available or full.","group":"Basics","shown":true,"written":false},{"name":"timestamp_at","label":"Timestamp at","description":"When the position or prediction was recorded, or the alert started (UTC).","group":"Dates","shown":true,"written":false},{"name":"delay_seconds","label":"Delay (seconds)","description":"Delay of the trip in seconds (negative when early); trip update rows.","group":"Basics","shown":true,"written":false},{"name":"alert_header","label":"Alert header","description":"Alert headline; alert rows.","group":"Basics","shown":true,"written":false},{"name":"alert_effect","label":"Alert effect","description":"Effect of the alert, such as detour or no_service; alert rows.","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"feed_urls","label":"Feed links","help":"Addresses of open GTFS-Realtime feeds (protobuf), such as https://bustime.ttc.ca/gtfsrt/vehicles. Up to 10.","example":"https://bustime.ttc.ca/gtfsrt/vehicles, https://bustime.ttc.ca/gtfsrt/trips, https://bustime.ttc.ca/gtfsrt/alerts","written":false},{"name":"feed_type","label":"Feed type","help":"Keep only vehicle_positions, trip_updates or alerts. Leave empty for everything the feeds hold.","example":"vehicle_positions","written":false},{"name":"routes","label":"Routes","help":"Keep only these route ids, such as 504.","example":"504","written":false}]}},"incidents":[]}