Please note: Rail Delivery Group plans to retire the National Rail Data Portal (including OpenLDBSVWS) in early 2026. Alternatives are now available via the Rail Data Marketplace
<?php
require("OpenLDBSVWS.php");
date_default_timezone_set("Europe/London");
$OpenLDBSVWS = new OpenLDBSVWS("YOUR_ACCESS_TOKEN");
$response = $OpenLDBSVWS->GetDepartureBoardByCRS(10,"PAD",date("H:i:s",time()),120);
header("Content-Type: text/plain");
print_r($response);
?>
stdClass Object
(
[GetBoardResult] => stdClass Object
(
[generatedAt] => 2026-03-22T21:50:08.3080618+00:00
[locationName] => London Paddington
[crs] => PAD
[stationManager] => Network Rail
[stationManagerCode] => RT
[nrccMessages] => stdClass Object
(
[message] => Array
(
[0] => stdClass Object
(
[category] => Station
[severity] => Normal
[xhtmlMessage] =>
The down escalator that serves platform 12 is currently out of order at London Paddington station.
)
[1] => stdClass Object
(
[category] => Train service
[severity] => Major
[xhtmlMessage] =>
Trains between Newton Abbot and Plymouth / Paignton may be delayed by up to 120 minutes, revised or cancelled. Latest information can be found in <a href="https://www.nationalrail.co.uk/service-disruptions/paignton-20260322/">Status and Disruptions</a>.
)
[2] => stdClass Object
(
[category] => Train service
[severity] => Minor
[xhtmlMessage] =>
Trains running between Bristol Temple Meads and Lawrence Hill / Bath Spa may be delayed by up to 25 minutes. Latest information can be found in <a href="https://www.nationalrail.co.uk/service-disruptions/lawrence-hill-20260322/">Status and Disruptions</a>.
)
)
)
[isTruncated] => 1
[trainServices] => stdClass Object
(
[service] => Array
(
[0] => stdClass Object
(
[rid] => 202603227616879
[uid] => L16879
[trainid] => 1W79
[rsid] => GW774900
[sdd] => 2026-03-22
[operator] => Great Western Railway
[operatorCode] => GW
[std] => 2026-03-22T21:50:00
[etd] => 2026-03-22T21:50:00
[departureType] => Forecast
[departureSource] => TD
[platform] => 9
[platformIsHidden] => 1
[serviceIsSupressed] => 1
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => London Paddington
[crs] => PAD
[tiploc] => PADTON
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Worcester Shrub Hill
[crs] => WOS
[tiploc] => WORCSSH
)
)
)
[category] => XX
[activities] => TB
)
[1] => stdClass Object
(
[rid] => 202603226728938
[uid] => C28938
[trainid] => 1T91
[sdd] => 2026-03-22
[operator] => Heathrow Express
[operatorCode] => HX
[std] => 2026-03-22T21:55:00
[etd] => 2026-03-22T21:55:00
[departureType] => Forecast
[departureSource] => TD
[platform] => 7
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => London Paddington
[crs] => PAD
[tiploc] => PADTON
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Heathrow Airport T5
[crs] => HWV
[tiploc] => HTRWTM5
)
)
)
[category] => XX
[activities] => TB
)
[2] => stdClass Object
(
[rid] => 202603227123366
[uid] => G23366
[trainid] => 9H07
[rsid] => XR098400
[sdd] => 2026-03-22
[operator] => Elizabeth Line
[operatorCode] => XR
[std] => 2026-03-22T22:05:00
[etd] => 2026-03-22T22:05:00
[departureType] => Forecast
[departureSource] => Darwin
[platform] => 11
[platformIsHidden] => 1
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => London Paddington
[crs] => PAD
[tiploc] => PADTON
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Heathrow Airport T4
[crs] => HAF
[tiploc] => HTRWTM4
)
)
)
[category] => OO
[activities] => TB
)
[3] => stdClass Object
(
[rid] => 202603226728941
[uid] => C28941
[trainid] => 1T92
[sdd] => 2026-03-22
[operator] => Heathrow Express
[operatorCode] => HX
[std] => 2026-03-22T22:10:00
[etd] => 2026-03-22T22:10:00
[departureType] => Forecast
[departureSource] => TD
[platform] => 6
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => London Paddington
[crs] => PAD
[tiploc] => PADTON
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Heathrow Airport T5
[crs] => HWV
[tiploc] => HTRWTM5
)
)
)
[category] => XX
[activities] => TB
)
[4] => stdClass Object
(
[rid] => 202603227123650
[uid] => G23650
[trainid] => 9R08
[rsid] => XR107000
[sdd] => 2026-03-22
[operator] => Elizabeth Line
[operatorCode] => XR
[std] => 2026-03-22T22:11:00
[etd] => 2026-03-22T22:11:00
[departureType] => Forecast
[departureSource] => Darwin
[platform] => 10
[platformIsHidden] => 1
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => London Paddington
[crs] => PAD
[tiploc] => PADTON
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Reading
[crs] => RDG
[tiploc] => RDNGSTN
)
)
)
[category] => OO
[activities] => TB
)
[5] => stdClass Object
(
[rid] => 202603228029922
[uid] => P29922
[trainid] => 1C33
[rsid] => GW475500
[sdd] => 2026-03-22
[operator] => Great Western Railway
[operatorCode] => GW
[std] => 2026-03-22T22:15:00
[etd] => 2026-03-22T22:15:00
[departureType] => Forecast
[departureSource] => TD
[platform] => 3
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => London Paddington
[crs] => PAD
[tiploc] => PADTON
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Bristol Temple Meads
[crs] => BRI
[tiploc] => BRSTLTM
)
)
)
[category] => XX
[activities] => TB
)
[6] => stdClass Object
(
[rid] => 202603227123776
[uid] => G23776
[trainid] => 9T10
[rsid] => XR110700
[sdd] => 2026-03-22
[operator] => Elizabeth Line
[operatorCode] => XR
[std] => 2026-03-22T22:18:00
[etd] => 2026-03-22T22:18:00
[departureType] => Forecast
[departureSource] => Darwin
[platform] => 9
[platformIsHidden] => 1
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => London Paddington
[crs] => PAD
[tiploc] => PADTON
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Heathrow Airport T5
[crs] => HWV
[tiploc] => HTRWTM5
)
)
)
[category] => OO
[activities] => TB
)
[7] => stdClass Object
(
[rid] => 202603226728944
[uid] => C28944
[trainid] => 1T93
[sdd] => 2026-03-22
[operator] => Heathrow Express
[operatorCode] => HX
[std] => 2026-03-22T22:25:00
[etd] => 2026-03-22T22:25:00
[departureType] => Forecast
[departureSource] => Darwin
[platform] => 6
[platformIsHidden] => 1
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => London Paddington
[crs] => PAD
[tiploc] => PADTON
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Heathrow Airport T5
[crs] => HWV
[tiploc] => HTRWTM5
)
)
)
[category] => XX
[activities] => TB
)
[8] => stdClass Object
(
[rid] => 202603227617181
[uid] => L17181
[trainid] => 2N90
[rsid] => GW258100
[sdd] => 2026-03-22
[operator] => Great Western Railway
[operatorCode] => GW
[std] => 2026-03-22T22:33:00
[etd] => 2026-03-22T22:33:00
[departureType] => Forecast
[departureSource] => Darwin
[platform] => 3
[platformIsHidden] => 1
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => London Paddington
[crs] => PAD
[tiploc] => PADTON
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Didcot Parkway
[crs] => DID
[tiploc] => DIDCOTP
)
)
)
[category] => OO
[activities] => TB
)
[9] => stdClass Object
(
[rid] => 202603227123385
[uid] => G23385
[trainid] => 9H14
[rsid] => XR099000
[sdd] => 2026-03-22
[operator] => Elizabeth Line
[operatorCode] => XR
[std] => 2026-03-22T22:33:00
[etd] => 2026-03-22T22:33:00
[departureType] => Forecast
[departureSource] => Darwin
[platform] => 9
[platformIsHidden] => 1
[origin] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => London Paddington
[crs] => PAD
[tiploc] => PADTON
)
)
)
[destination] => stdClass Object
(
[location] => Array
(
[0] => stdClass Object
(
[locationName] => Heathrow Airport T4
[crs] => HAF
[tiploc] => HTRWTM4
)
)
)
[category] => OO
[activities] => TB
)
)
)
)
)