Download OpenAPI specification:
Wsdot Highway Alerts API - Washington State Department of Transportation APIs
import { fetchAlerts } from 'ws-dottie/wsdot-highway-alerts/core'; const data = await fetchAlerts({ fetchMode: 'native', validate: true }); console.log(data);
Example of a successful response from the API (showing first item of 118 total)
[- {
- "AlertID": 670961,
- "County": null,
- "EndRoadwayLocation": {
- "Description": null,
- "Direction": "N",
- "Latitude": 48.703758665,
- "Longitude": -122.474705077,
- "MilePost": 250,
- "RoadName": "005"
}, - "EndTime": "2025-11-21T00:00:00.000Z",
- "EventCategory": "Maintenance",
- "EventStatus": "Open",
- "ExtendedDescription": "",
- "HeadlineDescription": "Daily from 8 a.m. to 4 p.m. on Wednesday, Nov. 19 and Thursday, Nov. 20, maintenance crews will close one right lane of northbound Interstate 5 from North Lake Samish Overpass (milepost 246) to State Route 11/Chuckanut Drive (milepost 250) for rock removal.",
- "LastUpdatedTime": "2025-11-13T20:14:26.087Z",
- "Priority": "Medium",
- "Region": "Northwest",
- "StartRoadwayLocation": {
- "Description": null,
- "Direction": "N",
- "Latitude": 48.690337506,
- "Longitude": -122.41057518,
- "MilePost": 246.8,
- "RoadName": "005"
}, - "StartTime": "2025-11-13T20:08:00.000Z"
}
]import { searchAlerts } from 'ws-dottie/wsdot-highway-alerts/core'; const data = await searchAlerts({ params: { "StateRoute": "405", "StartingMilepost": 10, "EndingMilepost": 20, "SearchTimeStart": "2025-11-21", "SearchTimeEnd": "2025-11-22" }, fetchMode: 'native', validate: true }); console.log(data);
Example of a successful response from the API (showing first item of 14 total)
[- {
- "AlertID": 671050,
- "County": null,
- "EndRoadwayLocation": {
- "Description": null,
- "Direction": "S",
- "Latitude": 0,
- "Longitude": 0,
- "MilePost": 0,
- "RoadName": "405"
}, - "EndTime": "2025-11-14T15:22:31.000Z",
- "EventCategory": "Disabled vehicle",
- "EventStatus": "Closed",
- "ExtendedDescription": "",
- "HeadlineDescription": "Cleared 7:22 AM : On I-405 southbound at NE 70th Pl (MP 17) there is a disabled vehicle blocking the right lane. The State Patrol has arrived on the scene.",
- "LastUpdatedTime": "2025-11-14T15:22:31.560Z",
- "Priority": "Highest",
- "Region": "Northwest",
- "StartRoadwayLocation": {
- "Description": null,
- "Direction": "S",
- "Latitude": 47.670427237,
- "Longitude": -122.187174248,
- "MilePost": 17.49,
- "RoadName": "405"
}, - "StartTime": "2025-11-14T14:54:00.000Z"
}
]import { fetchAlertsByRegionId } from 'ws-dottie/wsdot-highway-alerts/core'; const data = await fetchAlertsByRegionId({ params: { "RegionID": 4 }, fetchMode: 'native', validate: true }); console.log(data);
Example of a successful response from the API
[ ]import { fetchAlertsByMapArea } from 'ws-dottie/wsdot-highway-alerts/core'; const data = await fetchAlertsByMapArea({ params: { "MapArea": "Seattle" }, fetchMode: 'native', validate: true }); console.log(data);
Example of a successful response from the API
[- {
- "AlertID": 473325,
- "County": null,
- "EndRoadwayLocation": {
- "Description": null,
- "Direction": "B",
- "Latitude": 0,
- "Longitude": 0,
- "MilePost": 0,
- "RoadName": "005"
}, - "EndTime": null,
- "EventCategory": "Rest Area",
- "EventStatus": "Open",
- "ExtendedDescription": "",
- "HeadlineDescription": "Until further notice - The Interstate 5 Silver Lake Rest Area is closed for maintenance indefinitely. There is no access for recreational vehicle dumping at this location.",
- "LastUpdatedTime": "2023-07-24T22:25:55.483Z",
- "Priority": "High",
- "Region": "Northwest",
- "StartRoadwayLocation": {
- "Description": "SB Scale 39/Silver Lake Rest Area",
- "Direction": "B",
- "Latitude": 47.907026048,
- "Longitude": -122.210954765,
- "MilePost": 188.5,
- "RoadName": "005"
}, - "StartTime": "2021-09-24T13:00:00.000Z"
}
]import { fetchAlertById } from 'ws-dottie/wsdot-highway-alerts/core'; const data = await fetchAlertById({ params: { "AlertID": 468632 }, fetchMode: 'native', validate: true }); console.log(data);
Example of a successful response from the API
{- "AlertID": 468632,
- "County": null,
- "EndRoadwayLocation": {
- "Description": null,
- "Direction": "B",
- "Latitude": 47.6390387,
- "Longitude": -122.220590099,
- "MilePost": 5,
- "RoadName": "520"
}, - "EndTime": null,
- "EventCategory": "Flammable Cargo Restriction",
- "EventStatus": "Closed",
- "ExtendedDescription": "",
- "HeadlineDescription": "Flammable cargo is prohibited on SR 520 eastbound & westbound from Montlake Blvd (MP 1) to 84th Ave NE (MP 5).",
- "LastUpdatedTime": "2025-09-03T04:40:03.430Z",
- "Priority": "High",
- "Region": "Northwest",
- "StartRoadwayLocation": {
- "Description": null,
- "Direction": "B",
- "Latitude": 47.644373883,
- "Longitude": -122.303082155,
- "MilePost": 1,
- "RoadName": "520"
}, - "StartTime": "2021-09-13T13:59:00.000Z"
}import { fetchMapAreas } from 'ws-dottie/wsdot-highway-alerts/core'; const data = await fetchMapAreas({ fetchMode: 'native', validate: true }); console.log(data);
Example of a successful response from the API (showing first item of 51 total)
[- {
- "MapArea": "L2CE",
- "MapAreaDescription": "Eastern"
}
]import { fetchEventCategories } from 'ws-dottie/wsdot-highway-alerts/core'; const data = await fetchEventCategories({ fetchMode: 'native', validate: true }); console.log(data);
Example of a successful response from the API (showing first item of 123 total)
[- ""
]