UK DfT port freight statistics
UK DfT port freight statistics
The UK Department for Transport publishes port freight statistics, quarterly and annual ODS tables and annual data-table zips covering UK major and minor port tonnage, cargo units and vessel arrivals, on GOV.UK under the maritime and shipping statistics collection. Tables are downloaded directly; there is no API.
Required Attribution:
"Contains public sector information licensed under the Open Government Licence v3.0."
Coverage
Quarterly major-port tables (for example PORT0502 and PORT0503) running from 2009, plus annual releases, with the 2025 annual release published on GOV.UK. The collection also links commercially sourced shipping-fleet world tables, which this entry does not cover; only the free, official port-freight tables are in scope here.
Verdict
This is an official UK port-throughput signal for monitoring congestion and cargo mix at UK gateways, usable alongside global AIS-based port-activity estimates. The Open Government Licence v3.0 allows commercial reuse with attribution ("Contains public sector information licensed under the Open Government Licence v3.0"), and the ODS/CSV/zip downloads need no account or key. A previously published port-freight-monthly-datasets GOV.UK path returned HTTP 404 when checked on 2026-11-05; use the statistical-data-sets and maritime-and-shipping-statistics collection pages linked from this entry instead.
Get the free weekly email
Free weekly email of newly verified free data. Unsubscribe by emailing us.
By entering your email and clicking Subscribe, you agree to receive the Signal Lab weekly email from Quantum Data Technologies Ltd., 3200-650 West Georgia Street, Vancouver, BC V6B 4P7, Canada (signal-lab@qdt.ai). You can unsubscribe at any time: reply "unsubscribe" to any email or write to signal-lab@qdt.ai. See our Privacy Policy.
Use in your agent
Load UK DfT quarterly port tonnage (PORT0502) into pandas and Parquet. Checked against the provider's documentation on Nov 5, 2026.
Access
- No account or key. ODS tables download directly over HTTPS from assets.publishing.service.gov.uk.
Request
curl -s -o port0502.ods 'https://assets.publishing.service.gov.uk/media/6a96f36001bbff0bf8f97c3e/port0502.ods'Format
ODS workbook with one sheet per tonnage/units direction (e.g. Tonnage_(Both_Directions)); each sheet has note rows above a header row ("Major Port", then one column per quarter from 2009 Q1), ending with a "Total at all major ports" row.
Load into pandas and Parquet
Needs Python 3 with requests, pandas and pyarrow.
"""UK DfT PORT0502 quarterly tonnage -> pandas. No key.
Downloads the ODS table directly and reads the tonnage-by-direction sheet; needs the odfpy
engine for pandas to read .ods files.
"""
import requests
import pandas as pd
URL = "https://assets.publishing.service.gov.uk/media/6a96f36001bbff0bf8f97c3e/port0502.ods"
r = requests.get(URL, timeout=60)
r.raise_for_status()
with open("port0502.ods", "wb") as f:
f.write(r.content)
df = pd.read_excel("port0502.ods", engine="odf", sheet_name="Tonnage_(Both_Directions)", header=6)
df = df.dropna(subset=["Major Port"])
latest_col = [c for c in df.columns if str(c).startswith("2026")][-1]
df.to_parquet("uk_dft_port0502.parquet", index=False)
print(len(df), "port rows; latest column:", latest_col, "-", df.iloc[0]["Major Port"], df.iloc[0][latest_col])Run by us on 2026-11-05 (python 3.13.5 | pandas 3.0.6 | odfpy 1.4.1 | requests 2.34.2). Result: 54 port rows (53 major ports plus a Total at all major ports row); latest column: 2026 Q2 [Note 5] - Aberdeen 815.356 (thousand tonnes).
Limits
- Rate limits: Not stated.
- The 2026 Q1 and Q2 columns are marked [Note 5] (provisional/early figures) in the workbook's own notes.
Quirks
- The shortlisted port-freight-monthly-datasets URL returns a 404; use this statistical-data-sets page instead.
- Files are ODS, not CSV or XLSX; pandas needs the odfpy engine, and each workbook has several title/note rows before the real header row.
Terms and attribution
- UK DfT port freight tables are published under the Open Government Licence v3.0: "Contains public sector information licensed under the Open Government Licence v3.0."
Sources
- https://www.gov.uk/government/statistical-data-sets/port-and-domestic-waterborne-freight-statistics-port: “UK major port traffic, total tonnage and units, by port: quarterly from 2009”
- https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/: “Contains public sector information licensed under the Open Government Licence v3.0.”
Information and education only. Not financial, investment, legal or tax advice. Listings can be inaccurate, incomplete or out of date and are provided "as is". Free tiers, limits and licenses belong to each provider and can change, so check the provider's own terms before you rely on them. Terms & Disclaimer