Forecast Weather
Returns weather forecast for up to 14 days (plan dependent). Includes hourly intervals, astronomy, air quality, pollen, and weather alerts.
Request
- Base URLhttps://api.weatherapi.com/v1
- AuthAPI key in query parameter key
Query parameters
Your WeatherAPI.com API key.
Location query. Accepts: city name, lat/lon, US zip, UK postcode, Canada postal code, METAR code (metar:EGLL), IATA (iata:DXB), auto:ip, IPv4/IPv6, or location ID (id:2801268).
Number of forecast days (1–14).
Restrict date output in yyyy-MM-dd format.
Unix timestamp equivalent of dt. Do not pass both.
Restrict output to a specific hour (0–23) in 24-hour format.
Include weather alerts in Forecast API response.
Include Air Quality Index (AQI) data in response.
Include pollen data. Available on Pro+ and above.
Interval for data. Use tp=15 for 15-minute intervals (Enterprise only).
Language code for condition text. E.g.: fr, de, es, zh, ar. See full list in docs.
Comma-separated fields to return in forecast/history day element.
Comma-separated fields to return in forecast/history hour element.
Include evapotranspiration data. Business and Enterprise only.
Response
Forecast weather data
Changes
No recorded changes to this operation across all 4 revisions of this API.