# Global Weather Forecast

Any coordinate on Earth — current conditions and a daily forecast up to 16 days out, through Open-Meteo's open weather models.

- Method: `GET`
- Path: `/v1/weather/open-meteo/forecast`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `latitude` | number | required | Decimal degrees, `-90` to `90`; negative is south. |
| `longitude` | number | required | Decimal degrees, `-180` to `180`; negative is west. |
| `days` | integer | optional | How many forecast days to return, `1`-`16`. |
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/weather/open-meteo/forecast \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "latitude": -6.25,
    "longitude": 106.875,
    "timezone": "Asia/Jakarta",
    "elevation_m": 12,
    "current": {
      "time": "2026-08-20T18:45",
      "temperature_c": 27.6,
      "humidity_pct": 71,
      "weather_code": 53,
      "wind_speed_kmh": 6
    },
    "daily": [
      { "date": "2026-08-20", "weather_code": 53, "temp_max_c": 32.1, "temp_min_c": 26.2, "precipitation_probability_pct": 75 },
      { "date": "2026-08-21", "weather_code": 80, "temp_max_c": 31.8, "temp_min_c": 25.9, "precipitation_probability_pct": 60 },
      { "date": "2026-08-22", "weather_code": 3, "temp_max_c": 33, "temp_min_c": 26.1, "precipitation_probability_pct": 25 }
    ]
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-20T11:45:00.000Z",
    "age_seconds": 42,
    "next_update_at": "2026-08-20T12:00:00.000Z"
  }
}
```