Download OpenAPI specification:
Wsdot Traffic Flow API - Washington State Department of Transportation APIs
import { fetchTrafficFlows } from 'ws-dottie/wsdot-traffic-flow/core'; const data = await fetchTrafficFlows({ fetchMode: 'native', validate: true }); console.log(data);
Example of a successful response from the API (showing first item of 1462 total)
[- {
- "FlowDataID": 2482,
- "FlowReadingValue": 1,
- "FlowStationLocation": {
- "Description": "Homeacres Rd",
- "Direction": "EB",
- "Latitude": 47.978415632,
- "Longitude": -122.174701738,
- "MilePost": 0.68,
- "RoadName": "002"
}, - "Region": "Northwest",
- "StationName": "002es00068",
- "Time": "2025-11-15T17:43:22.000Z"
}
]import { fetchTrafficFlowById } from 'ws-dottie/wsdot-traffic-flow/core'; const data = await fetchTrafficFlowById({ params: { "FlowDataID": 2482 }, fetchMode: 'native', validate: true }); console.log(data);
Example of a successful response from the API
{- "FlowDataID": 2482,
- "FlowReadingValue": 1,
- "FlowStationLocation": {
- "Description": "Homeacres Rd",
- "Direction": "EB",
- "Latitude": 47.978415632,
- "Longitude": -122.174701738,
- "MilePost": 0.68,
- "RoadName": "002"
}, - "Region": "Northwest",
- "StationName": "002es00068",
- "Time": "2025-11-15T17:43:22.000Z"
}