{"openapi":"3.1.0","info":{"title":"Traffic Cameras UK API","version":"1.0","description":"Live UK traffic for AI assistants and apps: road status, incidents and roadworks (with carriageway direction where the operator states it), live traffic camera images, speed cameras and one-call journey checks. England, Scotland, Wales, Northern Ireland and London.\n\nEvery answer carries as_of (UK time), its sources and a link to the matching page on trafficcameras.uk. \"No incidents reported\" is only said when the operator's feed is working: check data_health, where incidents_ok false means we may be missing incidents.\n\nJourney durations are free-flow estimates from OpenRouteService, not adjusted for traffic; we have no live journey-time data.\n\nSources: National Highways, Transport for London, Traffic Scotland, Traffic Wales, TrafficWatch NI (camera images Crown copyright, under licence); speed cameras and routes from OpenStreetMap (ODbL). Credit Traffic Cameras UK and link the page.\n\nFor personal and assistant use. Bulk extraction or republishing the data is not allowed; requests are rate limited per address.","contact":{"name":"Traffic Cameras UK","url":"https://trafficcameras.uk/contact"},"termsOfService":"https://trafficcameras.uk/terms"},"servers":[{"url":"https://trafficcameras.uk/api"}],"paths":{"/v1/journey":{"get":{"operationId":"planJourney","summary":"Traffic on a journey","description":"The best single call for \"what's the traffic like from A to B?\". Finds the route, then everything on your side of the road when you'd reach it: incidents and roadworks (worst first, with mile), temporary speed limits, speed cameras, a few live cameras to look at, and feed health.","parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string"},"description":"Town, city, postcode or \"lat,lng\"."},{"name":"to","in":"query","required":true,"schema":{"type":"string"}},{"name":"depart_at","in":"query","schema":{"type":"string","format":"date-time"},"description":"Leaving later? UK time. Counts what will be in force when you get to each point."}],"responses":{"200":{"description":"Route, incidents on your carriageway, cameras, summary.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Not found"},"429":{"description":"Rate limited"},"503":{"description":"Agent access switched off"}}}},"/v1/journey/roads":{"get":{"operationId":"checkRoads","summary":"Traffic on a list of roads","description":"When you already know the roads (e.g. M6,M5): each road's status, worst first.","parameters":[{"name":"roads","in":"query","required":true,"schema":{"type":"string"},"description":"Comma-separated, up to 10."}],"responses":{"200":{"description":"Status per road.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Not found"},"429":{"description":"Rate limited"},"503":{"description":"Agent access switched off"}}}},"/v1/roads/{road}":{"get":{"operationId":"roadStatus","summary":"One road now","description":"Cameras online, incidents and roadworks in force (worst first), full closures, temporary limits, speed cameras, data health, and a quotable summary. Add lat and lng for one stretch.","parameters":[{"name":"road","in":"path","required":true,"schema":{"type":"string"},"description":"m25, a1m, ni-m1, london-westminster, or as written (M25, A1(M))."},{"name":"lat","in":"query","schema":{"type":"number","minimum":49,"maximum":61},"description":"Latitude (WGS84)."},{"name":"lng","in":"query","schema":{"type":"number","minimum":-9,"maximum":3},"description":"Longitude (WGS84)."},{"name":"radius_miles","in":"query","schema":{"type":"number","maximum":25,"default":5}}],"responses":{"200":{"description":"Road status.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Not found"},"429":{"description":"Rate limited"},"503":{"description":"Agent access switched off"}}}},"/v1/roads/{road}/cameras":{"get":{"operationId":"roadCameras","summary":"Cameras on a road","description":"The road's traffic cameras in order, with page_url (link this for people: the camera live on its road page), image_url (the latest picture file, refreshed every few minutes; for display, not as a link) and image_taken_at. Up to 100.","parameters":[{"name":"road","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Cameras.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Not found"},"429":{"description":"Rate limited"},"503":{"description":"Agent access switched off"}}}},"/v1/roads":{"get":{"operationId":"findRoads","summary":"Find a road page","description":"Match a road number or London borough to our road pages. Up to 10.","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Matching roads.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Not found"},"429":{"description":"Rate limited"},"503":{"description":"Agent access switched off"}}}},"/v1/incidents":{"get":{"operationId":"incidents","summary":"Incidents and roadworks","description":"On a road, around a point, or on a road near a point (worst first, then nearest). full_closures counts roads shut, not just lanes.","parameters":[{"name":"road","in":"query","required":false,"schema":{"type":"string"},"description":"Road number or London borough as people write it: M25, A1(M), NI M1, Westminster. With lat and lng as well, only that road near that point."},{"name":"lat","in":"query","schema":{"type":"number","minimum":49,"maximum":61},"description":"Latitude (WGS84)."},{"name":"lng","in":"query","schema":{"type":"number","minimum":-9,"maximum":3},"description":"Longitude (WGS84)."},{"name":"radius_miles","in":"query","schema":{"type":"number","maximum":25,"default":5}}],"responses":{"200":{"description":"Incidents.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Not found"},"429":{"description":"Rate limited"},"503":{"description":"Agent access switched off"}}}},"/v1/cameras":{"get":{"operationId":"camerasNear","summary":"Cameras near a point","description":"Nearest traffic cameras with their latest images, optionally only on one road (\"the A14 near Cambridge\"). Up to 20.","parameters":[{"name":"lat","in":"query","schema":{"type":"number","minimum":49,"maximum":61},"description":"Latitude (WGS84).","required":true},{"name":"lng","in":"query","schema":{"type":"number","minimum":-9,"maximum":3},"description":"Longitude (WGS84).","required":true},{"name":"radius_miles","in":"query","schema":{"type":"number","maximum":10,"default":3}},{"name":"road","in":"query","required":false,"schema":{"type":"string"},"description":"Road number or London borough as people write it: M25, A1(M), NI M1, Westminster. With lat and lng as well, only that road near that point."}],"responses":{"200":{"description":"Cameras.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Not found"},"429":{"description":"Rate limited"},"503":{"description":"Agent access switched off"}}}},"/v1/cameras/{id}":{"get":{"operationId":"camera","summary":"One camera","description":"A camera with its latest image URL and when it was taken.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Camera.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Not found"},"429":{"description":"Rate limited"},"503":{"description":"Agent access switched off"}}}},"/v1/speed-cameras":{"get":{"operationId":"speedCameras","summary":"Speed cameras","description":"Fixed, average speed and red light cameras on a road or near a point, with limits.","parameters":[{"name":"road","in":"query","required":false,"schema":{"type":"string"},"description":"Road number or London borough as people write it: M25, A1(M), NI M1, Westminster. With lat and lng as well, only that road near that point."},{"name":"lat","in":"query","schema":{"type":"number","minimum":49,"maximum":61},"description":"Latitude (WGS84)."},{"name":"lng","in":"query","schema":{"type":"number","minimum":-9,"maximum":3},"description":"Longitude (WGS84)."},{"name":"radius_miles","in":"query","schema":{"type":"number","maximum":10,"default":3}}],"responses":{"200":{"description":"Speed cameras.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Not found"},"429":{"description":"Rate limited"},"503":{"description":"Agent access switched off"}}}},"/v1/status":{"get":{"operationId":"dataStatus","summary":"Data health","description":"Whether each region's camera provider and incident feed are working right now.","parameters":[],"responses":{"200":{"description":"Per-region status.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Not found"},"429":{"description":"Rate limited"},"503":{"description":"Agent access switched off"}}}}}}