Download OpenAPI specification:
Wsdot Travel Times API - Washington State Department of Transportation APIs
import { fetchTravelTimes } from 'ws-dottie/wsdot-travel-times/core'; const data = await fetchTravelTimes({ fetchMode: 'native', validate: true }); console.log(data);
Example of a successful response from the API (showing first item of 163 total)
[- {
- "AverageTime": 26,
- "CurrentTime": 26,
- "Description": "Everett to Downtown Seattle using HOV lanes",
- "Distance": 26.72,
- "EndPoint": {
- "Description": "I-5 @ University St in Seattle",
- "Direction": "S",
- "Latitude": 47.609294,
- "Longitude": -122.331759,
- "MilePost": 165.83,
- "RoadName": "005"
}, - "Name": "Everett-Seattle HOV",
- "StartPoint": {
- "Description": "I-5 @ 41st St in Everett",
- "Direction": "S",
- "Latitude": 47.964146,
- "Longitude": -122.199237,
- "MilePost": 192.55,
- "RoadName": "005"
}, - "TimeUpdated": "2025-11-15T17:40:00.000Z",
- "TravelTimeID": 2
}
]import { fetchTravelTimeById } from 'ws-dottie/wsdot-travel-times/core'; const data = await fetchTravelTimeById({ params: { "TravelTimeID": 1 }, fetchMode: 'native', validate: true }); console.log(data);
Example of a successful response from the API
{- "AverageTime": 27,
- "CurrentTime": 26,
- "Description": "Everett to Downtown Seattle",
- "Distance": 26.72,
- "EndPoint": {
- "Description": "I-5 @ University St in Seattle",
- "Direction": "S",
- "Latitude": 47.609294,
- "Longitude": -122.331759,
- "MilePost": 165.83,
- "RoadName": "005"
}, - "Name": "Everett-Seattle",
- "StartPoint": {
- "Description": "I-5 @ 41st St in Everett",
- "Direction": "S",
- "Latitude": 47.964146,
- "Longitude": -122.199237,
- "MilePost": 192.55,
- "RoadName": "005"
}, - "TimeUpdated": "2025-11-15T17:40:00.000Z",
- "TravelTimeID": 1
}