Bad request when searching observation data via stations and timestamp #803
-
I keep receiving a 404 error when attempting to get observations by timestamp. the path works when retrieving the latest observation: https://api.weather.gov/stations/KPDK/observations/latest using a timestamp: https://api.weather.gov/stations/KPDK/observations/2024-03-11T15:00:00-04:00 any help appreciated. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
For the It also just happens that there is a gap in the observations for KPDK in that time. The observation previous to 1500Z occurred at 1153Z and the next one was at 1553Z. |
Beta Was this translation helpful? Give feedback.
For the
/stations/{station}/observations/{time}
call, the time must exactly match the time of a recorded observation. You can use the/stations/{station}/observations/
start
andend
parameters to request a time bracket. The@id
parameters will provide the URL to the individual observation (though the observation will be returned anyway, so you don't have to request it specifically).It also just happens that there is a gap in the observations for KPDK in that time. The observation previous to 1500Z occurred at 1153Z and the next one was at 1553Z.