Daily forecast (up to 9 days)

Daily forecast for up to 9 days: min/max temperature, condition and precipitation.

Request

GEThttps://weather.p.apihiver.com/v1/forecast?city=Mumbai&days=3
String. City name, e.g. Mumbai. Give city or coords.
String. ISO country code to pick the right city, e.g. IN.
String. Latitude,longitude, e.g. 19.07,72.87. Give city or coords.
Number. Number of days (1–9, default 5).
Language
Client
1curl --request GET \
2  --url 'https://weather.p.apihiver.com/v1/forecast?city=Mumbai&country=%7Bcountry%7D&coords=%7Bcoords%7D&days=3' \
3  --header 'Accept: application/json' \
4  --header 'X-API-Key: YOUR_API_KEY'

Daily forecast (up to 9 days): Weather API reference

Daily forecast for up to 9 days: min/max temperature, condition and precipitation. This endpoint is part of the Weather API: Current weather, 9-day forecasts, hourly forecasts, and sunrise/sunset/moon phase for any city or coordinates worldwide.

Example response (200, application/json)

Success.

1{
2  "days": [
3    {
4      "date": "2026-09-26",
5      "condition": "Cloudy",
6      "precipitation_mm": 0,
7      "max_temperature_c": 27,
8      "min_temperature_c": 26.9
9    },
10    {
11      "date": "2026-09-27",
12      "condition": "Fair",
13      "precipitation_mm": 0.2,
14      "max_temperature_c": 30.9,
15      "min_temperature_c": 25
16    },
17    {
18      "date": "2026-09-28",
19      "condition": "Fair",
20      "precipitation_mm": 2,
21      "max_temperature_c": 31.5,
22      "min_temperature_c": 24.5
23    }
24  ],
25  "source": "MET Norway",
26  "location": {
27    "lat": 19.07283,
28    "lon": 72.88261,
29    "name": "Mumbai",
30    "country": "India",
31    "timezone": "Asia/Kolkata",
32    "population": 12691836,
33    "country_code": "IN"
34  }
35}

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "Pass 'city' (e.g. Mumbai) or 'coords' (lat,lon)."
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.