uk highway agency information
Installation
SKILL.md
Query planned closures for a named road on a given date. Scope: England's Strategic Road Network only (motorways and major A-roads managed by National Highways). Data covers up to 14 days ahead.
Convert relative dates ("tonight", "tomorrow", "next Friday") to absolute dates before querying.
Endpoint — no auth required
GET https://services-eu1.arcgis.com/mZXeBXkkZpekxjXT/ArcGIS/rest/services/PublicScheduledRoadClosures/FeatureServer/0/query
Key parameters:
where— e.g.road_number = 'A30' AND scheduledplannedenddate >= timestamp '2026-05-01 00:00:00' AND scheduledplannedstartdate <= timestamp '2026-05-01 23:59:59'
Widen the date range for multi-day queries (e.g. a full week).outFields—description,road_number,eventtype,natureofworks,scheduledplannedstartdate,scheduledplannedenddatereturnGeometry=false,orderByFields=scheduledplannedstartdate,f=json
Timestamps are Unix milliseconds UTC — convert with datetime.fromtimestamp(ms/1000).
If "exceededTransferLimit": true, paginate with resultOffset.