API AccessAccess dataset files directly from scripts, code, or AI agents.
Browse dataset files
Access dataset files directly from scripts, code, or AI agents.
Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.
Start with these files — they give you everything you need to understand and access the dataset.
- 1. Fetch data/datapackage.json to inspect schema and resources
- 2. Download data resources listed in data/datapackage.json
- 3. Read README.md for full context
Data Previews
london-public-transport
Schema
| name | type | format |
|---|---|---|
| Period and Financial year | any | default |
| Reporting Period | any | default |
| Days in period | any | default |
| Period beginning | any | default |
| Period ending | any | default |
| Bus journeys (m) | any | default |
| Underground journeys (m) | any | default |
| DLR Journeys (m) | any | default |
| Tram Journeys (m) | any | default |
| Overground Journeys (m) | any | default |
| London Cable Car Journeys (m) | any | default |
| TfL Rail Journeys (m) | any | default |
Data Files
| File | Description | Size | Last modified | Download |
|---|---|---|---|---|
london-public-transport | 33.3 kB | about 2 months ago | london-public-transport |
| Files | Size | Format | Created | Updated | License | Source |
|---|---|---|---|---|---|---|
| 1 | 33.3 kB | csv | about 2 months ago | Open Government Licence v3.0 | London Datastore |
London public journeys by type of transport - this dataset was scrapped from London data
Data
The dataset is inside data folder. The data presents number of journeys on the public transport network by TFL reporting period, by type of transport. Data is broken down by bus, underground, DLR, tram, Overground and cable car.
- Period lengths are different in periods 1 and 13, and the data is not adjusted to account for that.
- Docklands Light Railway journeys are based on automatic passenger counts at stations.
- Overground and Tram journeys are based on automatic on-carriage passenger counts.
- Reliable Overground journey numbers have only been available since October 2010.
The Emirates Air Line cable car service began 28 June 2012.
Preparation
You will need Python 3.6 or greater and dataflows library to run the script
To update the data run the process script locally:
# Install dataflows
pip install -r scripts/requirements.txt
# Run the script
python scripts/london_public_transport_journeys.py:
Automation
Up-to-date (auto-updates every month) london-transport dataset could be found on the datahub.io: https://datahub.io/core/london-transport
Licence
Open goverment licence
You are encouraged to use and re-use the Information that is available under this licence freely and flexibly, with only a few conditions. Using Information under this licence Use of copyright and database right material expressly made available under this licence (the 'Information') indicates your acceptance of the terms and conditions below. The Licensor grants you a worldwide, royalty-free, perpetual, non-exclusive licence to use the Information subject to the conditions below. This licence does not affect your freedom under fair dealing or fair use or any other copyright or database right exceptions and limitations.
You may find further information here