Posted on Tue, 07 Aug 2018 by Roger
Admin AnsweredI would like to know when data becomes available as "history"
For example for a given latlon, can I request hourly data for the past 4 hours? I assume hourly data supplies averages of temp, humidity, wind speed etc.
Thanks
Replies
Hello Roger!
Data becomes "history" as observations come in.
You can request for this data via the hourly historical weather API.
Example (4 hours):
api.weatherbit.io/v2.0/history/hourly?lat=38&lon=-78&start_date=2018-08-07:00&end_date=2018-08-07:04&key=YOUR_API_KEY
Keep in mind that the start/end dates, and dates provided in the response are in UTC time.
Thanks for using our API,
John at Weatherbit
John...
We're currently using "current" data at the moment and our users are concerned that the data is coming from too far away from their lonlat to be useful or accurate enough. It would be good to know where these 40,000 stations are located.
How often do you get data from the 120,000 station that you're using for history? Are there some that only provide data daily, or all provide data hourly, or
Thanks
(1) Every API request returns data from the nearest source station(s), as well as the source station ID's used. (
station
field in the current weather API,sources
field in the historical data API's).(2) You can find a list of every station, geolocation, and reporting frequency on our API metadata page.
(3) ~40,000 stations report hourly, or subhourly. While ~120,000 stations report at least once per day.
Thanks for using our API,
The Weatherbit API Team