Hour-by-hour forecast (next 48 hours)

Hour-by-hour forecast for up to 48 hours.

Request

GEThttps://weather.p.apihiver.com/v1/hourly?coords=19.07%2C72.87&hours=6
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 hours (1–48, default 24).
Language
Client
1curl --request GET \
2  --url 'https://weather.p.apihiver.com/v1/hourly?city=%7Bcity%7D&country=%7Bcountry%7D&coords=19.07%2C72.87&hours=6' \
3  --header 'Accept: application/json' \
4  --header 'X-API-Key: YOUR_API_KEY'

Hour-by-hour forecast (next 48 hours): Weather API reference

Hour-by-hour forecast for up to 48 hours. 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  "hours": [
3    {
4      "time": "2026-09-26T23:30:00+05:30",
5      "condition": "Partly cloudy",
6      "temperature_c": 26.9,
7      "wind_speed_ms": 4.3,
8      "humidity_percent": 83.9,
9      "precipitation_mm": 0,
10      "cloud_cover_percent": 71.1
11    },
12    {
13      "time": "2026-09-27T00:30:00+05:30",
14      "condition": "Partly cloudy",
15      "temperature_c": 26.6,
16      "wind_speed_ms": 4.1,
17      "humidity_percent": 85.1,
18      "precipitation_mm": 0,
19      "cloud_cover_percent": 81.2
20    },
21    {
22      "time": "2026-09-27T01:30:00+05:30",
23      "condition": "Cloudy",
24      "temperature_c": 26.4,
25      "wind_speed_ms": 4.4,
26      "humidity_percent": 85.5,
27      "precipitation_mm": 0,
28      "cloud_cover_percent": 97.7
29    }
30  ],
31  "source": "MET Norway",
32  "location": {
33    "lat": 19.07,
34    "lon": 72.87,
35    "name": "Mumbai",
36    "timezone": "Asia/Kolkata",
37    "country_code": "IN"
38  }
39}

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.