Road traffic open data
API documentation
Road traffic statistics has an open API you can use to access the data without any authentication.
There are currently no rate limits.
The base URL for each endpoint is https://roadtraffic.dft.gov.uk/api/
Most of the endpoints return paginated results, which can be filtered on allowed names. See the API reference for more details about the different records and available filters.
Contact roadtraff.stats@dft.gov.ukif you have any problems or questions that are not covered in this guide.
API reference
GET /average-annual-daily-flow
View all average-annual daily flow (~350,000 records). Results are paginated and the following filters are available:
- count_point_id
- region_id
- local_authority_id
- year
- count_method
- road_name
road_category
/api/average-annual-daily-flow?filter[region_id]=1,3,4&filter[road_category]=TM - json
GET /average-annual-daily-flow-by-direction
View all average-annual daily flow (by direction) (~500,000 records). Results are paginated and the following filters are available:
- count_point_id
- region_id
- local_authority_id
- year
- count_method
- road_name
road_category
/api/average-annual-daily-flow-by-direction?filter[region_id]=1,3,4&filter[road_category]=TM - json
GET /count-points
View all road traffic count point locations (~30,000 records). Results are paginated and the following filters are available:
- region_id
- local_authority_id
- road_name
- road_category
road_type
/api/count-points - json
/api/count-points?filter[region_id]=1,3,4&filter[road_category]=TM - json
GET /count-points/{countpoint-id}
View a road traffic count point location:
GET /local-authorities
View local authorities (United Kingdom), including which region they belong to:
- /api/local-authorities - json
GET /local-authorities/{local-authority-id}
View a local authority, including which region it belongs to:
GET /regions
View regions (United Kingdom), including all local authorities within the region:
- /api/regions - json
GET /road-categories
View all road categories:
GET /raw-counts
View all raw count records (~3.5M records). Raw counts are the actual manual counts taken at count point locations. Results are paginated and the following filters are available:
- count_point_id
- region_id
- local_authority_id
- year
- count_method
- road_name
- road_category
road_type
/api/raw-counts - json
/api/raw-counts?filter[region_id]=7&filter[year]=2010 - json
Contact
Contact the team if you have any questions about the information and data published on this service.
This digital service is built and supported by the road traffic statistics team.
- Email: roadtraff.stats@dft.gov.uk
- Public enquiries: 020 7944 3095