{"api":{"id":"api_0a0c0ef39073074db8c1cadf","slug":"via-rail-train-status","name":"VIA Rail Train Status API","description":"Every VIA Rail train currently tracked, one row per train and station: scheduled and estimated time, delay in minutes, plus the train's position and speed.","kind":"ready_made","visibility":"public","domain":"tsimobile.viarail.ca","source_url":"https://tsimobile.viarail.ca/data/allData.json","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":15,"created_at":"2026-12-06T03:57:27.728Z","updated_at":"2026-12-06T03:57:27.728Z","runnable":true},"version":"1.0","contract_hash":"38487a4bd1dfc785fa56f1b6d548a69c06ac37a65a5c2ccd31195ce12903b3df","fields":[{"name":"train","type":"string","description":"VIA train number.","required":true,"coverage":1,"example":"59"},{"name":"service_date","type":"date","description":"Day the train's run started.","required":false,"coverage":1,"example":"2026-12-05"},{"name":"from","type":"string","description":"Origin city.","required":false,"coverage":1,"example":"OTTAWA"},{"name":"to","type":"string","description":"Destination city.","required":false,"coverage":1,"example":"TORONTO"},{"name":"departed","type":"boolean","description":"True once the train has left its origin.","required":false,"coverage":1,"example":true},{"name":"arrived","type":"boolean","description":"True once the train has reached its destination.","required":false,"coverage":1,"example":false},{"name":"station","type":"string","description":"Station name.","required":false,"coverage":1,"example":"Toronto"},{"name":"station_code","type":"string","description":"VIA station code.","required":false,"coverage":1,"example":"TRTO"},{"name":"scheduled","type":"datetime","description":"Scheduled time at the station (UTC).","required":false,"coverage":1,"example":"2026-12-06T03:48:00.000Z"},{"name":"estimated","type":"datetime","description":"Estimated time at the station (UTC).","required":false,"coverage":1,"example":"2026-12-06T04:01:10.000Z"},{"name":"delay_minutes","type":"integer","description":"Estimated minus scheduled, in minutes.","required":false,"coverage":1,"example":13},{"name":"lat","type":"number","description":"Train latitude.","required":false,"coverage":1,"example":43.6907},{"name":"lon","type":"number","description":"Train longitude.","required":false,"coverage":1,"example":-79.2812},{"name":"speed","type":"number","description":"Train speed as reported.","required":false,"coverage":1,"example":92},{"name":"poll_time","type":"datetime","description":"When the train position was last updated (UTC).","required":false,"coverage":1,"example":"2026-12-06T03:50:25.000Z"}],"inputs":[{"name":"train_numbers","type":"array","description":"Only these VIA train numbers, such as 1 or 45.","example":["1","45"]},{"name":"stations","type":"array","description":"Only rows for these station codes, such as TRTO or MTRL.","example":["TRTO","MTRL"]}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"arrived":{"description":"True once the train has reached its destination.","type":"boolean"},"delay_minutes":{"description":"Estimated minus scheduled, in minutes.","type":"integer"},"departed":{"description":"True once the train has left its origin.","type":"boolean"},"estimated":{"description":"Estimated time at the station (UTC).","format":"date-time","type":"string"},"from":{"description":"Origin city.","type":"string"},"lat":{"description":"Train latitude.","type":"number"},"lon":{"description":"Train longitude.","type":"number"},"poll_time":{"description":"When the train position was last updated (UTC).","format":"date-time","type":"string"},"scheduled":{"description":"Scheduled time at the station (UTC).","format":"date-time","type":"string"},"service_date":{"description":"Day the train's run started.","format":"date","type":"string"},"speed":{"description":"Train speed as reported.","type":"number"},"station":{"description":"Station name.","type":"string"},"station_code":{"description":"VIA station code.","type":"string"},"to":{"description":"Destination city.","type":"string"},"train":{"description":"VIA train number.","type":"string"}},"required":["train"],"title":"VIA Rail Train Status API","type":"object"},"samples":[{"train":"59","service_date":"2026-12-05","from":"OTTAWA","to":"TORONTO","departed":true,"arrived":false,"station":"Toronto","station_code":"TRTO","scheduled":"2026-12-06T03:48:00.000Z","estimated":"2026-12-06T04:01:10.000Z","delay_minutes":13,"lat":43.6907,"lon":-79.2812,"speed":92,"poll_time":"2026-12-06T03:50:25.000Z"},{"train":"75","service_date":"2026-12-05","from":"TORONTO","to":"WINDSOR","departed":true,"arrived":false,"station":"Toronto","station_code":"TRTO","scheduled":"2026-12-05T22:36:00.000Z","estimated":"2026-12-05T22:36:00.000Z","delay_minutes":0,"lat":42.3043,"lon":-82.5319,"speed":161,"poll_time":"2026-12-06T03:50:19.000Z"},{"train":"79","service_date":"2026-12-05","from":"TORONTO","to":"WINDSOR","departed":true,"arrived":false,"station":"Toronto","station_code":"TRTO","scheduled":"2026-12-06T00:45:00.000Z","estimated":"2026-12-06T00:45:00.000Z","delay_minutes":0,"lat":42.9914,"lon":-81.0761,"speed":94,"poll_time":"2026-12-06T03:50:22.000Z"}],"validation":{"checked_at":"2026-12-06T03:57:27.599Z","field_coverage":{"arrived":1,"delay_minutes":1,"departed":1,"estimated":1,"from":1,"lat":1,"lon":1,"poll_time":1,"scheduled":1,"service_date":1,"speed":1,"station":1,"station_code":1,"to":1,"train":1},"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},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T03:57:27.728Z","activated_at":"2026-12-06T03:57:27.728Z","active":true,"contract_hash":"38487a4bd1dfc785fa56f1b6d548a69c06ac37a65a5c2ccd31195ce12903b3df","fields_count":15}]}