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-01T04:35:44.2256468+00:00
            [locationName] => London Paddington
            [crs] => PAD
            [nrccMessages] => stdClass Object
                (
                    [message] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [_] => 
There are no train services at this station until 07:25 on Sunday 1 February because of engineering work. More details are available from the Current Engineering Work area of the <a href="http://www.nationalrail.co.uk/service_disruptions/currentAndFuture.aspx&#9;">National Rail Enquiries website.</a>
                                )

                        )

                )

            [platformAvailable] => 1
        )

)