MENU navbar-image

Introduction

This web API provides access to road traffic estimates for Great Britain.

Authenticating requests

This API is not authenticated.

Average Annual Daily Flow

List of Average Annual Daily Flow statistics

Get Average Annual Daily Flow statistics

List of Average Annual Daily Flow statistics

Example request:
curl --request GET \
    --get "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow?page%5Bsize%5D=5" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
import requests
import json

url = 'https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow'
params = {
  'page[size]': '5',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "current_page": 1,
    "data": [
        {
            "id": 1,
            "count_point_id": 51,
            "year": 2000,
            "region_id": 1,
            "local_authority_id": 1,
            "road_name": "A3111",
            "road_category": "PA",
            "road_type": "Major",
            "start_junction_road_name": "Pierhead, Hugh Town",
            "end_junction_road_name": "A3112",
            "easting": 90200,
            "northing": 10585,
            "latitude": "49.91501492",
            "longitude": "-6.31713812",
            "link_length_km": "0.30",
            "link_length_miles": "0.19",
            "estimation_method": "Estimated",
            "estimation_method_detailed": "Estimated using AADF from previous year on this link",
            "pedal_cycles": 105,
            "two_wheeled_motor_vehicles": 87,
            "cars_and_taxis": 837,
            "buses_and_coaches": 25,
            "lgvs": 451,
            "hgvs_2_rigid_axle": 30,
            "hgvs_3_rigid_axle": 0,
            "hgvs_4_or_more_rigid_axle": 0,
            "hgvs_3_or_4_articulated_axle": 0,
            "hgvs_5_articulated_axle": 0,
            "hgvs_6_articulated_axle": 0,
            "all_hgvs": 30,
            "all_motor_vehicles": 1430
        },
        {
            "id": 2,
            "count_point_id": 51,
            "year": 2001,
            "region_id": 1,
            "local_authority_id": 1,
            "road_name": "A3111",
            "road_category": "PA",
            "road_type": "Major",
            "start_junction_road_name": "Pierhead, Hugh Town",
            "end_junction_road_name": "A3112",
            "easting": 90200,
            "northing": 10585,
            "latitude": "49.91501492",
            "longitude": "-6.31713812",
            "link_length_km": "0.30",
            "link_length_miles": "0.19",
            "estimation_method": "Estimated",
            "estimation_method_detailed": "Estimated using AADF from previous year on this link",
            "pedal_cycles": 93,
            "two_wheeled_motor_vehicles": 83,
            "cars_and_taxis": 857,
            "buses_and_coaches": 27,
            "lgvs": 451,
            "hgvs_2_rigid_axle": 28,
            "hgvs_3_rigid_axle": 0,
            "hgvs_4_or_more_rigid_axle": 0,
            "hgvs_3_or_4_articulated_axle": 0,
            "hgvs_5_articulated_axle": 0,
            "hgvs_6_articulated_axle": 0,
            "all_hgvs": 28,
            "all_motor_vehicles": 1446
        },
        {
            "id": 3,
            "count_point_id": 51,
            "year": 2002,
            "region_id": 1,
            "local_authority_id": 1,
            "road_name": "A3111",
            "road_category": "PA",
            "road_type": "Major",
            "start_junction_road_name": "Pierhead, Hugh Town",
            "end_junction_road_name": "A3112",
            "easting": 90200,
            "northing": 10585,
            "latitude": "49.91501492",
            "longitude": "-6.31713812",
            "link_length_km": "0.30",
            "link_length_miles": "0.19",
            "estimation_method": "Estimated",
            "estimation_method_detailed": "Estimated using AADF from previous year on this link",
            "pedal_cycles": 99,
            "two_wheeled_motor_vehicles": 102,
            "cars_and_taxis": 893,
            "buses_and_coaches": 28,
            "lgvs": 467,
            "hgvs_2_rigid_axle": 28,
            "hgvs_3_rigid_axle": 0,
            "hgvs_4_or_more_rigid_axle": 0,
            "hgvs_3_or_4_articulated_axle": 0,
            "hgvs_5_articulated_axle": 0,
            "hgvs_6_articulated_axle": 0,
            "all_hgvs": 28,
            "all_motor_vehicles": 1518
        },
        {
            "id": 4,
            "count_point_id": 51,
            "year": 2003,
            "region_id": 1,
            "local_authority_id": 1,
            "road_name": "A3111",
            "road_category": "PA",
            "road_type": "Major",
            "start_junction_road_name": "Pierhead, Hugh Town",
            "end_junction_road_name": "A3112",
            "easting": 90200,
            "northing": 10585,
            "latitude": "49.91501492",
            "longitude": "-6.31713812",
            "link_length_km": "0.30",
            "link_length_miles": "0.19",
            "estimation_method": "Estimated",
            "estimation_method_detailed": "Estimated using AADF from previous year on this link",
            "pedal_cycles": 83,
            "two_wheeled_motor_vehicles": 131,
            "cars_and_taxis": 926,
            "buses_and_coaches": 29,
            "lgvs": 509,
            "hgvs_2_rigid_axle": 27,
            "hgvs_3_rigid_axle": 0,
            "hgvs_4_or_more_rigid_axle": 0,
            "hgvs_3_or_4_articulated_axle": 0,
            "hgvs_5_articulated_axle": 0,
            "hgvs_6_articulated_axle": 0,
            "all_hgvs": 27,
            "all_motor_vehicles": 1622
        },
        {
            "id": 5,
            "count_point_id": 51,
            "year": 2004,
            "region_id": 1,
            "local_authority_id": 1,
            "road_name": "A3111",
            "road_category": "PA",
            "road_type": "Major",
            "start_junction_road_name": "Pierhead, Hugh Town",
            "end_junction_road_name": "A3112",
            "easting": 90200,
            "northing": 10585,
            "latitude": "49.91501492",
            "longitude": "-6.31713812",
            "link_length_km": "0.30",
            "link_length_miles": "0.19",
            "estimation_method": "Counted",
            "estimation_method_detailed": "Manual count",
            "pedal_cycles": 196,
            "two_wheeled_motor_vehicles": 37,
            "cars_and_taxis": 476,
            "buses_and_coaches": 35,
            "lgvs": 296,
            "hgvs_2_rigid_axle": 77,
            "hgvs_3_rigid_axle": 6,
            "hgvs_4_or_more_rigid_axle": 0,
            "hgvs_3_or_4_articulated_axle": 1,
            "hgvs_5_articulated_axle": 0,
            "hgvs_6_articulated_axle": 0,
            "all_hgvs": 84,
            "all_motor_vehicles": 928
        }
    ],
    "first_page_url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow?page%5Bsize%5D=5&page%5Bnumber%5D=1",
    "from": 1,
    "last_page": 4703,
    "last_page_url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow?page%5Bsize%5D=5&page%5Bnumber%5D=4703",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow?page%5Bsize%5D=5&page%5Bnumber%5D=1",
            "label": "1",
            "active": true
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow?page%5Bsize%5D=5&page%5Bnumber%5D=2",
            "label": "2",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow?page%5Bsize%5D=5&page%5Bnumber%5D=3",
            "label": "3",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow?page%5Bsize%5D=5&page%5Bnumber%5D=4",
            "label": "4",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow?page%5Bsize%5D=5&page%5Bnumber%5D=5",
            "label": "5",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow?page%5Bsize%5D=5&page%5Bnumber%5D=6",
            "label": "6",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow?page%5Bsize%5D=5&page%5Bnumber%5D=7",
            "label": "7",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow?page%5Bsize%5D=5&page%5Bnumber%5D=8",
            "label": "8",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow?page%5Bsize%5D=5&page%5Bnumber%5D=9",
            "label": "9",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow?page%5Bsize%5D=5&page%5Bnumber%5D=10",
            "label": "10",
            "active": false
        },
        {
            "url": null,
            "label": "...",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow?page%5Bsize%5D=5&page%5Bnumber%5D=4702",
            "label": "4702",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow?page%5Bsize%5D=5&page%5Bnumber%5D=4703",
            "label": "4703",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow?page%5Bsize%5D=5&page%5Bnumber%5D=2",
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow?page%5Bsize%5D=5&page%5Bnumber%5D=2",
    "path": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow",
    "per_page": 5,
    "prev_page_url": null,
    "to": 5,
    "total": 23515
}
 

Request   

GET api/average-annual-daily-flow

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

fields   string  optional  

Comma separated list of fields to return in the response.

include   string  optional  

Comma separated list of related entities to return in the response e.g. "countpoint,localauthority"

sort   string  optional  

Comma separated list of fields to sort or, use "-" before a field to sort in reverse order

page[size]   integer  optional  

Example: 5

page[number]   integer  optional  
filter[id]   integer  optional  
filter[count_point_id]   integer  optional  
filter[year]   integer  optional  
filter[region_id]   integer  optional  
filter[local_authority_id]   integer  optional  
filter[road_name]   string  optional  
filter[road_category]   string  optional  
filter[road_type]   string  optional  
filter[start_junction_road_name]   string  optional  
filter[end_junction_road_name]   string  optional  
filter[easting]   integer  optional  
filter[northing]   integer  optional  
filter[latitude]   integer  optional  
filter[longitude]   integer  optional  
filter[link_length_km]   integer  optional  
filter[link_length_miles]   integer  optional  
filter[estimation_method]   string  optional  
filter[estimation_method_detailed]   string  optional  
filter[pedal_cycles]   integer  optional  
filter[two_wheeled_motor_vehicles]   integer  optional  
filter[cars_and_taxis]   integer  optional  
filter[buses_and_coaches]   integer  optional  
filter[lgvs]   integer  optional  
filter[hgvs_2_rigid_axle]   integer  optional  
filter[hgvs_3_rigid_axle]   integer  optional  
filter[hgvs_4_or_more_rigid_axle]   integer  optional  
filter[hgvs_3_or_4_articulated_axle]   integer  optional  
filter[hgvs_5_articulated_axle]   integer  optional  
filter[hgvs_6_articulated_axle]   integer  optional  
filter[all_hgvs]   integer  optional  
filter[all_motor_vehicles]   integer  optional  

Average Annual Daily Flow By Direction

List of Average Annual Daily Flow By Direction statistics

Get Average Annual Daily Flow By Direction statistics

List of Average Annual Daily Flow By Direction statistics

Example request:
curl --request GET \
    --get "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow-by-direction?page%5Bsize%5D=5" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
import requests
import json

url = 'https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow-by-direction'
params = {
  'page[size]': '5',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "current_page": 1,
    "data": [
        {
            "id": 1,
            "count_point_id": 51,
            "year": 2000,
            "region_id": 1,
            "local_authority_id": 1,
            "road_name": "A3111",
            "road_category": "PA",
            "road_type": "Major",
            "start_junction_road_name": "Pierhead, Hugh Town",
            "end_junction_road_name": "A3112",
            "easting": 90200,
            "northing": 10585,
            "latitude": "49.91501492",
            "longitude": "-6.31713812",
            "link_length_km": "0.30",
            "link_length_miles": "0.19",
            "estimation_method": "Estimated",
            "estimation_method_detailed": "Estimated using AADF from previous year on this link",
            "direction_of_travel": "C",
            "pedal_cycles": 105,
            "two_wheeled_motor_vehicles": 87,
            "cars_and_taxis": 837,
            "buses_and_coaches": 25,
            "lgvs": 451,
            "hgvs_2_rigid_axle": 30,
            "hgvs_3_rigid_axle": 0,
            "hgvs_4_or_more_rigid_axle": 0,
            "hgvs_3_or_4_articulated_axle": 0,
            "hgvs_5_articulated_axle": 0,
            "hgvs_6_articulated_axle": 0,
            "all_hgvs": 30,
            "all_motor_vehicles": 1430
        },
        {
            "id": 2,
            "count_point_id": 51,
            "year": 2001,
            "region_id": 1,
            "local_authority_id": 1,
            "road_name": "A3111",
            "road_category": "PA",
            "road_type": "Major",
            "start_junction_road_name": "Pierhead, Hugh Town",
            "end_junction_road_name": "A3112",
            "easting": 90200,
            "northing": 10585,
            "latitude": "49.91501492",
            "longitude": "-6.31713812",
            "link_length_km": "0.30",
            "link_length_miles": "0.19",
            "estimation_method": "Estimated",
            "estimation_method_detailed": "Estimated using AADF from previous year on this link",
            "direction_of_travel": "C",
            "pedal_cycles": 93,
            "two_wheeled_motor_vehicles": 83,
            "cars_and_taxis": 857,
            "buses_and_coaches": 27,
            "lgvs": 451,
            "hgvs_2_rigid_axle": 28,
            "hgvs_3_rigid_axle": 0,
            "hgvs_4_or_more_rigid_axle": 0,
            "hgvs_3_or_4_articulated_axle": 0,
            "hgvs_5_articulated_axle": 0,
            "hgvs_6_articulated_axle": 0,
            "all_hgvs": 28,
            "all_motor_vehicles": 1446
        },
        {
            "id": 3,
            "count_point_id": 51,
            "year": 2002,
            "region_id": 1,
            "local_authority_id": 1,
            "road_name": "A3111",
            "road_category": "PA",
            "road_type": "Major",
            "start_junction_road_name": "Pierhead, Hugh Town",
            "end_junction_road_name": "A3112",
            "easting": 90200,
            "northing": 10585,
            "latitude": "49.91501492",
            "longitude": "-6.31713812",
            "link_length_km": "0.30",
            "link_length_miles": "0.19",
            "estimation_method": "Estimated",
            "estimation_method_detailed": "Estimated using AADF from previous year on this link",
            "direction_of_travel": "C",
            "pedal_cycles": 99,
            "two_wheeled_motor_vehicles": 102,
            "cars_and_taxis": 893,
            "buses_and_coaches": 28,
            "lgvs": 467,
            "hgvs_2_rigid_axle": 28,
            "hgvs_3_rigid_axle": 0,
            "hgvs_4_or_more_rigid_axle": 0,
            "hgvs_3_or_4_articulated_axle": 0,
            "hgvs_5_articulated_axle": 0,
            "hgvs_6_articulated_axle": 0,
            "all_hgvs": 28,
            "all_motor_vehicles": 1518
        },
        {
            "id": 4,
            "count_point_id": 51,
            "year": 2003,
            "region_id": 1,
            "local_authority_id": 1,
            "road_name": "A3111",
            "road_category": "PA",
            "road_type": "Major",
            "start_junction_road_name": "Pierhead, Hugh Town",
            "end_junction_road_name": "A3112",
            "easting": 90200,
            "northing": 10585,
            "latitude": "49.91501492",
            "longitude": "-6.31713812",
            "link_length_km": "0.30",
            "link_length_miles": "0.19",
            "estimation_method": "Estimated",
            "estimation_method_detailed": "Estimated using AADF from previous year on this link",
            "direction_of_travel": "C",
            "pedal_cycles": 83,
            "two_wheeled_motor_vehicles": 131,
            "cars_and_taxis": 926,
            "buses_and_coaches": 29,
            "lgvs": 509,
            "hgvs_2_rigid_axle": 27,
            "hgvs_3_rigid_axle": 0,
            "hgvs_4_or_more_rigid_axle": 0,
            "hgvs_3_or_4_articulated_axle": 0,
            "hgvs_5_articulated_axle": 0,
            "hgvs_6_articulated_axle": 0,
            "all_hgvs": 27,
            "all_motor_vehicles": 1622
        },
        {
            "id": 5,
            "count_point_id": 51,
            "year": 2004,
            "region_id": 1,
            "local_authority_id": 1,
            "road_name": "A3111",
            "road_category": "PA",
            "road_type": "Major",
            "start_junction_road_name": "Pierhead, Hugh Town",
            "end_junction_road_name": "A3112",
            "easting": 90200,
            "northing": 10585,
            "latitude": "49.91501492",
            "longitude": "-6.31713812",
            "link_length_km": "0.30",
            "link_length_miles": "0.19",
            "estimation_method": "Counted",
            "estimation_method_detailed": "Manual count",
            "direction_of_travel": "N",
            "pedal_cycles": 103,
            "two_wheeled_motor_vehicles": 19,
            "cars_and_taxis": 208,
            "buses_and_coaches": 20,
            "lgvs": 128,
            "hgvs_2_rigid_axle": 37,
            "hgvs_3_rigid_axle": 6,
            "hgvs_4_or_more_rigid_axle": 0,
            "hgvs_3_or_4_articulated_axle": 1,
            "hgvs_5_articulated_axle": 0,
            "hgvs_6_articulated_axle": 0,
            "all_hgvs": 44,
            "all_motor_vehicles": 419
        }
    ],
    "first_page_url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow-by-direction?page%5Bsize%5D=5&page%5Bnumber%5D=1",
    "from": 1,
    "last_page": 9213,
    "last_page_url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow-by-direction?page%5Bsize%5D=5&page%5Bnumber%5D=9213",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow-by-direction?page%5Bsize%5D=5&page%5Bnumber%5D=1",
            "label": "1",
            "active": true
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow-by-direction?page%5Bsize%5D=5&page%5Bnumber%5D=2",
            "label": "2",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow-by-direction?page%5Bsize%5D=5&page%5Bnumber%5D=3",
            "label": "3",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow-by-direction?page%5Bsize%5D=5&page%5Bnumber%5D=4",
            "label": "4",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow-by-direction?page%5Bsize%5D=5&page%5Bnumber%5D=5",
            "label": "5",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow-by-direction?page%5Bsize%5D=5&page%5Bnumber%5D=6",
            "label": "6",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow-by-direction?page%5Bsize%5D=5&page%5Bnumber%5D=7",
            "label": "7",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow-by-direction?page%5Bsize%5D=5&page%5Bnumber%5D=8",
            "label": "8",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow-by-direction?page%5Bsize%5D=5&page%5Bnumber%5D=9",
            "label": "9",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow-by-direction?page%5Bsize%5D=5&page%5Bnumber%5D=10",
            "label": "10",
            "active": false
        },
        {
            "url": null,
            "label": "...",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow-by-direction?page%5Bsize%5D=5&page%5Bnumber%5D=9212",
            "label": "9212",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow-by-direction?page%5Bsize%5D=5&page%5Bnumber%5D=9213",
            "label": "9213",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow-by-direction?page%5Bsize%5D=5&page%5Bnumber%5D=2",
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow-by-direction?page%5Bsize%5D=5&page%5Bnumber%5D=2",
    "path": "https://roadtraffic.dft.gov.uk/api/average-annual-daily-flow-by-direction",
    "per_page": 5,
    "prev_page_url": null,
    "to": 5,
    "total": 46062
}
 

Request   

GET api/average-annual-daily-flow-by-direction

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

fields   string  optional  

Comma separated list of fields to return in the response.

include   string  optional  

Comma separated list of related entities to return in the response e.g. "countpoint,localauthority"

sort   string  optional  

Comma separated list of fields to sort or, use "-" before a field to sort in reverse order

page[size]   integer  optional  

Example: 5

page[number]   integer  optional  
filter[id]   integer  optional  
filter[count_point_id]   integer  optional  
filter[year]   integer  optional  
filter[region_id]   integer  optional  
filter[local_authority_id]   integer  optional  
filter[road_name]   string  optional  
filter[road_category]   string  optional  
filter[road_type]   string  optional  
filter[start_junction_road_name]   string  optional  
filter[end_junction_road_name]   string  optional  
filter[easting]   integer  optional  
filter[northing]   integer  optional  
filter[latitude]   integer  optional  
filter[longitude]   integer  optional  
filter[link_length_km]   integer  optional  
filter[link_length_miles]   integer  optional  
filter[estimation_method]   string  optional  
filter[estimation_method_detailed]   string  optional  
filter[direction_of_travel]   string  optional  
filter[pedal_cycles]   integer  optional  
filter[two_wheeled_motor_vehicles]   integer  optional  
filter[cars_and_taxis]   integer  optional  
filter[buses_and_coaches]   integer  optional  
filter[lgvs]   integer  optional  
filter[hgvs_2_rigid_axle]   integer  optional  
filter[hgvs_3_rigid_axle]   integer  optional  
filter[hgvs_4_or_more_rigid_axle]   integer  optional  
filter[hgvs_3_or_4_articulated_axle]   integer  optional  
filter[hgvs_5_articulated_axle]   integer  optional  
filter[hgvs_6_articulated_axle]   integer  optional  
filter[all_hgvs]   integer  optional  
filter[all_motor_vehicles]   integer  optional  

Count Points

List of Count Points

Get Count Points

List of Count Points

Example request:
curl --request GET \
    --get "https://roadtraffic.dft.gov.uk/api/count-points?page%5Bsize%5D=5" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
import requests
import json

url = 'https://roadtraffic.dft.gov.uk/api/count-points'
params = {
  'page[size]': '5',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "current_page": 1,
    "data": [
        {
            "id": 51,
            "count_point_id": 51,
            "aadf_year": 2024,
            "region_id": 1,
            "local_authority_id": 1,
            "road_name": "A3111",
            "road_category": "PA",
            "road_type": "Major",
            "start_junction_road_name": "Pierhead, Hugh Town",
            "end_junction_road_name": "A3112",
            "easting": 90173,
            "northing": 10641,
            "latitude": "49.91550316",
            "longitude": "-6.31755805",
            "link_length_km": "0.30",
            "link_length_miles": "0.19"
        },
        {
            "id": 52,
            "count_point_id": 52,
            "aadf_year": 2024,
            "region_id": 1,
            "local_authority_id": 1,
            "road_name": "A3112",
            "road_category": "PA",
            "road_type": "Major",
            "start_junction_road_name": "A3111",
            "end_junction_road_name": "A3110",
            "easting": 91203,
            "northing": 10217,
            "latitude": "49.91223308",
            "longitude": "-6.30291304",
            "link_length_km": "2.00",
            "link_length_miles": "1.24"
        },
        {
            "id": 53,
            "count_point_id": 53,
            "aadf_year": 2024,
            "region_id": 1,
            "local_authority_id": 1,
            "road_name": "A3111",
            "road_category": "PA",
            "road_type": "Major",
            "start_junction_road_name": "A3112",
            "end_junction_road_name": "A3110",
            "easting": 90782,
            "northing": 10687,
            "latitude": "49.91623084",
            "longitude": "-6.30913635",
            "link_length_km": "1.20",
            "link_length_miles": "0.75"
        },
        {
            "id": 54,
            "count_point_id": 54,
            "aadf_year": 2024,
            "region_id": 1,
            "local_authority_id": 1,
            "road_name": "A3110",
            "road_category": "PA",
            "road_type": "Major",
            "start_junction_road_name": "A3111",
            "end_junction_road_name": "A3112",
            "easting": 91515,
            "northing": 10820,
            "latitude": "49.91780213",
            "longitude": "-6.29906151",
            "link_length_km": "0.30",
            "link_length_miles": "0.19"
        },
        {
            "id": 55,
            "count_point_id": 55,
            "aadf_year": 2024,
            "region_id": 1,
            "local_authority_id": 1,
            "road_name": "A3110",
            "road_category": "PA",
            "road_type": "Major",
            "start_junction_road_name": "A3111",
            "end_junction_road_name": "A3112",
            "easting": 91664,
            "northing": 10833,
            "latitude": "49.91799555",
            "longitude": "-6.29700225",
            "link_length_km": "4.00",
            "link_length_miles": "2.49"
        }
    ],
    "first_page_url": "https://roadtraffic.dft.gov.uk/api/count-points?page%5Bsize%5D=5&page%5Bnumber%5D=1",
    "from": 1,
    "last_page": 200,
    "last_page_url": "https://roadtraffic.dft.gov.uk/api/count-points?page%5Bsize%5D=5&page%5Bnumber%5D=200",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/count-points?page%5Bsize%5D=5&page%5Bnumber%5D=1",
            "label": "1",
            "active": true
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/count-points?page%5Bsize%5D=5&page%5Bnumber%5D=2",
            "label": "2",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/count-points?page%5Bsize%5D=5&page%5Bnumber%5D=3",
            "label": "3",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/count-points?page%5Bsize%5D=5&page%5Bnumber%5D=4",
            "label": "4",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/count-points?page%5Bsize%5D=5&page%5Bnumber%5D=5",
            "label": "5",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/count-points?page%5Bsize%5D=5&page%5Bnumber%5D=6",
            "label": "6",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/count-points?page%5Bsize%5D=5&page%5Bnumber%5D=7",
            "label": "7",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/count-points?page%5Bsize%5D=5&page%5Bnumber%5D=8",
            "label": "8",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/count-points?page%5Bsize%5D=5&page%5Bnumber%5D=9",
            "label": "9",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/count-points?page%5Bsize%5D=5&page%5Bnumber%5D=10",
            "label": "10",
            "active": false
        },
        {
            "url": null,
            "label": "...",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/count-points?page%5Bsize%5D=5&page%5Bnumber%5D=199",
            "label": "199",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/count-points?page%5Bsize%5D=5&page%5Bnumber%5D=200",
            "label": "200",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/count-points?page%5Bsize%5D=5&page%5Bnumber%5D=2",
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": "https://roadtraffic.dft.gov.uk/api/count-points?page%5Bsize%5D=5&page%5Bnumber%5D=2",
    "path": "https://roadtraffic.dft.gov.uk/api/count-points",
    "per_page": 5,
    "prev_page_url": null,
    "to": 5,
    "total": 1000
}
 

Request   

GET api/count-points

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

fields   string  optional  

Comma separated list of fields to return in the response.

include   string  optional  

Comma separated list of related entities to return in the response e.g. "localauthority"

sort   string  optional  

Comma separated list of fields to sort or, use "-" before a field to sort in reverse order

page[size]   integer  optional  

Example: 5

page[number]   integer  optional  
filter[id]   integer  optional  
filter[count_point_id]   integer  optional  
filter[aadf_year]   integer  optional  
filter[region_id]   integer  optional  
filter[local_authority_id]   integer  optional  
filter[road_name]   string  optional  
filter[road_category]   string  optional  
filter[road_type]   string  optional  
filter[start_junction_road_name]   string  optional  
filter[end_junction_road_name]   string  optional  
filter[easting]   integer  optional  
filter[northing]   integer  optional  
filter[latitude]   number  optional  
filter[longitude]   number  optional  
filter[link_length_km]   number  optional  
filter[link_length_miles]   number  optional  

Countries

List of countries used across road traffic statistics

Get Countries

List of Countries and attributes.

Example request:
curl --request GET \
    --get "https://roadtraffic.dft.gov.uk/api/countries" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
import requests
import json

url = 'https://roadtraffic.dft.gov.uk/api/countries'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
content-security-policy: base-uri 'self';connect-src 'self' https://region1.google-analytics.com https://maps.googleapis.com https://places.googleapis.com;font-src 'self' https://fonts.gstatic.com;default-src 'self';form-action 'self';media-src 'self';object-src 'none';script-src 'self' https://www.googletagmanager.com https://region1.google-analytics.com 'nonce-k7eH1W0mEuS2yrphBQVDtzSZefAmVWr3';style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;img-src 'self' data: https://maps.gstatic.com https://www.googletagmanager.com https://streetviewpixels-pa.googleapis.com https://maps.googleapis.com https://mapsresources-pa.googleapis.com https://khmdb0.google.com https://khmdb0.googleapis.com https://khmdb1.google.com https://khmdb1.googleapis.com https://khm.google.com https://khm.googleapis.com https://khm0.google.com https://khm0.googleapis.com https://khm1.google.com https://khm1.googleapis.com https://khms0.google.com https://khms0.googleapis.com https://khms1.google.com https://khms1.googleapis.com https://khms2.google.com https://khms2.googleapis.com https://khms3.google.com https://khms3.googleapis.com https://keyhole-pa.googleapis.com https://googleapis.l.google.com https://clients.l.google.com https://maps.l.google.com https://mt.l.google.com https://khm.l.google.com https://csi.gstatic.com https://geo0.ggpht.com https://geo1.ggpht.com https://geo2.ggpht.com https://geo3.ggpht.com https://lh3.ggpht.com https://lh4.ggpht.com https://lh5.ggpht.com https://lh6.ggpht.com https://cbks0.google.com https://cbks0.googleapis.com https://cbks1.google.com https://cbks1.googleapis.com https://cbks2.google.com https://cbks2.googleapis.com https://cbks3.google.com https://cbks3.googleapis.com https://lh3.googleusercontent.com https://lh4.googleusercontent.com https://lh5.googleusercontent.com https://lh6.googleusercontent.com https://fonts.googleapis.com
x-frame-options: Deny
x-content-type-options: nosniff
access-control-allow-origin: *
 

[
    {
        "id": 1,
        "name": "England",
        "ons_code": "E92000001"
    },
    {
        "id": 6,
        "name": "Scotland",
        "ons_code": "S92000003"
    },
    {
        "id": 7,
        "name": "Wales",
        "ons_code": "W92000004"
    }
]
 

Request   

GET api/countries

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

sort   string  optional  

Comma separated list of fields to sort or, use "-" before a field to sort in reverse order

fields   string  optional  

Comma separated list of fields to return in the response.

filter[id]   integer  optional  
filter[name]   string  optional  
filter[ons_code]   string  optional  

Local authorities

List of local authorities

Local authorities

List of local authorities and their attributes

Example request:
curl --request GET \
    --get "https://roadtraffic.dft.gov.uk/api/local-authorities" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
import requests
import json

url = 'https://roadtraffic.dft.gov.uk/api/local-authorities'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 57
content-security-policy: base-uri 'self';connect-src 'self' https://region1.google-analytics.com https://maps.googleapis.com https://places.googleapis.com;font-src 'self' https://fonts.gstatic.com;default-src 'self';form-action 'self';media-src 'self';object-src 'none';script-src 'self' https://www.googletagmanager.com https://region1.google-analytics.com 'nonce-k7eH1W0mEuS2yrphBQVDtzSZefAmVWr3';style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;img-src 'self' data: https://maps.gstatic.com https://www.googletagmanager.com https://streetviewpixels-pa.googleapis.com https://maps.googleapis.com https://mapsresources-pa.googleapis.com https://khmdb0.google.com https://khmdb0.googleapis.com https://khmdb1.google.com https://khmdb1.googleapis.com https://khm.google.com https://khm.googleapis.com https://khm0.google.com https://khm0.googleapis.com https://khm1.google.com https://khm1.googleapis.com https://khms0.google.com https://khms0.googleapis.com https://khms1.google.com https://khms1.googleapis.com https://khms2.google.com https://khms2.googleapis.com https://khms3.google.com https://khms3.googleapis.com https://keyhole-pa.googleapis.com https://googleapis.l.google.com https://clients.l.google.com https://maps.l.google.com https://mt.l.google.com https://khm.l.google.com https://csi.gstatic.com https://geo0.ggpht.com https://geo1.ggpht.com https://geo2.ggpht.com https://geo3.ggpht.com https://lh3.ggpht.com https://lh4.ggpht.com https://lh5.ggpht.com https://lh6.ggpht.com https://cbks0.google.com https://cbks0.googleapis.com https://cbks1.google.com https://cbks1.googleapis.com https://cbks2.google.com https://cbks2.googleapis.com https://cbks3.google.com https://cbks3.googleapis.com https://lh3.googleusercontent.com https://lh4.googleusercontent.com https://lh5.googleusercontent.com https://lh6.googleusercontent.com https://fonts.googleapis.com
x-frame-options: Deny
x-content-type-options: nosniff
access-control-allow-origin: *
 

[
    {
        "id": 1,
        "name": "Isles of Scilly",
        "region_id": 1,
        "ita_id": null,
        "ons_code": "E06000053"
    },
    {
        "id": 2,
        "name": "Nottinghamshire",
        "region_id": 2,
        "ita_id": null,
        "ons_code": "E10000024"
    },
    {
        "id": 3,
        "name": "Glasgow City",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000049"
    },
    {
        "id": 4,
        "name": "North Lanarkshire",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000050"
    },
    {
        "id": 5,
        "name": "Somerset",
        "region_id": 1,
        "ita_id": null,
        "ons_code": "E06000066"
    },
    {
        "id": 6,
        "name": "Newport",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000022"
    },
    {
        "id": 7,
        "name": "Bridgend",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000013"
    },
    {
        "id": 8,
        "name": "Swansea",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000011"
    },
    {
        "id": 9,
        "name": "Isle of Anglesey",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000001"
    },
    {
        "id": 10,
        "name": "Gwynedd",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000002"
    },
    {
        "id": 11,
        "name": "Conwy",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000003"
    },
    {
        "id": 12,
        "name": "Denbighshire",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000004"
    },
    {
        "id": 13,
        "name": "Monmouthshire",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000021"
    },
    {
        "id": 14,
        "name": "Powys",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000023"
    },
    {
        "id": 15,
        "name": "Carmarthenshire",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000010"
    },
    {
        "id": 16,
        "name": "Pembrokeshire",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000009"
    },
    {
        "id": 17,
        "name": "Neath Port Talbot",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000012"
    },
    {
        "id": 18,
        "name": "The Vale of Glamorgan",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000014"
    },
    {
        "id": 19,
        "name": "Cardiff",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000015"
    },
    {
        "id": 20,
        "name": "Flintshire",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000005"
    },
    {
        "id": 21,
        "name": "Merthyr Tydfil",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000024"
    },
    {
        "id": 22,
        "name": "Rhondda, Cynon, Taff",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000016"
    },
    {
        "id": 23,
        "name": "Ceredigion",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000008"
    },
    {
        "id": 24,
        "name": "Blaenau Gwent",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000019"
    },
    {
        "id": 25,
        "name": "Torfaen",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000020"
    },
    {
        "id": 26,
        "name": "Wrexham",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000006"
    },
    {
        "id": 27,
        "name": "West Lothian",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000040"
    },
    {
        "id": 28,
        "name": "Renfrewshire",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000038"
    },
    {
        "id": 29,
        "name": "City of Edinburgh",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000036"
    },
    {
        "id": 30,
        "name": "Falkirk",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000014"
    },
    {
        "id": 31,
        "name": "Perth & Kinross",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000048"
    },
    {
        "id": 32,
        "name": "Fife",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000047"
    },
    {
        "id": 33,
        "name": "Scottish Borders",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000026"
    },
    {
        "id": 34,
        "name": "East Lothian",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000010"
    },
    {
        "id": 35,
        "name": "Highland",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000017"
    },
    {
        "id": 36,
        "name": "Midlothian",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000019"
    },
    {
        "id": 37,
        "name": "South Lanarkshire",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000029"
    },
    {
        "id": 38,
        "name": "Dumfries & Galloway",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000006"
    },
    {
        "id": 39,
        "name": "East Ayrshire",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000008"
    },
    {
        "id": 40,
        "name": "South Ayrshire",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000028"
    },
    {
        "id": 41,
        "name": "North Ayrshire",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000021"
    },
    {
        "id": 42,
        "name": "Stirling",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000030"
    },
    {
        "id": 43,
        "name": "West Dunbartonshire",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000039"
    },
    {
        "id": 44,
        "name": "Argyll & Bute",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000035"
    },
    {
        "id": 45,
        "name": "Aberdeenshire",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000034"
    },
    {
        "id": 46,
        "name": "Moray",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000020"
    },
    {
        "id": 47,
        "name": "Dundee City",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000042"
    },
    {
        "id": 48,
        "name": "Inverclyde",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000018"
    },
    {
        "id": 49,
        "name": "East Dunbartonshire",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000045"
    },
    {
        "id": 50,
        "name": "Clackmannanshire",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000005"
    },
    {
        "id": 51,
        "name": "Aberdeen City",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000033"
    },
    {
        "id": 52,
        "name": "Angus",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000041"
    },
    {
        "id": 53,
        "name": "Comhairle nan Eilean Siar",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000013"
    },
    {
        "id": 54,
        "name": "Orkney Islands",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000023"
    },
    {
        "id": 55,
        "name": "Shetland Islands",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000027"
    },
    {
        "id": 56,
        "name": "Stockport",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E08000007"
    },
    {
        "id": 57,
        "name": "Barnet",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000003"
    },
    {
        "id": 58,
        "name": "Central Bedfordshire",
        "region_id": 7,
        "ita_id": null,
        "ons_code": "E06000056"
    },
    {
        "id": 59,
        "name": "Northamptonshire",
        "region_id": 2,
        "ita_id": null,
        "ons_code": "E10000021"
    },
    {
        "id": 60,
        "name": "Leicestershire",
        "region_id": 2,
        "ita_id": null,
        "ons_code": "E10000018"
    },
    {
        "id": 61,
        "name": "Derbyshire",
        "region_id": 2,
        "ita_id": null,
        "ons_code": "E10000007"
    },
    {
        "id": 62,
        "name": "Rotherham",
        "region_id": 8,
        "ita_id": null,
        "ons_code": "E08000018"
    },
    {
        "id": 63,
        "name": "Leeds",
        "region_id": 8,
        "ita_id": null,
        "ons_code": "E08000035"
    },
    {
        "id": 64,
        "name": "Medway",
        "region_id": 9,
        "ita_id": null,
        "ons_code": "E06000035"
    },
    {
        "id": 65,
        "name": "Hampshire",
        "region_id": 9,
        "ita_id": null,
        "ons_code": "E10000014"
    },
    {
        "id": 66,
        "name": "Hillingdon",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000017"
    },
    {
        "id": 67,
        "name": "West Berkshire",
        "region_id": 9,
        "ita_id": null,
        "ons_code": "E06000037"
    },
    {
        "id": 68,
        "name": "Wiltshire",
        "region_id": 1,
        "ita_id": null,
        "ons_code": "E06000054"
    },
    {
        "id": 69,
        "name": "Worcestershire",
        "region_id": 10,
        "ita_id": null,
        "ons_code": "E10000034"
    },
    {
        "id": 70,
        "name": "Gloucestershire",
        "region_id": 1,
        "ita_id": null,
        "ons_code": "E10000013"
    },
    {
        "id": 71,
        "name": "Devon",
        "region_id": 1,
        "ita_id": null,
        "ons_code": "E10000008"
    },
    {
        "id": 72,
        "name": "Warwickshire",
        "region_id": 10,
        "ita_id": null,
        "ons_code": "E10000031"
    },
    {
        "id": 73,
        "name": "East Cheshire",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E06000049"
    },
    {
        "id": 74,
        "name": "Warrington",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E06000007"
    },
    {
        "id": 75,
        "name": "Wigan",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E08000010"
    },
    {
        "id": 76,
        "name": "Lancashire",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E10000017"
    },
    {
        "id": 77,
        "name": "Cumbria",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E10000006"
    },
    {
        "id": 78,
        "name": "Hertfordshire",
        "region_id": 7,
        "ita_id": null,
        "ons_code": "E10000015"
    },
    {
        "id": 79,
        "name": "Doncaster",
        "region_id": 8,
        "ita_id": null,
        "ons_code": "E08000017"
    },
    {
        "id": 80,
        "name": "Kent",
        "region_id": 9,
        "ita_id": null,
        "ons_code": "E10000016"
    },
    {
        "id": 81,
        "name": "West Sussex",
        "region_id": 9,
        "ita_id": null,
        "ons_code": "E10000032"
    },
    {
        "id": 82,
        "name": "Portsmouth",
        "region_id": 9,
        "ita_id": null,
        "ons_code": "E06000044"
    },
    {
        "id": 83,
        "name": "Buckinghamshire",
        "region_id": 9,
        "ita_id": null,
        "ons_code": "E06000060"
    },
    {
        "id": 84,
        "name": "Wirral",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E08000015"
    },
    {
        "id": 85,
        "name": "Manchester",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E08000003"
    },
    {
        "id": 86,
        "name": "Bury",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E08000002"
    },
    {
        "id": 87,
        "name": "Calderdale",
        "region_id": 8,
        "ita_id": null,
        "ons_code": "E08000033"
    },
    {
        "id": 88,
        "name": "Wakefield",
        "region_id": 8,
        "ita_id": null,
        "ons_code": "E08000036"
    },
    {
        "id": 89,
        "name": "East Riding of Yorkshire",
        "region_id": 8,
        "ita_id": null,
        "ons_code": "E06000011"
    },
    {
        "id": 90,
        "name": "Salford",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E08000006"
    },
    {
        "id": 91,
        "name": "Trafford",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E08000009"
    },
    {
        "id": 92,
        "name": "Durham",
        "region_id": 11,
        "ita_id": null,
        "ons_code": "E06000047"
    },
    {
        "id": 93,
        "name": "Tower Hamlets",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000030"
    },
    {
        "id": 94,
        "name": "Sunderland",
        "region_id": 11,
        "ita_id": null,
        "ons_code": "E08000024"
    },
    {
        "id": 95,
        "name": "Rochdale",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E08000005"
    },
    {
        "id": 96,
        "name": "Islington",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000019"
    },
    {
        "id": 97,
        "name": "Cambridgeshire",
        "region_id": 7,
        "ita_id": null,
        "ons_code": "E10000003"
    },
    {
        "id": 98,
        "name": "Rutland",
        "region_id": 2,
        "ita_id": null,
        "ons_code": "E06000017"
    },
    {
        "id": 99,
        "name": "Lincolnshire",
        "region_id": 2,
        "ita_id": null,
        "ons_code": "E10000019"
    },
    {
        "id": 100,
        "name": "North Yorkshire",
        "region_id": 8,
        "ita_id": null,
        "ons_code": "E06000065"
    },
    {
        "id": 101,
        "name": "Gateshead",
        "region_id": 11,
        "ita_id": null,
        "ons_code": "E08000037"
    },
    {
        "id": 102,
        "name": "Northumberland",
        "region_id": 11,
        "ita_id": null,
        "ons_code": "E06000057"
    },
    {
        "id": 103,
        "name": "Southwark",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000028"
    },
    {
        "id": 104,
        "name": "Lewisham",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000023"
    },
    {
        "id": 105,
        "name": "Greenwich",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000011"
    },
    {
        "id": 106,
        "name": "Bexley",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000004"
    },
    {
        "id": 107,
        "name": "Lambeth",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000022"
    },
    {
        "id": 108,
        "name": "Wandsworth",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000032"
    },
    {
        "id": 109,
        "name": "Westminster",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000033"
    },
    {
        "id": 110,
        "name": "Kensington and Chelsea",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000020"
    },
    {
        "id": 111,
        "name": "Hounslow",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000018"
    },
    {
        "id": 112,
        "name": "Slough",
        "region_id": 9,
        "ita_id": null,
        "ons_code": "E06000039"
    },
    {
        "id": 113,
        "name": "Wokingham",
        "region_id": 9,
        "ita_id": null,
        "ons_code": "E06000041"
    },
    {
        "id": 114,
        "name": "Reading",
        "region_id": 9,
        "ita_id": null,
        "ons_code": "E06000038"
    },
    {
        "id": 115,
        "name": "Bath and North East Somerset",
        "region_id": 1,
        "ita_id": null,
        "ons_code": "E06000022"
    },
    {
        "id": 116,
        "name": "Shropshire",
        "region_id": 10,
        "ita_id": null,
        "ons_code": "E06000051"
    },
    {
        "id": 117,
        "name": "Staffordshire",
        "region_id": 10,
        "ita_id": null,
        "ons_code": "E10000028"
    },
    {
        "id": 118,
        "name": "Brent",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000005"
    },
    {
        "id": 119,
        "name": "Derby",
        "region_id": 2,
        "ita_id": null,
        "ons_code": "E06000015"
    },
    {
        "id": 120,
        "name": "Luton",
        "region_id": 7,
        "ita_id": null,
        "ons_code": "E06000032"
    },
    {
        "id": 121,
        "name": "Enfield",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000010"
    },
    {
        "id": 122,
        "name": "Hackney",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000012"
    },
    {
        "id": 123,
        "name": "Essex",
        "region_id": 7,
        "ita_id": null,
        "ons_code": "E10000012"
    },
    {
        "id": 124,
        "name": "Redbridge",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000026"
    },
    {
        "id": 125,
        "name": "Waltham Forest",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000031"
    },
    {
        "id": 126,
        "name": "Suffolk",
        "region_id": 7,
        "ita_id": null,
        "ons_code": "E10000029"
    },
    {
        "id": 127,
        "name": "Southend-on-Sea",
        "region_id": 7,
        "ita_id": null,
        "ons_code": "E06000033"
    },
    {
        "id": 128,
        "name": "Thurrock",
        "region_id": 7,
        "ita_id": null,
        "ons_code": "E06000034"
    },
    {
        "id": 129,
        "name": "Peterborough",
        "region_id": 7,
        "ita_id": null,
        "ons_code": "E06000031"
    },
    {
        "id": 130,
        "name": "North Lincolnshire",
        "region_id": 8,
        "ita_id": null,
        "ons_code": "E06000013"
    },
    {
        "id": 131,
        "name": "North East Lincolnshire",
        "region_id": 8,
        "ita_id": null,
        "ons_code": "E06000012"
    },
    {
        "id": 132,
        "name": "Hartlepool",
        "region_id": 11,
        "ita_id": null,
        "ons_code": "E06000001"
    },
    {
        "id": 133,
        "name": "East Sussex",
        "region_id": 9,
        "ita_id": null,
        "ons_code": "E10000011"
    },
    {
        "id": 134,
        "name": "Croydon",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000008"
    },
    {
        "id": 135,
        "name": "Surrey",
        "region_id": 9,
        "ita_id": null,
        "ons_code": "E10000030"
    },
    {
        "id": 136,
        "name": "Brighton and Hove",
        "region_id": 9,
        "ita_id": null,
        "ons_code": "E06000043"
    },
    {
        "id": 137,
        "name": "Southampton",
        "region_id": 9,
        "ita_id": null,
        "ons_code": "E06000045"
    },
    {
        "id": 138,
        "name": "Dorset",
        "region_id": 1,
        "ita_id": null,
        "ons_code": "E10000009"
    },
    {
        "id": 139,
        "name": "Cornwall excluding Isles of Scilly",
        "region_id": 1,
        "ita_id": null,
        "ons_code": "E06000052"
    },
    {
        "id": 140,
        "name": "Stoke-on-Trent",
        "region_id": 10,
        "ita_id": null,
        "ons_code": "E06000021"
    },
    {
        "id": 141,
        "name": "Birmingham",
        "region_id": 10,
        "ita_id": null,
        "ons_code": "E08000025"
    },
    {
        "id": 142,
        "name": "Oxfordshire",
        "region_id": 9,
        "ita_id": null,
        "ons_code": "E10000025"
    },
    {
        "id": 143,
        "name": "South Gloucestershire",
        "region_id": 1,
        "ita_id": null,
        "ons_code": "E06000025"
    },
    {
        "id": 144,
        "name": "Bristol, City of",
        "region_id": 1,
        "ita_id": null,
        "ons_code": "E06000023"
    },
    {
        "id": 145,
        "name": "Camden",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000007"
    },
    {
        "id": 146,
        "name": "Hammersmith and Fulham",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000013"
    },
    {
        "id": 147,
        "name": "Ealing",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000009"
    },
    {
        "id": 148,
        "name": "West Cheshire",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E06000050"
    },
    {
        "id": 149,
        "name": "Wolverhampton",
        "region_id": 10,
        "ita_id": null,
        "ons_code": "E08000031"
    },
    {
        "id": 150,
        "name": "Walsall",
        "region_id": 10,
        "ita_id": null,
        "ons_code": "E08000030"
    },
    {
        "id": 151,
        "name": "Solihull",
        "region_id": 10,
        "ita_id": null,
        "ons_code": "E08000029"
    },
    {
        "id": 152,
        "name": "Coventry",
        "region_id": 10,
        "ita_id": null,
        "ons_code": "E08000026"
    },
    {
        "id": 153,
        "name": "Leicester",
        "region_id": 2,
        "ita_id": null,
        "ons_code": "E06000016"
    },
    {
        "id": 154,
        "name": "Norfolk",
        "region_id": 7,
        "ita_id": null,
        "ons_code": "E10000020"
    },
    {
        "id": 155,
        "name": "Herefordshire, County of",
        "region_id": 10,
        "ita_id": null,
        "ons_code": "E06000019"
    },
    {
        "id": 156,
        "name": "Halton",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E06000006"
    },
    {
        "id": 157,
        "name": "Knowsley",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E08000011"
    },
    {
        "id": 158,
        "name": "St. Helens",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E08000013"
    },
    {
        "id": 159,
        "name": "Sheffield",
        "region_id": 8,
        "ita_id": null,
        "ons_code": "E08000019"
    },
    {
        "id": 160,
        "name": "Bolton",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E08000001"
    },
    {
        "id": 161,
        "name": "Liverpool",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E08000012"
    },
    {
        "id": 162,
        "name": "Oldham",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E08000004"
    },
    {
        "id": 163,
        "name": "Stockton-on-Tees",
        "region_id": 11,
        "ita_id": null,
        "ons_code": "E06000004"
    },
    {
        "id": 164,
        "name": "Darlington",
        "region_id": 11,
        "ita_id": null,
        "ons_code": "E06000005"
    },
    {
        "id": 165,
        "name": "Haringey",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000014"
    },
    {
        "id": 166,
        "name": "South Tyneside",
        "region_id": 11,
        "ita_id": null,
        "ons_code": "E08000023"
    },
    {
        "id": 167,
        "name": "Newham",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000025"
    },
    {
        "id": 168,
        "name": "Barking and Dagenham",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000002"
    },
    {
        "id": 169,
        "name": "Kingston upon Hull, City of",
        "region_id": 8,
        "ita_id": null,
        "ons_code": "E06000010"
    },
    {
        "id": 170,
        "name": "Middlesbrough",
        "region_id": 11,
        "ita_id": null,
        "ons_code": "E06000002"
    },
    {
        "id": 171,
        "name": "Redcar and Cleveland",
        "region_id": 11,
        "ita_id": null,
        "ons_code": "E06000003"
    },
    {
        "id": 172,
        "name": "Newcastle upon Tyne",
        "region_id": 11,
        "ita_id": null,
        "ons_code": "E08000021"
    },
    {
        "id": 173,
        "name": "North Tyneside",
        "region_id": 11,
        "ita_id": null,
        "ons_code": "E08000022"
    },
    {
        "id": 174,
        "name": "City of London",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000001"
    },
    {
        "id": 175,
        "name": "Richmond upon Thames",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000027"
    },
    {
        "id": 176,
        "name": "Bromley",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000006"
    },
    {
        "id": 177,
        "name": "Sutton",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000029"
    },
    {
        "id": 178,
        "name": "Kingston upon Thames",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000021"
    },
    {
        "id": 179,
        "name": "Windsor and Maidenhead",
        "region_id": 9,
        "ita_id": null,
        "ons_code": "E06000040"
    },
    {
        "id": 180,
        "name": "Bracknell Forest",
        "region_id": 9,
        "ita_id": null,
        "ons_code": "E06000036"
    },
    {
        "id": 181,
        "name": "Swindon",
        "region_id": 1,
        "ita_id": null,
        "ons_code": "E06000030"
    },
    {
        "id": 182,
        "name": "Bournemouth",
        "region_id": 1,
        "ita_id": null,
        "ons_code": "E06000028"
    },
    {
        "id": 183,
        "name": "North Somerset",
        "region_id": 1,
        "ita_id": null,
        "ons_code": "E06000024"
    },
    {
        "id": 184,
        "name": "Torbay",
        "region_id": 1,
        "ita_id": null,
        "ons_code": "E06000027"
    },
    {
        "id": 185,
        "name": "Harrow",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000015"
    },
    {
        "id": 186,
        "name": "Bedford",
        "region_id": 7,
        "ita_id": null,
        "ons_code": "E06000055"
    },
    {
        "id": 187,
        "name": "Telford and Wrekin",
        "region_id": 10,
        "ita_id": null,
        "ons_code": "E06000020"
    },
    {
        "id": 188,
        "name": "Nottingham",
        "region_id": 2,
        "ita_id": null,
        "ons_code": "E06000018"
    },
    {
        "id": 189,
        "name": "Dudley",
        "region_id": 10,
        "ita_id": null,
        "ons_code": "E08000027"
    },
    {
        "id": 190,
        "name": "Sandwell",
        "region_id": 10,
        "ita_id": null,
        "ons_code": "E08000028"
    },
    {
        "id": 191,
        "name": "Milton Keynes",
        "region_id": 9,
        "ita_id": null,
        "ons_code": "E06000042"
    },
    {
        "id": 192,
        "name": "Sefton",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E08000014"
    },
    {
        "id": 193,
        "name": "Blackpool",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E06000009"
    },
    {
        "id": 194,
        "name": "Barnsley",
        "region_id": 8,
        "ita_id": null,
        "ons_code": "E08000016"
    },
    {
        "id": 195,
        "name": "Bradford",
        "region_id": 8,
        "ita_id": null,
        "ons_code": "E08000032"
    },
    {
        "id": 196,
        "name": "Tameside",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E08000008"
    },
    {
        "id": 197,
        "name": "Kirklees",
        "region_id": 8,
        "ita_id": null,
        "ons_code": "E08000034"
    },
    {
        "id": 198,
        "name": "Blackburn with Darwen",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E06000008"
    },
    {
        "id": 199,
        "name": "Isle of Wight",
        "region_id": 9,
        "ita_id": null,
        "ons_code": "E06000046"
    },
    {
        "id": 200,
        "name": "Poole",
        "region_id": 1,
        "ita_id": null,
        "ons_code": "E06000029"
    },
    {
        "id": 201,
        "name": "Havering",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000016"
    },
    {
        "id": 202,
        "name": "York",
        "region_id": 8,
        "ita_id": null,
        "ons_code": "E06000014"
    },
    {
        "id": 203,
        "name": "Plymouth",
        "region_id": 1,
        "ita_id": null,
        "ons_code": "E06000026"
    },
    {
        "id": 204,
        "name": "Merton",
        "region_id": 6,
        "ita_id": null,
        "ons_code": "E09000024"
    },
    {
        "id": 205,
        "name": "Caerphilly",
        "region_id": 4,
        "ita_id": null,
        "ons_code": "W06000018"
    },
    {
        "id": 206,
        "name": "East Renfrewshire",
        "region_id": 3,
        "ita_id": null,
        "ons_code": "S12000011"
    },
    {
        "id": 207,
        "name": "Cheshire",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E10000004"
    },
    {
        "id": 208,
        "name": "Bedfordshire",
        "region_id": 7,
        "ita_id": null,
        "ons_code": "E10000001"
    },
    {
        "id": 209,
        "name": "Bournemouth, Christchurch and Poole",
        "region_id": 1,
        "ita_id": null,
        "ons_code": "E06000058"
    },
    {
        "id": 210,
        "name": "Dorset",
        "region_id": 1,
        "ita_id": null,
        "ons_code": "E06000059"
    },
    {
        "id": 211,
        "name": "North Northamptonshire",
        "region_id": 2,
        "ita_id": null,
        "ons_code": "E06000061"
    },
    {
        "id": 212,
        "name": "West Northamptonshire",
        "region_id": 2,
        "ita_id": null,
        "ons_code": "E06000062"
    },
    {
        "id": 213,
        "name": "Cumberland",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E06000063"
    },
    {
        "id": 214,
        "name": "Westmorland and Furness",
        "region_id": 5,
        "ita_id": null,
        "ons_code": "E06000064"
    }
]
 

Request   

GET api/local-authorities

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

fields   string  optional  

Comma separated list of fields to return in the response.

include   string  optional  

Comma separated list of related entities to return in the response e.g. "region"

sort   string  optional  

Comma separated list of fields to sort or, use "-" before a field to sort in reverse order

filter[id]   integer  optional  
filter[name]   string  optional  
filter[region_id]   integer  optional  
filter[ons_code]   string  optional  

Local authority traffic

List of local authority traffic statistics

Local authority traffic

List of local authority traffic statistics and attributes

Example request:
curl --request GET \
    --get "https://roadtraffic.dft.gov.uk/api/local-authority-traffic?page%5Bsize%5D=5" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
import requests
import json

url = 'https://roadtraffic.dft.gov.uk/api/local-authority-traffic'
params = {
  'page[size]': '5',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "current_page": 1,
    "data": [
        {
            "id": 1,
            "local_authority_id": 1,
            "year": 1993,
            "total_link_length_km": 36.01,
            "total_link_length_miles": 22.38,
            "cars_and_taxis": 900000,
            "all_motor_vehicles": 1400000
        },
        {
            "id": 2,
            "local_authority_id": 2,
            "year": 1993,
            "total_link_length_km": 4650.69,
            "total_link_length_miles": 2889.8,
            "cars_and_taxis": 2702600000,
            "all_motor_vehicles": 3368900000
        },
        {
            "id": 3,
            "local_authority_id": 3,
            "year": 1993,
            "total_link_length_km": 1768.54,
            "total_link_length_miles": 1098.92,
            "cars_and_taxis": 1381200000,
            "all_motor_vehicles": 1662600000
        },
        {
            "id": 4,
            "local_authority_id": 4,
            "year": 1993,
            "total_link_length_km": 1606.71,
            "total_link_length_miles": 998.36,
            "cars_and_taxis": 1253500000,
            "all_motor_vehicles": 1547600000
        },
        {
            "id": 5,
            "local_authority_id": 5,
            "year": 1993,
            "total_link_length_km": 6630.33,
            "total_link_length_miles": 4119.9,
            "cars_and_taxis": 2410300000,
            "all_motor_vehicles": 2958200000
        }
    ],
    "first_page_url": "https://roadtraffic.dft.gov.uk/api/local-authority-traffic?page%5Bsize%5D=5&page%5Bnumber%5D=1",
    "from": 1,
    "last_page": 1312,
    "last_page_url": "https://roadtraffic.dft.gov.uk/api/local-authority-traffic?page%5Bsize%5D=5&page%5Bnumber%5D=1312",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/local-authority-traffic?page%5Bsize%5D=5&page%5Bnumber%5D=1",
            "label": "1",
            "active": true
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/local-authority-traffic?page%5Bsize%5D=5&page%5Bnumber%5D=2",
            "label": "2",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/local-authority-traffic?page%5Bsize%5D=5&page%5Bnumber%5D=3",
            "label": "3",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/local-authority-traffic?page%5Bsize%5D=5&page%5Bnumber%5D=4",
            "label": "4",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/local-authority-traffic?page%5Bsize%5D=5&page%5Bnumber%5D=5",
            "label": "5",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/local-authority-traffic?page%5Bsize%5D=5&page%5Bnumber%5D=6",
            "label": "6",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/local-authority-traffic?page%5Bsize%5D=5&page%5Bnumber%5D=7",
            "label": "7",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/local-authority-traffic?page%5Bsize%5D=5&page%5Bnumber%5D=8",
            "label": "8",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/local-authority-traffic?page%5Bsize%5D=5&page%5Bnumber%5D=9",
            "label": "9",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/local-authority-traffic?page%5Bsize%5D=5&page%5Bnumber%5D=10",
            "label": "10",
            "active": false
        },
        {
            "url": null,
            "label": "...",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/local-authority-traffic?page%5Bsize%5D=5&page%5Bnumber%5D=1311",
            "label": "1311",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/local-authority-traffic?page%5Bsize%5D=5&page%5Bnumber%5D=1312",
            "label": "1312",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/local-authority-traffic?page%5Bsize%5D=5&page%5Bnumber%5D=2",
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": "https://roadtraffic.dft.gov.uk/api/local-authority-traffic?page%5Bsize%5D=5&page%5Bnumber%5D=2",
    "path": "https://roadtraffic.dft.gov.uk/api/local-authority-traffic",
    "per_page": 5,
    "prev_page_url": null,
    "to": 5,
    "total": 6560
}
 

Request   

GET api/local-authority-traffic

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

fields   string  optional  

Comma separated list of fields to return in the response.

include   string  optional  

Comma separated list of related entities to return in the response e.g. "localauthority"

sort   string  optional  

Comma separated list of fields to sort or, use "-" before a field to sort in reverse order

page[size]   integer  optional  

Example: 5

page[number]   integer  optional  
filter[id]   integer  optional  
filter[local_authority_id]   integer  optional  
filter[year]   integer  optional  
filter[total_link_length_km]   number  optional  
filter[total_link_length_miles]   number  optional  
filter[cars_and_taxis]   integer  optional  
filter[all_motor_vehicles]   integer  optional  

Raw Counts

List of Raw Counts statistics

Get Raw Counts statistics

List of Raw Counts statistics

Example request:
curl --request GET \
    --get "https://roadtraffic.dft.gov.uk/api/raw-counts?page%5Bsize%5D=5" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
import requests
import json

url = 'https://roadtraffic.dft.gov.uk/api/raw-counts'
params = {
  'page[size]': '5',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "current_page": 1,
    "data": [
        {
            "id": 1,
            "count_point_id": 51,
            "direction_of_travel": "S",
            "year": 2004,
            "count_date": "2004-05-21",
            "hour": 11,
            "region_id": 1,
            "local_authority_id": 1,
            "road_name": "A3111",
            "road_category": "PA",
            "road_type": "Major",
            "start_junction_road_name": "Pierhead, Hugh Town",
            "end_junction_road_name": "A3112",
            "easting": 90200,
            "northing": 10585,
            "latitude": "49.91501492",
            "longitude": "-6.31713812",
            "link_length_km": "0.30",
            "link_length_miles": "0.19",
            "pedal_cycles": 12,
            "two_wheeled_motor_vehicles": 2,
            "cars_and_taxis": 27,
            "buses_and_coaches": 2,
            "lgvs": 16,
            "hgvs_2_rigid_axle": 2,
            "hgvs_3_rigid_axle": 0,
            "hgvs_4_or_more_rigid_axle": 0,
            "hgvs_3_or_4_articulated_axle": 0,
            "hgvs_5_articulated_axle": 0,
            "hgvs_6_articulated_axle": 0,
            "all_hgvs": 2,
            "all_motor_vehicles": 49
        },
        {
            "id": 2,
            "count_point_id": 51,
            "direction_of_travel": "S",
            "year": 2004,
            "count_date": "2004-05-21",
            "hour": 15,
            "region_id": 1,
            "local_authority_id": 1,
            "road_name": "A3111",
            "road_category": "PA",
            "road_type": "Major",
            "start_junction_road_name": "Pierhead, Hugh Town",
            "end_junction_road_name": "A3112",
            "easting": 90200,
            "northing": 10585,
            "latitude": "49.91501492",
            "longitude": "-6.31713812",
            "link_length_km": "0.30",
            "link_length_miles": "0.19",
            "pedal_cycles": 10,
            "two_wheeled_motor_vehicles": 1,
            "cars_and_taxis": 29,
            "buses_and_coaches": 1,
            "lgvs": 13,
            "hgvs_2_rigid_axle": 2,
            "hgvs_3_rigid_axle": 0,
            "hgvs_4_or_more_rigid_axle": 0,
            "hgvs_3_or_4_articulated_axle": 0,
            "hgvs_5_articulated_axle": 0,
            "hgvs_6_articulated_axle": 0,
            "all_hgvs": 2,
            "all_motor_vehicles": 46
        },
        {
            "id": 3,
            "count_point_id": 51,
            "direction_of_travel": "S",
            "year": 2004,
            "count_date": "2004-05-21",
            "hour": 13,
            "region_id": 1,
            "local_authority_id": 1,
            "road_name": "A3111",
            "road_category": "PA",
            "road_type": "Major",
            "start_junction_road_name": "Pierhead, Hugh Town",
            "end_junction_road_name": "A3112",
            "easting": 90200,
            "northing": 10585,
            "latitude": "49.91501492",
            "longitude": "-6.31713812",
            "link_length_km": "0.30",
            "link_length_miles": "0.19",
            "pedal_cycles": 7,
            "two_wheeled_motor_vehicles": 0,
            "cars_and_taxis": 21,
            "buses_and_coaches": 2,
            "lgvs": 23,
            "hgvs_2_rigid_axle": 5,
            "hgvs_3_rigid_axle": 0,
            "hgvs_4_or_more_rigid_axle": 0,
            "hgvs_3_or_4_articulated_axle": 0,
            "hgvs_5_articulated_axle": 0,
            "hgvs_6_articulated_axle": 0,
            "all_hgvs": 5,
            "all_motor_vehicles": 51
        },
        {
            "id": 4,
            "count_point_id": 51,
            "direction_of_travel": "N",
            "year": 2004,
            "count_date": "2004-05-21",
            "hour": 7,
            "region_id": 1,
            "local_authority_id": 1,
            "road_name": "A3111",
            "road_category": "PA",
            "road_type": "Major",
            "start_junction_road_name": "Pierhead, Hugh Town",
            "end_junction_road_name": "A3112",
            "easting": 90200,
            "northing": 10585,
            "latitude": "49.91501492",
            "longitude": "-6.31713812",
            "link_length_km": "0.30",
            "link_length_miles": "0.19",
            "pedal_cycles": 5,
            "two_wheeled_motor_vehicles": 2,
            "cars_and_taxis": 3,
            "buses_and_coaches": 1,
            "lgvs": 13,
            "hgvs_2_rigid_axle": 0,
            "hgvs_3_rigid_axle": 0,
            "hgvs_4_or_more_rigid_axle": 0,
            "hgvs_3_or_4_articulated_axle": 0,
            "hgvs_5_articulated_axle": 0,
            "hgvs_6_articulated_axle": 0,
            "all_hgvs": 0,
            "all_motor_vehicles": 19
        },
        {
            "id": 5,
            "count_point_id": 51,
            "direction_of_travel": "N",
            "year": 2004,
            "count_date": "2004-05-21",
            "hour": 10,
            "region_id": 1,
            "local_authority_id": 1,
            "road_name": "A3111",
            "road_category": "PA",
            "road_type": "Major",
            "start_junction_road_name": "Pierhead, Hugh Town",
            "end_junction_road_name": "A3112",
            "easting": 90200,
            "northing": 10585,
            "latitude": "49.91501492",
            "longitude": "-6.31713812",
            "link_length_km": "0.30",
            "link_length_miles": "0.19",
            "pedal_cycles": 5,
            "two_wheeled_motor_vehicles": 1,
            "cars_and_taxis": 28,
            "buses_and_coaches": 4,
            "lgvs": 4,
            "hgvs_2_rigid_axle": 4,
            "hgvs_3_rigid_axle": 0,
            "hgvs_4_or_more_rigid_axle": 0,
            "hgvs_3_or_4_articulated_axle": 0,
            "hgvs_5_articulated_axle": 0,
            "hgvs_6_articulated_axle": 0,
            "all_hgvs": 4,
            "all_motor_vehicles": 41
        }
    ],
    "first_page_url": "https://roadtraffic.dft.gov.uk/api/raw-counts?page%5Bsize%5D=5&page%5Bnumber%5D=1",
    "from": 1,
    "last_page": 29278,
    "last_page_url": "https://roadtraffic.dft.gov.uk/api/raw-counts?page%5Bsize%5D=5&page%5Bnumber%5D=29278",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/raw-counts?page%5Bsize%5D=5&page%5Bnumber%5D=1",
            "label": "1",
            "active": true
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/raw-counts?page%5Bsize%5D=5&page%5Bnumber%5D=2",
            "label": "2",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/raw-counts?page%5Bsize%5D=5&page%5Bnumber%5D=3",
            "label": "3",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/raw-counts?page%5Bsize%5D=5&page%5Bnumber%5D=4",
            "label": "4",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/raw-counts?page%5Bsize%5D=5&page%5Bnumber%5D=5",
            "label": "5",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/raw-counts?page%5Bsize%5D=5&page%5Bnumber%5D=6",
            "label": "6",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/raw-counts?page%5Bsize%5D=5&page%5Bnumber%5D=7",
            "label": "7",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/raw-counts?page%5Bsize%5D=5&page%5Bnumber%5D=8",
            "label": "8",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/raw-counts?page%5Bsize%5D=5&page%5Bnumber%5D=9",
            "label": "9",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/raw-counts?page%5Bsize%5D=5&page%5Bnumber%5D=10",
            "label": "10",
            "active": false
        },
        {
            "url": null,
            "label": "...",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/raw-counts?page%5Bsize%5D=5&page%5Bnumber%5D=29277",
            "label": "29277",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/raw-counts?page%5Bsize%5D=5&page%5Bnumber%5D=29278",
            "label": "29278",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/raw-counts?page%5Bsize%5D=5&page%5Bnumber%5D=2",
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": "https://roadtraffic.dft.gov.uk/api/raw-counts?page%5Bsize%5D=5&page%5Bnumber%5D=2",
    "path": "https://roadtraffic.dft.gov.uk/api/raw-counts",
    "per_page": 5,
    "prev_page_url": null,
    "to": 5,
    "total": 146388
}
 

Request   

GET api/raw-counts

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

fields   string  optional  

Comma separated list of fields to return in the response.

include   string  optional  

Comma separated list of related entities to return in the response e.g. "countpoint,localauthority,region"

sort   string  optional  

Comma separated list of fields to sort or, use "-" before a field to sort in reverse order

page[size]   integer  optional  

Example: 5

page[number]   integer  optional  
filter[id]   integer  optional  
filter[count_point_id]   integer  optional  
filter[direction_of_travel]   string  optional  
filter[year]   integer  optional  
filter[count_date]   string  optional  
filter[hour]   integer  optional  
filter[region_id]   integer  optional  
filter[local_authority_id]   integer  optional  
filter[road_name]   string  optional  
filter[road_category]   string  optional  
filter[road_type]   string  optional  
filter[start_junction_road_name]   string  optional  
filter[end_junction_road_name]   string  optional  
filter[easting]   integer  optional  
filter[northing]   integer  optional  
filter[latitude]   number  optional  
filter[longitude]   number  optional  
filter[link_length_km]   number  optional  
filter[link_length_miles]   number  optional  
filter[pedal_cycles]   integer  optional  
filter[two_wheeled_motor_vehicles]   integer  optional  
filter[cars_and_taxis]   integer  optional  
filter[buses_and_coaches]   integer  optional  
filter[lgvs]   integer  optional  
filter[hgvs_2_rigid_axle]   integer  optional  
filter[hgvs_3_rigid_axle]   integer  optional  
filter[hgvs_4_or_more_rigid_axle]   integer  optional  
filter[hgvs_3_or_4_articulated_axle]   integer  optional  
filter[hgvs_5_articulated_axle]   integer  optional  
filter[hgvs_6_articulated_axle]   integer  optional  
filter[all_hgvs]   integer  optional  
filter[all_motor_vehicles]   integer  optional  

Regions

List of regions

Get regions

List of regions and attributes

Example request:
curl --request GET \
    --get "https://roadtraffic.dft.gov.uk/api/regions" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
import requests
import json

url = 'https://roadtraffic.dft.gov.uk/api/regions'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 58
content-security-policy: base-uri 'self';connect-src 'self' https://region1.google-analytics.com https://maps.googleapis.com https://places.googleapis.com;font-src 'self' https://fonts.gstatic.com;default-src 'self';form-action 'self';media-src 'self';object-src 'none';script-src 'self' https://www.googletagmanager.com https://region1.google-analytics.com 'nonce-k7eH1W0mEuS2yrphBQVDtzSZefAmVWr3';style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;img-src 'self' data: https://maps.gstatic.com https://www.googletagmanager.com https://streetviewpixels-pa.googleapis.com https://maps.googleapis.com https://mapsresources-pa.googleapis.com https://khmdb0.google.com https://khmdb0.googleapis.com https://khmdb1.google.com https://khmdb1.googleapis.com https://khm.google.com https://khm.googleapis.com https://khm0.google.com https://khm0.googleapis.com https://khm1.google.com https://khm1.googleapis.com https://khms0.google.com https://khms0.googleapis.com https://khms1.google.com https://khms1.googleapis.com https://khms2.google.com https://khms2.googleapis.com https://khms3.google.com https://khms3.googleapis.com https://keyhole-pa.googleapis.com https://googleapis.l.google.com https://clients.l.google.com https://maps.l.google.com https://mt.l.google.com https://khm.l.google.com https://csi.gstatic.com https://geo0.ggpht.com https://geo1.ggpht.com https://geo2.ggpht.com https://geo3.ggpht.com https://lh3.ggpht.com https://lh4.ggpht.com https://lh5.ggpht.com https://lh6.ggpht.com https://cbks0.google.com https://cbks0.googleapis.com https://cbks1.google.com https://cbks1.googleapis.com https://cbks2.google.com https://cbks2.googleapis.com https://cbks3.google.com https://cbks3.googleapis.com https://lh3.googleusercontent.com https://lh4.googleusercontent.com https://lh5.googleusercontent.com https://lh6.googleusercontent.com https://fonts.googleapis.com
x-frame-options: Deny
x-content-type-options: nosniff
access-control-allow-origin: *
 

[
    {
        "id": 1,
        "name": "South West",
        "ons_code": "E12000009",
        "country_id": 1
    },
    {
        "id": 2,
        "name": "East Midlands",
        "ons_code": "E12000004",
        "country_id": 1
    },
    {
        "id": 3,
        "name": "Scotland",
        "ons_code": "S92000003",
        "country_id": 6
    },
    {
        "id": 4,
        "name": "Wales",
        "ons_code": "W92000004",
        "country_id": 7
    },
    {
        "id": 5,
        "name": "North West",
        "ons_code": "E12000002",
        "country_id": 1
    },
    {
        "id": 6,
        "name": "London",
        "ons_code": "E12000007",
        "country_id": 1
    },
    {
        "id": 7,
        "name": "East of England",
        "ons_code": "E12000006",
        "country_id": 1
    },
    {
        "id": 8,
        "name": "Yorkshire and The Humber",
        "ons_code": "E12000003",
        "country_id": 1
    },
    {
        "id": 9,
        "name": "South East",
        "ons_code": "E12000008",
        "country_id": 1
    },
    {
        "id": 10,
        "name": "West Midlands",
        "ons_code": "E12000005",
        "country_id": 1
    },
    {
        "id": 11,
        "name": "North East",
        "ons_code": "E12000001",
        "country_id": 1
    }
]
 

Request   

GET api/regions

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

fields   string  optional  

Comma separated list of fields to return in the response.

include   string  optional  

Comma separated list of related entities to return in the response e.g. "country"

sort   string  optional  

Comma separated list of fields to sort or, use "-" before a field to sort in reverse order

filter[id]   integer  optional  
filter[name]   string  optional  
filter[ons_code]   string  optional  
filter[country_id]   integer  optional  

Region traffic by road type

List of region traffic by road type statistics

Get region traffic by road type

List of region traffic by road type statistics

Example request:
curl --request GET \
    --get "https://roadtraffic.dft.gov.uk/api/region-traffic-by-road-type?page%5Bsize%5D=5" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
import requests
import json

url = 'https://roadtraffic.dft.gov.uk/api/region-traffic-by-road-type'
params = {
  'page[size]': '5',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "current_page": 1,
    "data": [
        {
            "id": 1,
            "year": 1993,
            "region_id": 1,
            "road_category": "TM",
            "total_link_length_km": 301.34,
            "total_link_length_miles": 187.24,
            "all_motor_vehicles": 3465800000
        },
        {
            "id": 2,
            "year": 1993,
            "region_id": 1,
            "road_category": "TA",
            "total_link_length_km": 993.59,
            "total_link_length_miles": 617.39,
            "all_motor_vehicles": 3484700000
        },
        {
            "id": 3,
            "year": 1993,
            "region_id": 1,
            "road_category": "PA",
            "total_link_length_km": 3874.92,
            "total_link_length_miles": 2407.76,
            "all_motor_vehicles": 7794000000
        },
        {
            "id": 4,
            "year": 1993,
            "region_id": 1,
            "road_category": "M",
            "total_link_length_km": 43581.7,
            "total_link_length_miles": 27080.41,
            "all_motor_vehicles": 9112000000
        },
        {
            "id": 5,
            "year": 1993,
            "region_id": 2,
            "road_category": "TM",
            "total_link_length_km": 178.61,
            "total_link_length_miles": 110.98,
            "all_motor_vehicles": 2736700000
        }
    ],
    "first_page_url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-road-type?page%5Bsize%5D=5&page%5Bnumber%5D=1",
    "from": 1,
    "last_page": 325,
    "last_page_url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-road-type?page%5Bsize%5D=5&page%5Bnumber%5D=325",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-road-type?page%5Bsize%5D=5&page%5Bnumber%5D=1",
            "label": "1",
            "active": true
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-road-type?page%5Bsize%5D=5&page%5Bnumber%5D=2",
            "label": "2",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-road-type?page%5Bsize%5D=5&page%5Bnumber%5D=3",
            "label": "3",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-road-type?page%5Bsize%5D=5&page%5Bnumber%5D=4",
            "label": "4",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-road-type?page%5Bsize%5D=5&page%5Bnumber%5D=5",
            "label": "5",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-road-type?page%5Bsize%5D=5&page%5Bnumber%5D=6",
            "label": "6",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-road-type?page%5Bsize%5D=5&page%5Bnumber%5D=7",
            "label": "7",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-road-type?page%5Bsize%5D=5&page%5Bnumber%5D=8",
            "label": "8",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-road-type?page%5Bsize%5D=5&page%5Bnumber%5D=9",
            "label": "9",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-road-type?page%5Bsize%5D=5&page%5Bnumber%5D=10",
            "label": "10",
            "active": false
        },
        {
            "url": null,
            "label": "...",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-road-type?page%5Bsize%5D=5&page%5Bnumber%5D=324",
            "label": "324",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-road-type?page%5Bsize%5D=5&page%5Bnumber%5D=325",
            "label": "325",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-road-type?page%5Bsize%5D=5&page%5Bnumber%5D=2",
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-road-type?page%5Bsize%5D=5&page%5Bnumber%5D=2",
    "path": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-road-type",
    "per_page": 5,
    "prev_page_url": null,
    "to": 5,
    "total": 1623
}
 

Request   

GET api/region-traffic-by-road-type

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

fields   string  optional  

Comma separated list of fields to return in the response.

include   string  optional  

Comma separated list of related entities to return in the response e.g. "region"

sort   string  optional  

Comma separated list of fields to sort or, use "-" before a field to sort in reverse order

page[size]   integer  optional  

Example: 5

page[number]   integer  optional  
filter[id]   integer  optional  
filter[year]   integer  optional  
filter[region_id]   integer  optional  
filter[road_category]   string  optional  
filter[total_link_length_km]   number  optional  
filter[total_link_length_miles]   number  optional  
filter[all_motor_vehicles]   integer  optional  

Region traffic by vehicle type

List of region traffic by vehicle type statistics

Get region traffic by vehicle type

List of region traffic by vehicle type statistics

Example request:
curl --request GET \
    --get "https://roadtraffic.dft.gov.uk/api/region-traffic-by-vehicle-type?page%5Bsize%5D=5" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
import requests
import json

url = 'https://roadtraffic.dft.gov.uk/api/region-traffic-by-vehicle-type'
params = {
  'page[size]': '5',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):


{
    "current_page": 1,
    "data": [
        {
            "id": 1,
            "year": 1993,
            "region_id": 1,
            "total_link_length_km": 48751.55,
            "total_link_length_miles": 30292.81,
            "pedal_cycles": 228000000,
            "two_wheeled_motor_vehicles": 289900000,
            "cars_and_taxis": 19674300000,
            "buses_and_coaches": 245000000,
            "lgvs": 2351700000,
            "all_hgvs": 1295600000,
            "all_motor_vehicles": 23856600000
        },
        {
            "id": 2,
            "year": 1993,
            "region_id": 2,
            "total_link_length_km": 30681.75,
            "total_link_length_miles": 19064.76,
            "pedal_cycles": 199700000,
            "two_wheeled_motor_vehicles": 172800000,
            "cars_and_taxis": 16200200000,
            "buses_and_coaches": 190100000,
            "lgvs": 2082200000,
            "all_hgvs": 1647100000,
            "all_motor_vehicles": 20292400000
        },
        {
            "id": 3,
            "year": 1993,
            "region_id": 3,
            "total_link_length_km": 58532.65,
            "total_link_length_miles": 36370.5,
            "pedal_cycles": 147300000,
            "two_wheeled_motor_vehicles": 126400000,
            "cars_and_taxis": 17677600000,
            "buses_and_coaches": 334300000,
            "lgvs": 2231000000,
            "all_hgvs": 1339900000,
            "all_motor_vehicles": 21709300000
        },
        {
            "id": 4,
            "year": 1993,
            "region_id": 4,
            "total_link_length_km": 32543.5,
            "total_link_length_miles": 20221.59,
            "pedal_cycles": 81700000,
            "two_wheeled_motor_vehicles": 104600000,
            "cars_and_taxis": 11278800000,
            "buses_and_coaches": 156300000,
            "lgvs": 1452700000,
            "all_hgvs": 735200000,
            "all_motor_vehicles": 13727600000
        },
        {
            "id": 5,
            "year": 1993,
            "region_id": 5,
            "total_link_length_km": 35952.6,
            "total_link_length_miles": 22339.91,
            "pedal_cycles": 251400000,
            "two_wheeled_motor_vehicles": 199200000,
            "cars_and_taxis": 23730000000,
            "buses_and_coaches": 339800000,
            "lgvs": 2801800000,
            "all_hgvs": 1834400000,
            "all_motor_vehicles": 28905200000
        }
    ],
    "first_page_url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-vehicle-type?page%5Bsize%5D=5&page%5Bnumber%5D=1",
    "from": 1,
    "last_page": 71,
    "last_page_url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-vehicle-type?page%5Bsize%5D=5&page%5Bnumber%5D=71",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-vehicle-type?page%5Bsize%5D=5&page%5Bnumber%5D=1",
            "label": "1",
            "active": true
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-vehicle-type?page%5Bsize%5D=5&page%5Bnumber%5D=2",
            "label": "2",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-vehicle-type?page%5Bsize%5D=5&page%5Bnumber%5D=3",
            "label": "3",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-vehicle-type?page%5Bsize%5D=5&page%5Bnumber%5D=4",
            "label": "4",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-vehicle-type?page%5Bsize%5D=5&page%5Bnumber%5D=5",
            "label": "5",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-vehicle-type?page%5Bsize%5D=5&page%5Bnumber%5D=6",
            "label": "6",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-vehicle-type?page%5Bsize%5D=5&page%5Bnumber%5D=7",
            "label": "7",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-vehicle-type?page%5Bsize%5D=5&page%5Bnumber%5D=8",
            "label": "8",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-vehicle-type?page%5Bsize%5D=5&page%5Bnumber%5D=9",
            "label": "9",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-vehicle-type?page%5Bsize%5D=5&page%5Bnumber%5D=10",
            "label": "10",
            "active": false
        },
        {
            "url": null,
            "label": "...",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-vehicle-type?page%5Bsize%5D=5&page%5Bnumber%5D=70",
            "label": "70",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-vehicle-type?page%5Bsize%5D=5&page%5Bnumber%5D=71",
            "label": "71",
            "active": false
        },
        {
            "url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-vehicle-type?page%5Bsize%5D=5&page%5Bnumber%5D=2",
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-vehicle-type?page%5Bsize%5D=5&page%5Bnumber%5D=2",
    "path": "https://roadtraffic.dft.gov.uk/api/region-traffic-by-vehicle-type",
    "per_page": 5,
    "prev_page_url": null,
    "to": 5,
    "total": 352
}
 

Request   

GET api/region-traffic-by-vehicle-type

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Query Parameters

fields   string  optional  

Comma separated list of fields to return in the response.

include   string  optional  

Comma separated list of related entities to return in the response e.g. "region"

sort   string  optional  

Comma separated list of fields to sort or, use "-" before a field to sort in reverse order

page[size]   integer  optional  

Example: 5

page[number]   integer  optional  
filter[id]   integer  optional  
filter[year]   integer  optional  
filter[region_id]   integer  optional  
filter[total_link_length_km]   number  optional  
filter[total_link_length_miles]   number  optional  
filter[pedal_cycles]   integer  optional  
filter[two_wheeled_motor_vehicles]   integer  optional  
filter[cars_and_taxis]   integer  optional  
filter[buses_and_coaches]   integer  optional  
filter[lgvs]   integer  optional  
filter[all_hgvs]   integer  optional  
filter[all_motor_vehicles]   integer  optional