The Daily Forecast API is sourced from The Weather Company Forecast system. It returns weather forecasts starting on the current day. Your content licensing agreement with TWC determines the number of days returned in the API response and is constrained by the API Key provided to your company.
Forecast Composition: Each forecast day can contain up to two 12-hour temporal segments — day (7am to 7pm) and night (7pm to 7am) — plus one 24-hour daily summary, for up to three forecasts per day. The 24-hour segment is represented by the top-level object; the day and night segments are interlaced within the daypart object.
Note: All wind values are calculated based on wind status 10 meters above ground.
For details on appropriate header values as well as caching and expiration definitions, see the Weather Company Data API Common Usage Guide.
| Package | Endpoint | Aggregate Product Name |
|---|---|---|
| Weather Company Data - Core | v3/wx/forecast/daily/3day | v3-wx-forecast-daily-3day |
| Weather Company Data - Core | v3/wx/forecast/daily/5day | v3-wx-forecast-daily-5day |
| Weather Company Data - Core | v3/wx/forecast/daily/7day | v3-wx-forecast-daily-7day |
| Weather Company Data - Core | v3/wx/forecast/daily/10day | v3-wx-forecast-daily-10day |
| Weather Company Data - Enhanced Forecast | v3/wx/forecast/daily/15day | v3-wx-forecast-daily-15day |
Required: geocode, units, language, format, apiKey
https://api.weather.com/v3/wx/forecast/daily/7day?geocode=33.74,-84.39&format=json&units=e&language=en-US&apiKey=yourApiKey
Required: iataCode, units, language, format, apiKey
https://api.weather.com/v3/wx/forecast/daily/7day?iataCode=DEN&units=e&language=en-US&format=json&apiKey=yourApiKey
Required: icaoCode, units, language, format, apiKey
https://api.weather.com/v3/wx/forecast/daily/7day?icaoCode=KDEN&units=e&language=en-US&format=json&apiKey=yourApiKey
Required: placeid, units, language, format, apiKey
https://api.weather.com/v3/wx/forecast/daily/7day?placeid=327145917e06d09373dd2760425a88622a62d248fd97550eb4883737d8d1173b&units=e&language=en-US&format=json&apiKey=yourApiKey
Required: postalKey, units, language, format, apiKey
https://api.weather.com/v3/wx/forecast/daily/7day?postalKey=81657:US&units=e&language=en-US&format=json&apiKey=yourApiKey
Field names are sorted alphabetically for presentation. This does not represent the sort order of the API response.
| Field | Description | Type | Range | Sample | Nulls |
|---|---|---|---|---|---|
calendarDayTemperatureMax |
Midnight-to-midnight daily maximum temperature for the given day. | [integer] | 82 | Y | |
calendarDayTemperatureMin |
Midnight-to-midnight daily minimum temperature for the given day. | [integer] | 65 | Y | |
dayOfWeek |
Day of week. | [string] | Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday | Thursday | N |
expirationTimeUtc |
Expiration time in UNIX seconds. | [epoch] | 1369252800 | N | |
moonPhase |
Description phrase for the current lunar phase. | [string] | Waning Gibbous | N | |
moonPhaseCode |
3-character short code for lunar phases. | [string] | WNG, WXC, FQ, WNC, LQ, F, WXG, N | WNG | N |
moonPhaseDay |
Day number within monthly lunar cycle. | [integer] | 0 through 29 | 4 | N |
moonriseTimeLocal |
First moonrise in local time; reflects DST. | [ISO] | YYYY-MM-DDTHH:MM:SS-NNNN | 2014-08-20T10:47:59-0500 | Y |
moonriseTimeUtc |
Moonrise time in UNIX epoch value. | [epoch] | 1369252800 | Y | |
moonsetTimeLocal |
First moonset in local time; reflects DST. | [ISO] | YYYY-MM-DDTHH:MM:SS-NNNN | 2014-08-20T10:47:59-0500 | Y |
moonsetTimeUtc |
Moonset time in UNIX epoch value. | [epoch] | 1369252800 | Y | |
narrative |
The narrative forecast for the 24-hour period. | [string] | Up to 256 characters. | A few thunderstorms possible. Lows overnight in the low 60s. | N |
qpf |
Forecasted measurable precipitation (liquid or liquid equivalent) during the 12 or 24 hour period. Inches when units=e, millimeters when units=m. | [decimal] | 0.06 | N | |
qpfIce |
Forecasted measurable precipitation as ice during the 12 or 24 hour period. | [decimal] | 0.03 | Y | |
qpfRain |
Forecasted measurable precipitation as rain during the 12 or 24 hour period. | [decimal] | 0.7 | N | |
qpfSnow |
Forecasted measurable precipitation as snow during the 12 or 24 hour period. Inches when units=e, centimeters when units=m. | [decimal] | 1.3 | N | |
sunriseTimeLocal |
The local time of the sunrise; reflects DST. | [ISO] | YYYY-MM-DDTHH:MM:SS-NNNN | 2014-08-20T10:47:59-0500 | Y |
sunriseTimeUtc |
Sunrise time in UNIX epoch value. | [epoch] | 1369252800 | Y | |
sunsetTimeLocal |
The local time of the sunset; reflects DST. | [ISO] | YYYY-MM-DDTHH:MM:SS-NNNN | 2014-08-20T10:47:59-0500 | Y |
sunsetTimeUtc |
Sunset time in UNIX epoch value. | [epoch] | 1369252800 | Y | |
temperatureMax |
Daily maximum temperature (equivalent to day daypart temperature). | [integer] | 82 | Y | |
temperatureMin |
Daily minimum temperature (equivalent to night daypart temperature). | [integer] | 59 | N | |
validTimeLocal |
Time forecast is valid in local apparent time. | [ISO] | YYYY-MM-DDTHH:MM:SS-NNNN | 2014-08-20T10:47:59-0500 | N |
validTimeUtc |
Time forecast is valid in UNIX seconds. | [epoch] | 1369306800 | N | |
| Daypart Object — day(D) = 7am to 7pm and night(N) = 7pm to 7am | |||||
cloudCover |
Daytime average cloud cover expressed as a percentage. | [integer] | 0 - 100 | 82 | Y |
dayOrNight |
Day or night indicator. | [string] | D, N | D | Y |
daypartName |
The name of a 12 hour daypart, not including day names in the first 48 hours. | [string] | Today, Tonight | Today | Y |
iconCode |
Key to the weather icon lookup that represents the observed weather conditions. | [integer] | 26 | Y | |
iconCodeExtend |
Code representing full set of sensible weather. | [integer] | 3200 | Y | |
narrative (daypart) |
Narrative forecast for the daytime period. | [string] | A few thunderstorms possible. Lows overnight in the low 60s. | Y | |
precipChance |
Maximum probability of precipitation. | [integer] | 20 | Y | |
precipType |
Type of precipitation to display with the probability of precipitation data element. | [string] | rain, snow, precip | rain | Y |
qpf (daypart) |
Forecasted measurable precipitation during the 12-hour forecast period. | [decimal] | 0.04 | Y | |
qualifierPhrase |
A phrase describing special weather criteria. | [string] | Winds could occasionally gust over 70 mph. | Y | |
relativeHumidity |
The relative humidity of the air, as a percentage. | [integer] | 0 - 100 | 83 | Y |
snowRange |
Snow accumulation amount for the 12 hour forecast period. | [string] | <1 - 30+ | 3-5 | Y |
temperature |
Max temperature between 7am and 7pm for daytime, min temperature between 7pm and 7am for nighttime. | [integer] | 81 | Y | |
temperatureHeatIndex |
Apparent temperature representing what the air feels like due to warm temperatures and high humidity. | [integer] | 84 | Y | |
temperatureWindChill |
Apparent temperature representing what the air feels like due to cold temperatures and wind speed. | [integer] | 68 | Y | |
thunderCategory |
Description of probability of thunderstorm activity. | [string] | 0-5 categories from No thunder through High risk of severe thunderstorms | Severe thunderstorms possible | Y |
thunderIndex |
Enumeration of thunderstorm probability for a 12-hour daypart. | [integer] | 0 - 5 | 3 | Y |
uvDescription |
UV Index description. -2 Not Available, -1 No Report, 0-2 Low, 3-5 Moderate, 6-7 High, 8-10 Very High, 11-16 Extreme. | [string] | Not Available, No Report, Low, Moderate, High, Very High, Extreme | Low | Y |
uvIndex |
Maximum UV index for the 12 hour forecast period. | [integer] | 2 | Y | |
windDirection |
Average wind direction in true heading notation. | [integer] | 0 - 359 | 148 | Y |
windDirectionCardinal |
Average wind direction in cardinal notation. | [string] | N, NNE, NE, ENE, E, ESE, SE, SSE, S, SSW, SW, WSW, W, WNW, NW, NNW | SE | Y |
windPhrase |
Phrase describing the wind direction and speed for a 12-hour daypart. | [string] | Winds SSE at 5 to 10 mph. | Y | |
windSpeed |
Forecast of the maximum sustained wind speed over the 12-hour forecast period. | [integer] | 7 | Y | |
wxPhraseLong |
Sensible weather phrase (up to 32 characters for English). | [string] | Heavy Rain/Wind | Y | |
wxPhraseShort |
Sensible weather phrase (up to 12 characters). | [string] | Windy | Y | |
{
"calendarDayTemperatureMax": [88, 88],
"calendarDayTemperatureMin": [70, 62],
"dayOfWeek": ["Saturday", "Sunday"],
"expirationTimeUtc": [1474132620, 1474132620],
"moonPhase": ["Waning Gibbous", "Waning Gibbous"],
"moonPhaseCode": ["WXG", "WXG"],
"moonPhaseDay": ["10", "11"],
"moonriseTimeLocal": ["2016-09-17T20:30:02-0400", "2016-09-18T21:12:36-0400"],
"moonriseTimeUtc": [1474158602, 1474247556],
"moonsetTimeLocal": ["2016-09-17T08:08:29-0400", "2016-09-18T09:16:30-0400"],
"moonsetTimeUtc": [1474114109, 1474204590],
"narrative": [
"Mix of sun and clouds. Highs in the upper 80s and lows in the low 70s.",
"Showers and thunderstorms late. Highs in the upper 80s."
],
"qpf": [0, 0.2],
"qpfIce": [0.0, 0.0],
"qpfRain": [0.0, 0.0],
"qpfSnow": [0, 0],
"sunriseTimeLocal": ["2016-09-17T07:21:26-0400", "2016-09-18T07:22:05-0400"],
"sunriseTimeUtc": [1474111286, 1474197725],
"sunsetTimeLocal": ["2016-09-17T19:39:03-0400", "2016-09-18T19:37:41-0400"],
"sunsetTimeUtc": [1474155543, 1474241861],
"temperatureMax": [88, 88],
"temperatureMin": [70, 71],
"validTimeLocal": ["2016-09-17T07:00:00-0400", "2016-09-18T07:00:00-0400"],
"validTimeUtc": [1474110000, 1474196400],
"daypart": [
{
"cloudCover": [44, 63],
"dayOrNight": ["D", "N"],
"daypartName": ["Today", "Tonight"],
"iconCode": [30, 29],
"iconCodeExtend": [3000, 2900],
"narrative": [
"A mix of clouds and sun. High 88F. Winds SE at 5 to 10 mph.",
"Partly cloudy this evening with more clouds for overnight."
],
"precipChance": [0, 20],
"precipType": ["rain", "precip"],
"qpf": [0, 0],
"qpfIce": [0.0, 0.0],
"qpfRain": [0.0, 0.0],
"qpfSnow": [0, 0],
"qualifierPhrase": [null, "Slight chance of a rain shower."],
"relativeHumidity": [48, 79],
"snowRange": ["", ""],
"temperature": [88, 70],
"temperatureHeatIndex": [90, 86],
"temperatureWindChill": [84, 71],
"thunderCategory": ["No thunder", "No thunder"],
"thunderIndex": [0, 0],
"uvDescription": ["Very High", "Low"],
"uvIndex": [8, 0],
"windDirection": [136, 159],
"windDirectionCardinal": ["SE", "SSE"],
"windPhrase": ["Winds SE at 5 to 10 mph.", "Winds light and variable."],
"windSpeed": [7, 3],
"wxPhraseLong": ["Partly Cloudy", "Partly Cloudy"],
"wxPhraseShort": ["P Cloudy", "P Cloudy"]
}
]
}