Daily Forecasts

Learn how to get daily weather forecast information for a specific location.

Overview

The Forecast API allows us to get weather forecast information for a particular location. This API provides detailed weather information, including the temperature readings, air and pollen readings, wind speed, and rain probability during the day and at night.

Daily forecast endpoints

In this lesson, we learn how to retrieve the daily weather forecast data for a particular location for a single day and for a period of five days.

1 day of daily forecasts

To retrieve the daily weather forecast data for a single day for a given location, we make a GET request to the following URL:

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

5 days of daily forecasts

For daily weather forecast data for the next five days of a particular location, we make a GET request to the following URL:

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

Input parameters

The table below shows the list of input parameters for both endpoints.

Get hands-on with 1200+ tech skills courses.