Minutely Weather Forecast API - 1 hour
This API returns an accurate 1 hour (60 minute) precipitation forecast for any point on the planet using both radar, and weather model data.
All parameters should be supplied to the Weather API as query string parameters.
Base URL
HTTP: http://api.weatherbit.io/v2.0/forecast/minutely
HTTPS: https://api.weatherbit.io/v2.0/forecast/minutely
Supported Methods: GET
Request Parameters
key=[key] (REQUIRED)
key
- Your API Key.
units=[units](optional)
M
- [DEFAULT] Metric (mm/hr)S
- Scientific (mm/hr)I
- Imperial/Fahrenheit (in/hr)
API Endpoints
Description | Required Parameters | Example(s) |
---|---|---|
Get forecast by lat/lon (Recommended) | lat,lon | &lat=38.123&lon=-78.543 |
Get forecast by city name | city, state(optional), country (optional) |
|
Get forecast by postal code | postal_code, country (optional) | &postal_code=27601&country=US |
Get forecast by Station | station |
|
Get forecast by city id | city_id | &city_id=8953360 |
Example Request:
https://api.weatherbit.io/v2.0/forecast/minutely?city=Raleigh,NC&key=API_KEY&units=I
Example Response (JSON):
{
"city_name":"Raleigh",
"lon":"-78.63861",
"timezone":"America\/New_York",
"lat":"35.7721",
"country_code":"US",
"state_code":"NC",
"data":[
{
"timestamp_utc":"2021-01-16T21:14:00",
"timestamp_local":"2021-01-16T16:14:00",
"ts":1610834100,
"precip":0.103,
"snow":1.028
},
{
"timestamp_utc":"2021-01-16T21:15:00",
"timestamp_local":"2021-01-16T16:15:00",
"ts":1610834100,
"precip":0.009,
"snow":0.850
}, ...
]
}
Field Decriptions:
lat:
Latitude (Degrees).lon:
Longitude (Degrees).timezone:
Local IANA Timezone.city_name:
City name.country_code:
Country abbreviation.state_code:
State abbreviation/code.data: [
ts:
Unix Timestamp at UTC time.timestamp_local:
Timestamp at local time.timestamp_utc:
Timestamp at UTC time.precip:
Liquid Equivalent Precipitation rate (default mm/hr).snow:
Snowfall rate (default mm/hr).... ]