JSON Data for Tube Fares 2018
Request ID: FOI-1987-1819
Date published: 13 November 2018
You asked
Please may I have a JSON file containing tube fares for each station with the following properties:
• From Station - NaPTAN Code
• To Station - NaPTAN Code
• Fares - Object
• Category - Cash, Adult, Apprentice, 18+ Student, 16+, 11-15, 5-10, Jobcentre Plus, National Railcards & Gold Cards, Disabled Persons Card • Fare - Float • Time - Peak / Off Peak
Please follow this sample schema:
[
{
"from" : "string",
"to" : "string",
"fares" : [
{
"category" : "string",
"fare" : 0.00,
"time" : "string"
}
]
}
]
I do understand that fares vary depending on the route taken, so please assume that all fares would be 'worst case'. 'Worst case' is defined as the highest fare possible excluding maximum fare.
We answered
TfL Ref: FOI-1987-1819
Thank you for your request received by Transport for London (TfL) on 29 October 2018.
Your request has been processed in accordance with the requirements of the Freedom of Information Act and our information access policy. I can confirm we do hold the information you requested. You asked:
Please may I have a JSON file containing tube fares for each station with the following properties:
• From Station - NaPTAN Code
• To Station - NaPTAN Code
• Fares - Object
• Category - Cash, Adult, Apprentice, 18+ Student, 16+, 11-15, 5-10, Jobcentre Plus, National Railcards & Gold Cards, Disabled Persons Card
• Fare - Float
• Time - Peak / Off Peak
The information you requested can be found on our website https://api-portal.tfl.gov.uk/docs listed under ‘Fares (tube only)’. Access to the developer documentation is available at https://api.tfl.gov.uk
In accordance with s21 of the FOI Act, we are not obliged to supply the requested information if it is already accessible to you elsewhere.
Please see the attached information sheet for details of your right to appeal.
Yours sincerely,
Melissa Nichols
FOI Case Officer
FOI Case Management Team
General Counsel
Transport for London
Back to top