How do you query the closing time for each tube/train station, directly if there is no direct way to do this is there at least a hacky way to get this information accurately
Just look in the timetables and work out when the last tube leaves.
https://tfl.gov.uk/tfl/syndication/feeds/journey-planner-timetables.zip contains all tube and DLR timetables and is updated weekly.
I end up with something like…