Download OpenAPI specification:
Wsdot Highway Cameras API - Washington State Department of Transportation APIs
import { searchHighwayCamerasByRouteAndMilepost } from 'ws-dottie/wsdot-highway-cameras/core'; const data = await searchHighwayCamerasByRouteAndMilepost({ params: { "StateRoute": "I-5", "StartingMilepost": 10, "EndingMilepost": 20 }, fetchMode: 'native', validate: true }); console.log(data);
Example of a successful response from the API (showing first item of 12 total)
[- {
- "CameraID": 9290,
- "CameraLocation": {
- "Description": null,
- "Direction": "B",
- "Latitude": 45.753907,
- "Longitude": -122.66372,
- "MilePost": 10,
- "RoadName": "I-5"
}, - "CameraOwner": null,
- "Description": null,
- "DisplayLatitude": 45.753907,
- "DisplayLongitude": -122.66372,
- "ImageHeight": 249,
- "ImageWidth": 335,
- "IsActive": true,
- "OwnerURL": null,
- "Region": "SW",
- "SortOrder": 1000,
- "Title": "I-5 at MP 9.7: N of 179th St"
}
]import { fetchHighwayCameraByCameraId } from 'ws-dottie/wsdot-highway-cameras/core'; const data = await fetchHighwayCameraByCameraId({ params: { "CameraID": 9818 }, fetchMode: 'native', validate: true }); console.log(data);
Example of a successful response from the API
{- "CameraID": 9818,
- "CameraLocation": {
- "Description": null,
- "Direction": "W",
- "Latitude": 48.498333,
- "Longitude": -122.6625,
- "MilePost": 1,
- "RoadName": "Airports"
}, - "CameraOwner": "WSDOT Aviation",
- "Description": null,
- "DisplayLatitude": 48.498333,
- "DisplayLongitude": -122.6625,
- "ImageHeight": 208,
- "ImageWidth": 352,
- "IsActive": true,
- "Region": "WA",
- "SortOrder": 5300,
- "Title": "Anacortes Airport Fuel Pump"
}import { fetchHighwayCameras } from 'ws-dottie/wsdot-highway-cameras/core'; const data = await fetchHighwayCameras({ fetchMode: 'native', validate: true }); console.log(data);
Example of a successful response from the API (showing first item of 1648 total)
[- {
- "CameraID": 9818,
- "CameraLocation": {
- "Description": null,
- "Direction": "W",
- "Latitude": 48.498333,
- "Longitude": -122.6625,
- "MilePost": 1,
- "RoadName": "Airports"
}, - "CameraOwner": "WSDOT Aviation",
- "Description": null,
- "DisplayLatitude": 48.498333,
- "DisplayLongitude": -122.6625,
- "ImageHeight": 208,
- "ImageWidth": 352,
- "IsActive": true,
- "Region": "WA",
- "SortOrder": 5300,
- "Title": "Anacortes Airport Fuel Pump"
}
]