16 Day Weather Forecast API (1 day interval)
This API returns a 16 day forecast in 1 day intervals from any point on the planet.
All parameters should be supplied to the Weather API as query string parameters.
Base URL
HTTP: http://api.weatherbit.io/v2.0/forecast/daily
HTTPS: https://api.weatherbit.io/v2.0/forecast/daily
Supported Methods: GET
Request Parameters
key=[key] (REQUIRED)
key
- Your API Key.
lang=[language](optional)
en
- [DEFAULT] Englishar
- Arabicaz
- Azerbaijanibe
- Belarusianbg
- Bulgarianbs
- Bosnianca
- Catalancz
- Czechda
- Danishde
- Germanfi
- Finnishfr
- Frenchel
- Greekes
- Spanishet
- Estonianja
- Japanesehr
- Croationhu
- Hungarianid
- Indonesianit
- Italianis
- Icelandiciw
- Hebrewkw
- Cornishlt
- Lithuaniannb
- Norwegian Bokmålnl
- Dutchpl
- Polishpt
- Portuguesero
- Romanianru
- Russiansk
- Slovaksl
- Sloveniansr
- Serbiansv
- Swedishtr
- Turkishuk
- Ukrainianzh
- Chinese (Simplified)zh-tw
- Chinese (Traditional)
units=[units](optional)
M
- [DEFAULT] Metric (Celsius, m/s, mm)S
- Scientific (Kelvin, m/s, mm)I
- Fahrenheit (F, mph, in)
days=[integer] (optional: return a specific number of forecast days)
16
- [DEFAULT] 16 days
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/daily?lat=47.6061&lon=-122.3328&key=API_KEY
Example Response (JSON):
{
"city_name": "Seattle",
"country_code": "US",
"data": [
{
"app_max_temp": 21.9,
"app_min_temp": 15,
"clouds": 57,
"clouds_hi": 29,
"clouds_low": 53,
"clouds_mid": 33,
"datetime": "2025-09-12",
"dewpt": 14.3,
"high_temp": 22.4,
"low_temp": 13.9,
"max_dhi": null,
"max_temp": 22.4,
"min_temp": 14.7,
"moon_phase": 0.56,
"moon_phase_lunation": 0.7,
"moonrise_ts": 1757736159,
"moonset_ts": 1757713575,
"ozone": 280,
"pop": 0,
"precip": 0,
"pres": 1012,
"rh": 80,
"slp": 1016,
"snow": 0,
"snow_depth": 0,
"sunrise_ts": 1757684620,
"sunset_ts": 1757730455,
"temp": 17.8,
"ts": 1757660460,
"uv": 5,
"valid_date": "2025-09-12",
"vis": 17,
"weather": {
"code": 803,
"description": "Broken clouds",
"icon": "c03d"
},
"wind_cdir": "SW",
"wind_cdir_full": "southwest",
"wind_dir": 228,
"wind_gust_spd": 1.9,
"wind_spd": 1.1
},
{
"app_max_temp": 23.7,
"app_min_temp": 14.2,
"clouds": 58,
"clouds_hi": 94,
"clouds_low": 1,
"clouds_mid": 60,
"datetime": "2025-09-13",
"dewpt": 14.4,
"high_temp": 24.2,
"low_temp": 15.4,
"max_dhi": null,
"max_temp": 24.2,
"min_temp": 13.9,
"moon_phase": 0.44,
"moon_phase_lunation": 0.74,
"moonrise_ts": 1757824611,
"moonset_ts": 1757804078,
"ozone": 282,
"pop": 0,
"precip": 0,
"pres": 1007,
"rh": 80,
"slp": 1011,
"snow": 0,
"snow_depth": 0,
"sunrise_ts": 1757771100,
"sunset_ts": 1757816732,
"temp": 18.2,
"ts": 1757746860,
"uv": 3,
"valid_date": "2025-09-13",
"vis": 18.6,
"weather": {
"code": 803,
"description": "Broken clouds",
"icon": "c03d"
},
"wind_cdir": "SSE",
"wind_cdir_full": "south-southeast",
"wind_dir": 161,
"wind_gust_spd": 2,
"wind_spd": 1.3
}, ...
],
"lat": 47.6061,
"lon": -122.3328,
"state_code": "WA",
"timezone": "America/Los_Angeles"
}
Field Decriptions:
lat:
Latitude (Degrees)lon:
Longitude (Degrees)timezone:
Local IANA Timezonecity_name:
Nearest city namecountry_code:
Country abbreviationstate_code:
State abbreviation/codedata: [
valid_date:
Local date the forecast is valid for in format YYYY-MM-DDts:
Forecast period start unix timestamp (UTC)datetime:
[DEPRECATED - use "valid_date"] Forecast valid date (YYYY-MM-DD)wind_gust_spd:
Wind gust speed (Default m/s)wind_spd:
Wind speed (Default m/s)wind_dir:
Wind direction (degrees)wind_cdir:
Abbreviated wind directionwind_cdir_full:
Verbal wind directiontemp:
Average Temperature (default Celsius)max_temp:
Maximum Temperature - Calculated from Midnight to Midnight local time (default Celsius)min_temp:
Minimum Temperature - Calculated from Midnight to Midnight local time (default Celsius)high_temp:
High Temperature "Day-time High" - Calculated from 7 AM to 7 PM local time (default Celsius)low_temp:
Low Temperature "Night-time Low" - Calculated from 7 PM to 7 AM local (default Celsius)app_max_temp:
Apparent/"Feels Like" temperature at max_temp time (default Celsius)app_min_temp:
Apparent/"Feels Like" temperature at min_temp time (default Celsius)pop:
Probability of Precipitation (%)precip:
Accumulated liquid equivalent precipitation (default mm)snow:
Accumulated snowfall (default mm)snow_depth:
Snow Depth (default mm)pres:
Average pressure (mb)slp:
Average sea level pressure (mb)dewpt:
Average dew point (default Celsius)rh:
Average relative humidity (%)-
weather: {
icon:
Weather icon codecode:
Weather codedescription:
Text weather description
}
clouds_low:
Low-level (~0-3km AGL) cloud coverage (%)clouds_mid:
Mid-level (~3-5km AGL) cloud coverage (%)clouds_hi:
High-level (>5km AGL) cloud coverage (%)clouds:
Average total cloud coverage (%)vis:
Visibility (default KM)max_dhi:
[DEPRECATED] Maximum direct component of solar radiation (W/m^2)uv:
Maximum UV Index (0-11+)ozone:
Average Ozone (Dobson units)moon_phase:
Moon phase illumination fraction (0-1)moon_phase_lunation:
Moon lunation fraction (0 = New moon, 0.50 = Full Moon, 0.75 = Last quarter moon)moonrise_ts:
Moonrise time unix timestamp (UTC)moonset_ts:
Moonset time unix timestamp (UTC)sunrise_ts:
Sunrise time unix timestamp (UTC)sunset_ts:
Sunset time unix timestamp (UTC)... ]