Zum Inhalt springen
GET /v1/forecast

Multi-day forecast

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/weather-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/weather-api/v1/forecast" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/weather-api/v1/forecast", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/weather-api/v1/forecast");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/weather-api/v1/forecast",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "units": {
            "daily": {
                "time": "iso8601",
                "sunset": "iso8601",
                "sunrise": "iso8601",
                "uv_index_max": "",
                "weather_code": "wmo code",
                "precipitation_sum": "mm",
                "temperature_2m_max": "°C",
                "temperature_2m_min": "°C",
                "wind_gusts_10m_max": "km/h",
                "wind_speed_10m_max": "km/h",
                "apparent_temperature_max": "°C",
                "apparent_temperature_min": "°C",
                "wind_direction_10m_dominant": "°",
                "precipitation_probability_max": "%"
            },
            "hourly": {
                "time": "iso8601",
                "weather_code": "wmo code",
                "precipitation": "mm",
                "temperature_2m": "°C",
                "wind_speed_10m": "km/h",
                "wind_direction_10m": "°",
                "relative_humidity_2m": "%",
                "precipitation_probability": "%"
            }
        },
        "hourly": {
            "time": [
                "2026-05-29T00:00",
                "2026-05-29T01:00",
                "2026-05-29T02:00",
                "2026-05-29T03:00",
                "2026-05-29T04:00",
                "2026-05-29T05:00",
                "2026-05-29T06:00",
                "2026-05-29T07:00",
                "2026-05-29T08:00",
                "2026-05-29T09:00",
                "2026-05-29T10:00",
                "2026-05-29T11:00",
                "2026-05-29T12:00",
                "2026-05-29T13:00",
                "2026-05-29T14:00",
                "2026-05-29T15:00",
                "2026-05-29T16:00",
                "2026-05-29T17:00",
                "2026-05-29T18:00",
                "2026-05-29T19:00",
                "2026-05-29T20:00",
                "2026-05-29T21:00",
                "2026-05-29T22:00",
                "2026-05-29T23:00",
                "2026-05-30T00:00",
                "2026-05-30T01:00",
                "2026-05-30T02:00",
                "2026-05-30T03:00",
                "2026-05-30T04:00",
                "2026-05-30T05:00",
                "2026-05-30T06:00",
                "2026-05-30T07:00",
                "2026-05-30T08:00",
                "2026-05-30T09:00",
                "2026-05-30T10:00",
                "2026-05-30T11:00",
                "2026-05-30T12:00",
                "2026-05-30T13:00",
                "2026-05-30T14:00",
                "2026-05-30T15:00",
                "2026-05-30T16:00",
                "2026-05-30T17:00",
                "2026-05-30T18:00",
                "2026-05-30T19:00",
                "2026-05-30T20:00",
                "2026-05-30T21:00",
                "2026-05-30T22:00",
                "2026-05-30T23:00",
                "2026-05-31T00:00",
                "2026-05-31T01:00",
                "2026-05-31T02:00",
                "2026-05-31T03:00",
         
…