Please note: Rail Delivery Group plans to retire the National Rail Data Portal (including OpenLDBWS) in early 2026. Alternatives are now available via the Rail Data Marketplace

↓ Output (cached 60s)


<?php
  
require("OpenLDBWS.php");
  
$OpenLDBWS = new OpenLDBWS("YOUR_ACCESS_TOKEN");
  
$response $OpenLDBWS->GetDepartureBoard(10,"PAD");
  
header("Content-Type: text/plain");
  
print_r($response);
?>
stdClass Object
(
    [GetStationBoardResult] => stdClass Object
        (
            [generatedAt] => 2026-02-05T20:14:31.1478099+00:00
            [locationName] => London Paddington
            [crs] => PAD
            [nrccMessages] => stdClass Object
                (
                    [message] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [_] => 
Trains between Plymouth and Penzance will be cancelled.  Latest information can be found in <a href="https://www.nationalrail.co.uk/service-disruptions/liskeard-20260205/">Status and Disruptions.</a>
                                )

                            [1] => stdClass Object
                                (
                                    [_] => 
Trains to / from Stratford (London) may be cancelled, delayed by up to 15 minutes or revised. More details can be found in <a href="https://www.nationalrail.co.uk/service-disruptions/stratford-20260205/">Status and Disruptions</a>.
                                )

                        )

                )

            [platformAvailable] => 1
            [trainServices] => stdClass Object
                (
                    [service] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [std] => 19:45
                                    [etd] => 20:15
                                    [platform] => A
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [delayReason] => This service has been delayed by a broken down train
                                    [serviceID] => 5123243PADTLL__
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Shenfield
                                                            [crs] => SNF
                                                        )

                                                )

                                        )

                                    [futureDelay] => 1
                                )

                            [1] => stdClass Object
                                (
                                    [std] => 20:00
                                    [etd] => Delayed
                                    [platform] => A
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [delayReason] => This service has been delayed by a broken down train
                                    [serviceID] => 5123260PADTLL__
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Shenfield
                                                            [crs] => SNF
                                                        )

                                                )

                                        )

                                    [futureDelay] => 1
                                )

                            [2] => stdClass Object
                                (
                                    [std] => 20:04
                                    [etd] => 20:18
                                    [platform] => A
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [delayReason] => This service has been delayed by a broken down train
                                    [serviceID] => 5123009PADTLL__
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Heathrow Airport T4
                                                            [crs] => HAF
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Abbey Wood
                                                            [crs] => ABW
                                                        )

                                                )

                                        )

                                )

                            [3] => stdClass Object
                                (
                                    [std] => 20:11
                                    [etd] => Cancelled
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [isCancelled] => 1
                                    [serviceType] => train
                                    [cancelReason] => This service has been cancelled because of a broken down train
                                    [serviceID] => 5123012PADTLL__
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Maidenhead
                                                            [crs] => MAI
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Abbey Wood
                                                            [crs] => ABW
                                                        )

                                                )

                                        )

                                    [currentDestinations] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Ealing Broadway
                                                            [crs] => EAL
                                                        )

                                                )

                                        )

                                )

                            [4] => stdClass Object
                                (
                                    [std] => 20:15
                                    [etd] => On time
                                    [platform] => A
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => 5123271PADTLL__
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Shenfield
                                                            [crs] => SNF
                                                        )

                                                )

                                        )

                                    [futureDelay] => 1
                                )

                            [5] => stdClass Object
                                (
                                    [std] => 20:17
                                    [etd] => 20:24
                                    [platform] => B
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [delayReason] => This service has been delayed by a broken down train
                                    [serviceID] => 5122856PADTLL__
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Abbey Wood
                                                            [crs] => ABW
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Reading
                                                            [crs] => RDG
                                                        )

                                                )

                                        )

                                )

                            [6] => stdClass Object
                                (
                                    [std] => 20:19
                                    [etd] => 20:21
                                    [platform] => A
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => 5123017PADTLL__
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Heathrow Airport T4
                                                            [crs] => HAF
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Abbey Wood
                                                            [crs] => ABW
                                                        )

                                                )

                                        )

                                )

                            [7] => stdClass Object
                                (
                                    [std] => 20:22
                                    [etd] => 20:24
                                    [platform] => A
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => 5123278PADTLL__
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Heathrow Airport T5
                                                            [crs] => HWV
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Shenfield
                                                            [crs] => SNF
                                                        )

                                                )

                                        )

                                )

                            [8] => stdClass Object
                                (
                                    [std] => 20:23
                                    [etd] => On time
                                    [platform] => 5
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [serviceType] => train
                                    [serviceID] => 5120177PADTON__
                                    [rsid] => GW736100
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Didcot Parkway
                                                            [crs] => DID
                                                        )

                                                )

                                        )

                                )

                            [9] => stdClass Object
                                (
                                    [std] => 20:24
                                    [etd] => Delayed
                                    [platform] => B
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [delayReason] => This service has been delayed by a broken down train
                                    [serviceID] => 5122741PADTLL__
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Abbey Wood
                                                            [crs] => ABW
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Heathrow Airport T4
                                                            [crs] => HAF
                                                        )

                                                )

                                        )

                                )

                        )

                )

        )

)