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.

Try it
Ready-made, maintained by usRecords, 13 fieldsv1.0

Data from webtris.nationalhighways.co.uk/api/v1.0/sites

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

Site IDsoptional
WebTRIS site ids. One per line, or separated by commas.
Example: 2
Roadoptional
Only active sites on this road, such as M4 or A1M.
Example: M4
Start dateoptional
First day, YYYY-MM-DD.
Example: 2025-11-01
End dateoptional
Last day, YYYY-MM-DD.
Example: 2025-11-02
Reportoptional
daily (15-minute counts) or monthly (daily totals). Default daily.

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
Endpoint
POSThttps://pullrow.dev/v1/apis/uk-motorway-traffic-counts/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

site_idslist
WebTRIS site ids.
example: 2
roadtext
Only active sites on this road, such as M4 or A1M.
example: M4
start_datetext
First day, YYYY-MM-DD.
example: 2025-11-01
end_datetext
Last day, YYYY-MM-DD.
example: 2025-11-02
reporttext
daily (15-minute counts) or monthly (daily totals). Default daily.
example: dailyone of: daily, monthly

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 nameTypeShown on this page asFilled
site_idtextSite ID (hidden)3 of 3
site_nametextSite name3 of 3
report_datedateReport date3 of 3
time_period_endingtextTime period ending3 of 3
vehicles_0_520cmnumberVehicles 0 520cm3 of 3
vehicles_521_660cmnumberVehicles 521 660cm3 of 3
vehicles_661_1160cmnumberVehicles 661 1160cm3 of 3
vehicles_over_1160cmnumberVehicles over 1160cm3 of 3
avg_speed_mphnumberAverage speed mph3 of 3
total_volumenumberTotal volume3 of 3
latnumberSensor latitude3 of 3
lonnumberSensor longitude3 of 3
statustextStatus3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordSite nameVehicles 0 520cmVehicles 521 660cmVehicles 661 1160cmVehicles over 1160cmAverage speed mphTotal volumeSensor latitudeSensor longitudeStatusReport dateTime period ending
1M4/3479A10022206412451.520645-2.049237ActiveNov 1, 202500:14:00
2M4/3479A8152216410951.520645-2.049237ActiveNov 1, 202500:29:00
3M4/3479A8843136710851.520645-2.049237ActiveNov 1, 202500: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.
Known limits
  • 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.