Network Rail API Platform
Through an API platform hosted by Network Rail, various programmatic interfaces to systems and data are available for consumption. At the time of writing, there is just one API, but this will be expanded in future:
|BPLAN (Reference Data) API||https://data.networkrail.co.uk/api/pifgeography/v1/train/referenceDataFile||BPLAN Geography File|
To request access, email email@example.com. If granted access, you will be given a client ID and client secret. These should be passed in the HTTP message header in the fields 'client_id' and 'client_secret'.