5 Days of Daily Forecasts

get

5 Days of Daily Forecasts

Returns an array of daily forecasts for the next 5 days for a specific location. Forecast searches require a location key. Please use the Locations API to obtain the location key for your desired location. By default, a truncated version of the hourly forecast data is returned. The full object can be obtained by passing "details=true" into the url string.

Resource URL

http://dataservice.accuweather.com /forecasts/v1/daily/5day/{locationKey}

Query Parameters


Name Values Description
apikey
(required)

Provided API Key

language

String indicating the language in which to return the resource

details

Boolean value specifies whether or not to include full details in the response.

metric

Boolean value specifies whether or not to display metric values.


Request Body

locationKey Unique ID used to search for a specific location true

HTTP Basic

OAuth 2.0

API Key

Reset

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

Response Error Details

  • HTTP Code
    Error Code
    Description
  • 400
    400

    Request had bad syntax or the parameters supplied were invalid

  • 401
    401

    Unauthorized. API authorization failed

  • 403
    403

    Unauthorized. You do not have permission to access this endpoint

  • 404
    404

    Server has not found a route matching the given URI

  • 500
    500

    Server encountered an unexpected condition which prevented it from fulfilling the request

Working...

Response Parameters

Parameter Type Description
Headline.EffectiveDate string DateTime, displayed in ISO8601 format, when the Headline is in effect.
Headline.EffectiveEpochDate int64 Effective Date of the headline, displayed as the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT).
Headline.Severity int32 Severity of the headline, displayed as an integer. The lower the number, the greater the severity.
Headline.Text string Text of the headline. Displayed in the language specified by language code in URL.
Headline.Category string Category of the headline.
Headline.EndDate string DateTime, displayed in ISO8601 format, when the Headline expires. May be NULL.
Headline.EndEpochDate int64 End Date of the headline, displayed as the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT).
Headline.MobileLink string Link to the extended forecast for the requested location on AccuWeather`s mobile site.
Headline.Link string Link to the extended forecast for the requested location on AccuWeather`s web site.
DailyForecasts.Date string DateTime of the forecast, displayed in ISO8601 format.
DailyForecasts.EpochDate int64 Date of the forecast, displayed as the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT).
DailyForecasts.Sun.Rise string Sun rise displayed in ISO8601 format.
DailyForecasts.Sun.EpochRise int64 Sun rise displayed as the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT).
DailyForecasts.Sun.Set string Sun set displayed in ISO8601 format.
DailyForecasts.Sun.EpochSet int64 Sun set displayed as the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT).
DailyForecasts.Moon.Rise string Moon rise displayed in ISO8601 format.
DailyForecasts.Moon.EpochRise int64 Moon rise displayed as the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT).
DailyForecasts.Moon.Set string Moon set displayed in ISO8601 format.
DailyForecasts.Moon.EpochSet int64 Moon set displayed as the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT).
DailyForecasts.Moon.Phase string Moon phase.
DailyForecasts.Moon.Age int32 The number of days since the new moon.
DailyForecasts.Temperature.Minimum.Value double Rounded value in specified units. May be NULL.
DailyForecasts.Temperature.Minimum.Unit string Type of unit.
DailyForecasts.Temperature.Minimum.UnitType int32 Numeric ID associated with the type of unit being displayed.
DailyForecasts.Temperature.Maximum.Value double Rounded value in specified units. May be NULL.
DailyForecasts.Temperature.Maximum.Unit string Type of unit.
DailyForecasts.Temperature.Maximum.UnitType int32 Numeric ID associated with the type of unit being displayed.
DailyForecasts.RealFeelTemperature.Minimum.Value double Rounded value in specified units. May be NULL.
DailyForecasts.RealFeelTemperature.Minimum.Unit string Type of unit.
DailyForecasts.RealFeelTemperature.Minimum.UnitType int32 Numeric ID associated with the type of unit being displayed.
DailyForecasts.RealFeelTemperature.Maximum.Value double Rounded value in specified units. May be NULL.
DailyForecasts.RealFeelTemperature.Maximum.Unit string Type of unit.
DailyForecasts.RealFeelTemperature.Maximum.UnitType int32 Numeric ID associated with the type of unit being displayed.
DailyForecasts.RealFeelTemperatureShade.Minimum.Value double Rounded value in specified units. May be NULL.
DailyForecasts.RealFeelTemperatureShade.Minimum.Unit string Type of unit.
DailyForecasts.RealFeelTemperatureShade.Minimum.UnitType int32 Numeric ID associated with the type of unit being displayed.
DailyForecasts.RealFeelTemperatureShade.Maximum.Value double Rounded value in specified units. May be NULL.
DailyForecasts.RealFeelTemperatureShade.Maximum.Unit string Type of unit.
DailyForecasts.RealFeelTemperatureShade.Maximum.UnitType int32 Numeric ID associated with the type of unit being displayed.
DailyForecasts.HoursOfSun float Number of hours of sun. May be NULL.
DailyForecasts.DegreeDaySummary.Heating.Value double Number of degrees that the mean temperature is below 65 degrees F. Displayed in specified units. May be NULL.
DailyForecasts.DegreeDaySummary.Heating.Unit string Type of unit.
DailyForecasts.DegreeDaySummary.Heating.UnitType int32 Numeric ID associated with the type of unit being displayed.
DailyForecasts.DegreeDaySummary.Cooling.Value double Number of degrees that the mean temperature is above 65 degrees F. Displayed in specified units. May be NULL.
DailyForecasts.DegreeDaySummary.Cooling.Unit string Type of unit.
DailyForecasts.DegreeDaySummary.Cooling.UnitType int32 Numeric ID associated with the type of unit being displayed.
DailyForecasts.AirAndPollen.Name string Name of the pollen or air pollutant.
DailyForecasts.AirAndPollen.Value int32 Value of the pollutant. Values associated with mold, grass, weed, and tree are displayed in parts per cubic meter. Air quality and UV index are indices and are unitless. May be NULL.
DailyForecasts.AirAndPollen.Category string Category of the pollution. (low, high, good, moderate, unhealthy, hazardous)
DailyForecasts.AirAndPollen.CategoryValue int32 Value associated with the category. These values range from 1 to 6, with 1 implying good conditions and 6 implying hazardous conditions.
DailyForecasts.AirAndPollen.Type string Only exists for air quality. Examples include ozone and particle pollution.
DailyForecasts.Day.Icon int32 Numeric value representing an icon that matches the forecast.
DailyForecasts.Day.IconPhrase string Phrase description of the icon.
DailyForecasts.Day.LocalSource.Id int32 Numeric identifier, unique to the local data provider.
DailyForecasts.Day.LocalSource.Name string Name of the local data provider. Name is displayed in the language specified by language code in URL, if available. Otherwise, Name is displayed in English or the language in which the name was provided.
DailyForecasts.Day.LocalSource.WeatherCode string Weather code provided by the local data provider. This weather code allows the forecast to be matched to icons provided by the local data provider instead of AccuWeather icons.
DailyForecasts.Day.ShortPhrase string Phrase description of the forecast. (AccuWeather attempts to keep this phrase under 30 characters in length, but some languages/weather events may result in a phrase exceeding 30 characters.
DailyForecasts.Day.LongPhrase string Phrase description of the forecast. (AccuWeather attempts to keep this phrase under 100 characters in length, but some languages/weather events may result in a phrase exceeding 100 characters.
DailyForecasts.Day.PrecipitationProbability int32 Percent representing the probability of precipitation. May be NULL.
DailyForecasts.Day.ThunderstormProbability int32 Percent representing the probability of a thunderstorm. May be NULL.
DailyForecasts.Day.RainProbability int32 Percent representing the probability of rain. May be NULL.
DailyForecasts.Day.SnowProbability int32 Percent representing the probability of snow. May be NULL.
DailyForecasts.Day.IceProbability int32 Percent representing the probability of ice. May be NULL.
DailyForecasts.Day.Wind.Speed.Value double Rounded value in specified units. May be NULL.
DailyForecasts.Day.Wind.Speed.Unit string Type of unit.
DailyForecasts.Day.Wind.Speed.UnitType int32 Numeric ID associated with the type of unit being displayed.
DailyForecasts.Day.Wind.Direction.Degrees double Wind direction in azimuth degrees (e.g. 180° indicates wind coming from the south).
DailyForecasts.Day.Wind.Direction.Localized string Direction abbreviation in the specified language.
DailyForecasts.Day.Wind.Direction.English string Direction abbreviation in English.
DailyForecasts.Day.WindGust.Speed.Value double Rounded value in specified units. May be NULL.
DailyForecasts.Day.WindGust.Speed.Unit string Type of unit.
DailyForecasts.Day.WindGust.Speed.UnitType int32 Numeric ID associated with the type of unit being displayed.
DailyForecasts.Day.TotalLiquid.Value double Rounded value in specified units. May be NULL.
DailyForecasts.Day.TotalLiquid.Unit string Type of unit.
DailyForecasts.Day.TotalLiquid.UnitType int32 Numeric ID associated with the type of unit being displayed.
DailyForecasts.Day.Rain.Value double Rounded value in specified units. May be NULL.
DailyForecasts.Day.Rain.Unit string Type of unit.
DailyForecasts.Day.Rain.UnitType int32 Numeric ID associated with the type of unit being displayed.
DailyForecasts.Day.Snow.Value double Rounded value in specified units. May be NULL.
DailyForecasts.Day.Snow.Unit string Type of unit.
DailyForecasts.Day.Snow.UnitType int32 Numeric ID associated with the type of unit being displayed.
DailyForecasts.Day.Ice.Value double Rounded value in specified units. May be NULL.
DailyForecasts.Day.Ice.Unit string Type of unit.
DailyForecasts.Day.Ice.UnitType int32 Numeric ID associated with the type of unit being displayed.
DailyForecasts.Day.HoursOfPrecipitation float Number of hours of precipitation of any type.
DailyForecasts.Day.HoursOfRain float Number of hours of rain.
DailyForecasts.Day.CloudCover int32 Percent representing cloud cover.
DailyForecasts.Night.Icon int32 Numeric value representing an icon that matches the forecast.
DailyForecasts.Night.IconPhrase string Phrase description of the icon.
DailyForecasts.Night.LocalSource.Id int32 Numeric identifier, unique to the local data provider.
DailyForecasts.Night.LocalSource.Name string Name of the local data provider. Name is displayed in the language specified by language code in URL, if available. Otherwise, Name is displayed in English or the language in which the name was provided.
DailyForecasts.Night.LocalSource.WeatherCode string Weather code provided by the local data provider. This weather code allows the forecast to be matched to icons provided by the local data provider instead of AccuWeather icons.
DailyForecasts.Night.ShortPhrase string Phrase description of the forecast. (AccuWeather attempts to keep this phrase under 30 characters in length, but some languages/weather events may result in a phrase exceeding 30 characters.
DailyForecasts.Night.LongPhrase string Phrase description of the forecast. (AccuWeather attempts to keep this phrase under 100 characters in length, but some languages/weather events may result in a phrase exceeding 100 characters.
DailyForecasts.Night.PrecipitationProbability int32 Percent representing the probability of precipitation. May be NULL.
DailyForecasts.Night.ThunderstormProbability int32 Percent representing the probability of a thunderstorm. May be NULL.
DailyForecasts.Night.RainProbability int32 Percent representing the probability of rain. May be NULL.
DailyForecasts.Night.SnowProbability int32 Percent representing the probability of snow. May be NULL.
DailyForecasts.Night.IceProbability int32 Percent representing the probability of ice. May be NULL.
DailyForecasts.Night.Wind.Speed object Contains Value, Unit, and UnitType. For details, see DailyForecasts.Day.Wind.Speed.
DailyForecasts.Night.Wind.Direction object Contains Degrees, Localized, and English. For details, see DailyForecasts.Day.Wind.Direction.
DailyForecasts.Night.WindGust.Speed object Contains Value, Unit, and UnitType. For details, see DailyForecasts.Day.WindGust.Speed.
DailyForecasts.Night.TotalLiquid object Contains Value, Unit, and UnitType. For details, see DailyForecasts.Day.TotalLiquid.
DailyForecasts.Night.Rain object Contains Value, Unit, and UnitType. For details, see DailyForecasts.Day.Rain.
DailyForecasts.Night.Snow object Contains Value, Unit, and UnitType. For details, see DailyForecasts.Day.Snow.
DailyForecasts.Night.Ice object Contains Value, Unit, and UnitType. For details, see DailyForecasts.Day.Ice.
DailyForecasts.Night.HoursOfPrecipitation float Number of hours of precipitation of any type.
DailyForecasts.Night.HoursOfRain float Number of hours of rain.
DailyForecasts.Night.CloudCover int32 Percent representing cloud cover.
DailyForecasts.Sources string Forecast sources.
DailyForecasts.MobileLink string Link to the daily forecast for the requested location on AccuWeather`s mobile site.
DailyForecasts.Link string Link to the daily forecast for the requested location on AccuWeather`s web site.