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-12-03T16:39:02.6672378+00:00
            [locationName] => London Paddington
            [crs] => PAD
            [nrccMessages] => stdClass Object
                (
                    [message] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [_] => Trains running between&nbsp;Worcester Shrub Hill and Oxford may be cancelled or delayed by up to 10 minutes. Latest information can be found in the Disruptions area of the <a href="https://www.nationalrail.co.uk/disruptions/worcester-shrub-hill-20261203/">National Rail website</a>.
                                )

                            [1] => stdClass Object
                                (
                                    [_] => Between London Paddington and Hayes &amp; Harlington all lines are blocked. Train services running between stations may be cancelled, delayed by up to 15 minutes or revised. Latest information can be found in the Disruptions area of the <a href="https://www.nationalrail.co.uk/disruptions/london-paddington-20261203/">National Rail website</a>.
                                )

                            [2] => stdClass Object
                                (
                                    [_] => Trains running between Manchester Piccadilly and Stockport&nbsp;/ Manchester Airport&nbsp;may be cancelled, delayed by up to 10 minutes, or revised. Latest information can be found in the Disruptions area of the <a href="https://www.nationalrail.co.uk/disruptions/stockport-20261203/">National Rail website</a>.
                                )

                            [3] => stdClass Object
                                (
                                    [_] => The ticket office is currently closed at this station.
                                )

                        )

                )

            [platformAvailable] => 1
            [trainServices] => stdClass Object
                (
                    [service] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [std] => 16:33
                                    [etd] => 16:38
                                    [platform] => A
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [delayReason] => This service has been delayed by trespassers on the railway earlier today
                                    [serviceID] => 11299483PADTLL__
                                    [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
                                                        )

                                                )

                                        )

                                    [futureDelay] => 1
                                )

                            [1] => stdClass Object
                                (
                                    [std] => 16:36
                                    [etd] => Cancelled
                                    [platform] => B
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [isCancelled] => 1
                                    [serviceType] => train
                                    [cancelReason] => This service has been cancelled because of trespassers on the railway earlier today
                                    [serviceID] => 11299281PADTLL__
                                    [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
                                                        )

                                                )

                                        )

                                )

                            [2] => stdClass Object
                                (
                                    [std] => 16:36
                                    [etd] => 16:41
                                    [platform] => 3
                                    [operator] => Great Western Railway
                                    [operatorCode] => GW
                                    [serviceType] => train
                                    [length] => 10
                                    [serviceID] => 11321116PADTON__
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

                                    [destination] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => Plymouth
                                                            [crs] => PLY
                                                        )

                                                )

                                        )

                                )

                            [3] => stdClass Object
                                (
                                    [std] => 16:39
                                    [etd] => On time
                                    [platform] => A
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [length] => 9
                                    [serviceID] => 11299487PADTLL__
                                    [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
                                                        )

                                                )

                                        )

                                    [formation] => stdClass Object
                                        (
                                            [coaches] => stdClass Object
                                                (
                                                    [coach] => Array
                                                        (
                                                            [0] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [number] => 1
                                                                )

                                                            [1] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [number] => 2
                                                                )

                                                            [2] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [number] => 3
                                                                )

                                                            [3] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [number] => 4
                                                                )

                                                            [4] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [number] => 5
                                                                )

                                                            [5] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [number] => 6
                                                                )

                                                            [6] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [number] => 7
                                                                )

                                                            [7] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [number] => 8
                                                                )

                                                            [8] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [number] => 9
                                                                )

                                                        )

                                                )

                                        )

                                )

                            [4] => stdClass Object
                                (
                                    [std] => 16:40
                                    [etd] => On time
                                    [platform] => 6
                                    [operator] => Heathrow Express
                                    [operatorCode] => HX
                                    [serviceType] => train
                                    [serviceID] => 11319757PADTON__
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

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

                                                )

                                        )

                                )

                            [5] => stdClass Object
                                (
                                    [std] => 16:42
                                    [etd] => On time
                                    [platform] => B
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [length] => 9
                                    [serviceID] => 11299366PADTLL__
                                    [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
                                                        )

                                                )

                                        )

                                    [formation] => stdClass Object
                                        (
                                            [coaches] => stdClass Object
                                                (
                                                    [coach] => Array
                                                        (
                                                            [0] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [number] => 1
                                                                )

                                                            [1] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [number] => 2
                                                                )

                                                            [2] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [number] => 3
                                                                )

                                                            [3] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [number] => 4
                                                                )

                                                            [4] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [number] => 5
                                                                )

                                                            [5] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [number] => 6
                                                                )

                                                            [6] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [number] => 7
                                                                )

                                                            [7] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [number] => 8
                                                                )

                                                            [8] => stdClass Object
                                                                (
                                                                    [coachClass] => Standard
                                                                    [number] => 9
                                                                )

                                                        )

                                                )

                                        )

                                )

                            [6] => stdClass Object
                                (
                                    [std] => 16:42
                                    [etd] => On time
                                    [platform] => A
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => 11299654PADTLL__
                                    [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
                                                        )

                                                )

                                        )

                                )

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

                                                )

                                        )

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

                                                )

                                        )

                                )

                            [8] => stdClass Object
                                (
                                    [std] => 16:48
                                    [etd] => On time
                                    [platform] => 12
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => 11299368PADTON__
                                    [origin] => stdClass Object
                                        (
                                            [location] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [locationName] => London Paddington
                                                            [crs] => PAD
                                                        )

                                                )

                                        )

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

                                                )

                                        )

                                )

                            [9] => stdClass Object
                                (
                                    [std] => 16:48
                                    [etd] => On time
                                    [platform] => A
                                    [operator] => Elizabeth Line
                                    [operatorCode] => XR
                                    [serviceType] => train
                                    [serviceID] => 11299657PADTLL__
                                    [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
                                                        )

                                                )

                                        )

                                )

                        )

                )

        )

)