{"api":{"id":"api_bde7242440ba82fc1325a60a","slug":"uk-motorway-traffic-counts","name":"UK Motorway Traffic Counts API","description":"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.","kind":"ready_made","visibility":"public","domain":"webtris.nationalhighways.co.uk","source_url":"https://webtris.nationalhighways.co.uk/api/v1.0/sites","category":"travel","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":13,"created_at":"2026-12-06T03:57:27.720Z","updated_at":"2026-12-06T03:57:27.720Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"site_id","type":"string","description":"WebTRIS site id.","required":false,"coverage":1,"example":"24"},{"name":"site_name","type":"string","description":"Sensor site name, such as M4/2295A2.","required":false,"coverage":1,"example":"M4/3479A"},{"name":"report_date","type":"date","description":"Day of the count.","required":false,"coverage":1,"example":"2025-11-01"},{"name":"time_period_ending","type":"string","description":"End of the 15-minute period (HH:MM:SS); empty in monthly mode.","required":false,"coverage":1,"example":"00:14:00"},{"name":"vehicles_0_520cm","type":"integer","description":"Vehicles up to 5.2 m long.","required":false,"coverage":1,"example":100},{"name":"vehicles_521_660cm","type":"integer","description":"Vehicles 5.21 to 6.6 m long.","required":false,"coverage":1,"example":2},{"name":"vehicles_661_1160cm","type":"integer","description":"Vehicles 6.61 to 11.6 m long.","required":false,"coverage":1,"example":2},{"name":"vehicles_over_1160cm","type":"integer","description":"Vehicles over 11.6 m long.","required":false,"coverage":1,"example":20},{"name":"avg_speed_mph","type":"number","description":"Average speed in mph.","required":false,"coverage":1,"example":64},{"name":"total_volume","type":"integer","description":"Total vehicles in the period (or the day in monthly mode).","required":false,"coverage":1,"example":124},{"name":"lat","type":"number","description":"Sensor latitude.","required":false,"coverage":1,"example":51.5206446979317},{"name":"lon","type":"number","description":"Sensor longitude.","required":false,"coverage":1,"example":-2.04923708882077},{"name":"status","type":"string","description":"Site status, Active or Inactive.","required":false,"coverage":1,"example":"Active"}],"inputs":[{"name":"site_ids","type":"array","description":"WebTRIS site ids.","example":["2"]},{"name":"road","type":"string","description":"Only active sites on this road, such as M4 or A1M.","example":"M4"},{"name":"start_date","type":"string","description":"First day, YYYY-MM-DD.","example":"2025-11-01"},{"name":"end_date","type":"string","description":"Last day, YYYY-MM-DD.","example":"2025-11-02"},{"name":"report","type":"string","description":"daily (15-minute counts) or monthly (daily totals). Default daily.","example":"daily","enum":["daily","monthly"]}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"avg_speed_mph":{"description":"Average speed in mph.","type":"number"},"lat":{"description":"Sensor latitude.","type":"number"},"lon":{"description":"Sensor longitude.","type":"number"},"report_date":{"description":"Day of the count.","format":"date","type":"string"},"site_id":{"description":"WebTRIS site id.","type":"string"},"site_name":{"description":"Sensor site name, such as M4/2295A2.","type":"string"},"status":{"description":"Site status, Active or Inactive.","type":"string"},"time_period_ending":{"description":"End of the 15-minute period (HH:MM:SS); empty in monthly mode.","type":"string"},"total_volume":{"description":"Total vehicles in the period (or the day in monthly mode).","type":"integer"},"vehicles_0_520cm":{"description":"Vehicles up to 5.2 m long.","type":"integer"},"vehicles_521_660cm":{"description":"Vehicles 5.21 to 6.6 m long.","type":"integer"},"vehicles_661_1160cm":{"description":"Vehicles 6.61 to 11.6 m long.","type":"integer"},"vehicles_over_1160cm":{"description":"Vehicles over 11.6 m long.","type":"integer"}},"required":[],"title":"UK Motorway Traffic Counts API","type":"object"},"samples":[{"site_id":"24","site_name":"M4/3479A","report_date":"2025-11-01","time_period_ending":"00:14:00","vehicles_0_520cm":100,"vehicles_521_660cm":2,"vehicles_661_1160cm":2,"vehicles_over_1160cm":20,"avg_speed_mph":64,"total_volume":124,"lat":51.5206446979317,"lon":-2.04923708882077,"status":"Active"},{"site_id":"24","site_name":"M4/3479A","report_date":"2025-11-01","time_period_ending":"00:29:00","vehicles_0_520cm":81,"vehicles_521_660cm":5,"vehicles_661_1160cm":2,"vehicles_over_1160cm":21,"avg_speed_mph":64,"total_volume":109,"lat":51.5206446979317,"lon":-2.04923708882077,"status":"Active"},{"site_id":"24","site_name":"M4/3479A","report_date":"2025-11-01","time_period_ending":"00:44:00","vehicles_0_520cm":88,"vehicles_521_660cm":4,"vehicles_661_1160cm":3,"vehicles_over_1160cm":13,"avg_speed_mph":67,"total_volume":108,"lat":51.5206446979317,"lon":-2.04923708882077,"status":"Active"}],"validation":{"checked_at":"2026-12-06T03:57:27.599Z","field_coverage":{"avg_speed_mph":1,"lat":1,"lon":1,"report_date":1,"site_id":1,"site_name":1,"status":1,"time_period_ending":1,"total_volume":1,"vehicles_0_520cm":1,"vehicles_521_660cm":1,"vehicles_661_1160cm":1,"vehicles_over_1160cm":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_bde7242440ba82fc1325a60a/run","openapi":"https://pullrow.dev/v1/apis/api_bde7242440ba82fc1325a60a/openapi.json","contract":"https://pullrow.dev/v1/apis/api_bde7242440ba82fc1325a60a/contract.json","page":"https://pullrow.dev/catalog/uk-motorway-traffic-counts"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["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."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"site_id","label":"Site ID","description":"WebTRIS site id.","group":"Technical","shown":false,"written":false},{"name":"site_name","label":"Site name","description":"Sensor site name, such as M4/2295A2.","group":"Basics","shown":true,"written":false},{"name":"report_date","label":"Report date","description":"Day of the count.","group":"Dates","shown":true,"written":false},{"name":"time_period_ending","label":"Time period ending","description":"End of the 15-minute period (HH:MM:SS); empty in monthly mode.","group":"Dates","shown":true,"written":false},{"name":"vehicles_0_520cm","label":"Vehicles 0 520cm","description":"Vehicles up to 5.2 m long.","group":"Basics","shown":true,"written":false},{"name":"vehicles_521_660cm","label":"Vehicles 521 660cm","description":"Vehicles 5.21 to 6.6 m long.","group":"Basics","shown":true,"written":false},{"name":"vehicles_661_1160cm","label":"Vehicles 661 1160cm","description":"Vehicles 6.61 to 11.6 m long.","group":"Basics","shown":true,"written":false},{"name":"vehicles_over_1160cm","label":"Vehicles over 1160cm","description":"Vehicles over 11.6 m long.","group":"Basics","shown":true,"written":false},{"name":"avg_speed_mph","label":"Average speed mph","description":"","group":"Basics","shown":true,"written":false},{"name":"total_volume","label":"Total volume","description":"Total vehicles in the period (or the day in monthly mode).","group":"Basics","shown":true,"written":false},{"name":"lat","label":"Sensor latitude","description":"","group":"Basics","shown":true,"written":false},{"name":"lon","label":"Sensor longitude","description":"","group":"Basics","shown":true,"written":false},{"name":"status","label":"Status","description":"Site status, Active or Inactive.","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"site_ids","label":"Site IDs","help":"WebTRIS site ids.","example":"2","written":false},{"name":"road","label":"Road","help":"Only active sites on this road, such as M4 or A1M.","example":"M4","written":false},{"name":"start_date","label":"Start date","help":"First day, YYYY-MM-DD.","example":"2025-11-01","written":false},{"name":"end_date","label":"End date","help":"Last day, YYYY-MM-DD.","example":"2025-11-02","written":false},{"name":"report","label":"Report","help":"daily (15-minute counts) or monthly (daily totals). Default daily.","example":"daily","written":false}]}},"incidents":[]}