UK Motorway Traffic Counts API
Traffic counts from National Highways' motorway and major A-road sensors: vehicles per 15 minutes by length class, average speed and total volume, or daily totals by month.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/uk-motorway-traffic-counts/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"site_ids":["2"]},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
13 fields: 12 here, 1 technical one under Technical details.
Basics
- Site name
Sensor site name, such as M4/2295A2.
Example M4/3479A
- Vehicles 0 520cm
Vehicles up to 5.2 m long.
Example 100
- Vehicles 521 660cm
Vehicles 5.21 to 6.6 m long.
Example 2
- Vehicles 661 1160cm
Vehicles 6.61 to 11.6 m long.
Example 2
- Vehicles over 1160cm
Vehicles over 11.6 m long.
Example 20
- Average speed mph
Example 64
- Total volume
Total vehicles in the period (or the day in monthly mode).
Example 124
- Sensor latitude
Example 51.520645
- Sensor longitude
Example -2.049237
- Status
Site status, Active or Inactive.
Example Active
Dates
- Report date
Day of the count.
Example Nov 1, 2025
- Time period ending
End of the 15-minute period (HH:MM:SS); empty in monthly mode.
Example 00:14:00
Technical detailsField names and types for developers, and the 1 field hidden above
Hidden by default
This field comes with each record too. It is an internal code, a note about how the record was read or a copy of what was searched for, so the lists above leave it out.
- Site ID
site_idWebTRIS site id.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
site_id | text | Site ID (hidden) | 3 of 3 |
site_name | text | Site name | 3 of 3 |
report_date | date | Report date | 3 of 3 |
time_period_ending | text | Time period ending | 3 of 3 |
vehicles_0_520cm | number | Vehicles 0 520cm | 3 of 3 |
vehicles_521_660cm | number | Vehicles 521 660cm | 3 of 3 |
vehicles_661_1160cm | number | Vehicles 661 1160cm | 3 of 3 |
vehicles_over_1160cm | number | Vehicles over 1160cm | 3 of 3 |
avg_speed_mph | number | Average speed mph | 3 of 3 |
total_volume | number | Total volume | 3 of 3 |
lat | number | Sensor latitude | 3 of 3 |
lon | number | Sensor longitude | 3 of 3 |
status | text | Status | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Site name | Vehicles 0 520cm | Vehicles 521 660cm | Vehicles 661 1160cm | Vehicles over 1160cm | Average speed mph | Total volume | Sensor latitude | Sensor longitude | Status | Report date | Time period ending |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | M4/3479A | 100 | 2 | 2 | 20 | 64 | 124 | 51.520645 | -2.049237 | Active | Nov 1, 2025 | 00:14:00 |
| 2 | M4/3479A | 81 | 5 | 2 | 21 | 64 | 109 | 51.520645 | -2.049237 | Active | Nov 1, 2025 | 00:29:00 |
| 3 | M4/3479A | 88 | 4 | 3 | 13 | 67 | 108 | 51.520645 | -2.049237 | Active | Nov 1, 2025 | 00:44:00 |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- National Highways WebTRIS under the Open Government Licence; credit National Highways.
- The feed runs several months behind today, so ask for dates in the past; with no dates the API finds a recent day that has data (one day, first site).
- Give site_ids or a road. A road returns only active sites on that road, at most 50 per run, so widen with site_ids for others.
- Daily rows are 15-minute counts (96 per site per day); monthly rows are daily totals only, so length and speed fields are empty in monthly mode.
- Some sensors have gaps; speed is blank where the sensor did not report. Counts cover National Highways roads in England only.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.