Wsdot Highway Cameras API (1.0.0)

Download OpenAPI specification:

Wsdot Highway Cameras API - Washington State Department of Transportation APIs

cameras

Traffic monitoring cameras on Washington state highways.

Search cameras by route and milepost range.

Responses

Request samples

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);

Response samples

Content type
application/json

Example of a successful response from the API (showing first item of 12 total)

[
  • {
    }
]

Get camera details by camera ID.

Responses

Request samples

import { fetchHighwayCameraByCameraId } from 'ws-dottie/wsdot-highway-cameras/core';

const data = await fetchHighwayCameraByCameraId({
  params: {
    "CameraID": 9818
  },
  fetchMode: 'native',
  validate: true
});

console.log(data);

Response samples

Content type
application/json

Example of a successful response from the API

{}

List all highway cameras statewide.

Responses

Request samples

import { fetchHighwayCameras } from 'ws-dottie/wsdot-highway-cameras/core';

const data = await fetchHighwayCameras({
  fetchMode: 'native',
  validate: true
});

console.log(data);

Response samples

Content type
application/json

Example of a successful response from the API (showing first item of 1648 total)

[]