Skip to content

Highways England API API

by highwaysengland.co.uk

No authHTTPSOpen Data
Open documentation ↗

Overview

Looking after England's motorways and major roads

Highways England API is an open data API from highwaysengland.co.uk. It needs no API key. It is served over HTTPS. Its OpenAPI description documents 10 endpoints.

At a glance

Authentication
No auth
HTTPS
Yes
CORS
Unknown
Category
Open Data
Base URL
https://webtris.highwaysengland.co.uk/api
Version
v1
Endpoints
10
Spec updated
2021-01-18

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://webtris.highwaysengland.co.uk/api/vVERSION/areas" \
  -H "Accept: application/json"
JavaScript
const response = await fetch("https://webtris.highwaysengland.co.uk/api/vVERSION/areas", {
  method: "GET",
  headers: {
    "Accept": "application/json",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://webtris.highwaysengland.co.uk/api/vVERSION/areas",
    headers={
    "Accept": "application/json",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/v{version}/areasReturns list of areas
GET/v{version}/areas/{area_Ids}Returns details of selected area
GET/v{version}/quality/dailyGet Site DailyQuality
GET/v{version}/quality/overallGet Site OverallQuality
GET/v{version}/reports/{report_type}Gets the daily report.
GET/v{version}/reports/{start_date}/to/{end_date}/{report_type}Gets the daily report.
GET/v{version}/sitesGet a list of sites
GET/v{version}/sites/{site_Ids}Get selected sites
GET/v{version}/sitetypesReturn list of site types
GET/v{version}/sitetypes/{siteType_Id}/sitesReturns the layer metadata for the LayerId specified.

Questions

Does the Highways England API API need an API key?

No. The Highways England API API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

Does the Highways England API API support HTTPS?

Yes, the Highways England API API is served over HTTPS.

How many endpoints does the Highways England API API have?

Its OpenAPI description lists 10 endpoints in version v1. All of them are shown on this page.

What are alternatives to the Highways England API API?

Other Open Data APIs include Search Services, Wayback API, Wikipedia, Nasdaq Data Link, University of Oslo.

Compare alternatives →

Listed from APIs.guru (CC0).