Download OpenAPI specification:
Wsdot Weather Readings API - Washington State Department of Transportation APIs
import { fetchWeatherReadings } from 'ws-dottie/wsdot-weather-readings/core'; const data = await fetchWeatherReadings({ fetchMode: 'native', validate: true }); console.log(data);
Example of a successful response from the API (showing first item of 131 total)
[- {
- "StationId": "TALPE",
- "StationName": "090ws05226 - Alpental",
- "Latitude": 47.427,
- "Longitude": -121.418,
- "Elevation": 876,
- "ReadingTime": "2025-11-16T01:38:33.000Z",
- "AirTemperature": 8.2,
- "RelativeHumidty": 100,
- "AverageWindSpeed": 3,
- "AverageWindDirection": 355,
- "WindGust": 7,
- "Visibility": 828,
- "PrecipitationIntensity": 0,
- "PrecipitationType": 0,
- "PrecipitationPast1Hour": 0.1,
- "PrecipitationPast3Hours": 0.8,
- "PrecipitationPast6Hours": 2.7,
- "PrecipitationPast12Hours": 6.6,
- "PrecipitationPast24Hours": 20.9,
- "PrecipitationAccumulation": null,
- "BarometricPressure": null,
- "SnowDepth": null,
- "SurfaceMeasurements": [
- {
- "SensorId": 0,
- "SurfaceTemperature": 10,
- "RoadFreezingTemperature": null,
- "RoadSurfaceCondition": 104
}, - {
- "SensorId": 1,
- "SurfaceTemperature": 8.7,
- "RoadFreezingTemperature": null,
- "RoadSurfaceCondition": 105
}
], - "SubSurfaceMeasurements": [
- {
- "SensorId": 0,
- "SubSurfaceTemperature": 6.8
}
]
}
]import { fetchSurfaceMeasurements } from 'ws-dottie/wsdot-weather-readings/core'; const data = await fetchSurfaceMeasurements({ fetchMode: 'native', validate: true }); console.log(data);
Example of a successful response from the API (showing first item of 131 total)
[- { }
]import { fetchSubSurfaceMeasurements } from 'ws-dottie/wsdot-weather-readings/core'; const data = await fetchSubSurfaceMeasurements({ fetchMode: 'native', validate: true }); console.log(data);
Example of a successful response from the API (showing first item of 131 total)
[- { }
]