Highways England API
highwaysengland · Data
Highways England API API
Authentication
No authentication requiredFree to use with no key needed.
Sample Requests
GET
Get Site DailyQuality
Get Site DailyQuality
https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/quality/daily?siteId=example&end_date=2024-12-31&start_date=2024-01-01
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/quality/daily?siteId=example&end_date=2024-12-31&start_date=2024-01-01"import requests
params = {
"siteId": "example",
"end_date": "2024-12-31",
"start_date": "2024-01-01"
}
response = requests.get(
"https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/quality/daily",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/quality/daily');
url.searchParams.set('siteId', 'example');
url.searchParams.set('end_date', '2024-12-31');
url.searchParams.set('start_date', '2024-01-01');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/quality/daily")
q := baseURL.Query()
q.Set("siteId", "example")
q.Set("end_date", "2024-12-31")
q.Set("start_date", "2024-01-01")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/quality/daily")
uri.query = URI.encode_www_form({
"siteId" => "example",
"end_date" => "2024-12-31",
"start_date" => "2024-01-01"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/quality/daily?" . http_build_query([
"siteId" => "example",
"end_date" => "2024-12-31",
"start_date" => "2024-01-01"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET
Get Site OverallQuality
Get Site OverallQuality
https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/quality/overall?sites=example&end_date=2024-12-31&start_date=2024-01-01
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/quality/overall?sites=example&end_date=2024-12-31&start_date=2024-01-01"import requests
params = {
"sites": "example",
"end_date": "2024-12-31",
"start_date": "2024-01-01"
}
response = requests.get(
"https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/quality/overall",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/quality/overall');
url.searchParams.set('sites', 'example');
url.searchParams.set('end_date', '2024-12-31');
url.searchParams.set('start_date', '2024-01-01');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/quality/overall")
q := baseURL.Query()
q.Set("sites", "example")
q.Set("end_date", "2024-12-31")
q.Set("start_date", "2024-01-01")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/quality/overall")
uri.query = URI.encode_www_form({
"sites" => "example",
"end_date" => "2024-12-31",
"start_date" => "2024-01-01"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/quality/overall?" . http_build_query([
"sites" => "example",
"end_date" => "2024-12-31",
"start_date" => "2024-01-01"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET
Returns list of areas
Returns list of areas
https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/areas
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/areas"import requests
response = requests.get(
"https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/areas",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/areas';
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/areas"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/areas")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/highwaysengland.co.uk/v1/v{version}/areas";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Highways England API?
Highways England API is a Data API. Developers commonly use data APIs for:
- enriching your app with third-party datasets
- building data pipelines and ETL workflows
- querying and searching large datasets
- powering research, analysis, and reporting tools
- syncing reference data into your own systems
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Highways England API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide