Zum Inhalt springen
GET /v1/current

Current weather

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/current" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/weather-api/v1/current", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/weather-api/v1/current");
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/current",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

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

{
    "data": {
        "units": {
            "rain": "mm",
            "time": "iso8601",
            "is_day": "",
            "showers": "mm",
            "interval": "seconds",
            "snowfall": "cm",
            "cloud_cover": "%",
            "pressure_msl": "hPa",
            "weather_code": "wmo code",
            "precipitation": "mm",
            "temperature_2m": "°C",
            "wind_gusts_10m": "km/h",
            "wind_speed_10m": "km/h",
            "surface_pressure": "hPa",
            "wind_direction_10m": "°",
            "apparent_temperature": "°C",
            "relative_humidity_2m": "%"
        },
        "current": {
            "time": "2026-05-29T20:15",
            "is_day": true,
            "temp_c": 25.7,
            "rain_mm": 0,
            "humidity": 24,
            "wind_kmh": 3.8,
            "condition": {
                "code": 3,
                "text": "Overcast"
            },
            "precip_mm": 0,
            "cloud_cover": 98,
            "snowfall_cm": 0,
            "feels_like_c": 23.6,
            "pressure_msl": 1019.6,
            "wind_dir_deg": 311,
            "wind_gust_kmh": 21.2
        },
        "location": {
            "name": "Berlin",
            "region": "State of Berlin",
            "country": "Germany",
            "latitude": 52.52437,
            "timezone": "Europe/Berlin",
            "elevation": 46,
            "longitude": 13.41053,
            "country_code": "DE",
            "utc_offset_seconds": 7200
        }
    },
    "meta": {
        "timestamp": "2026-05-29T18:17:22.192Z",
        "request_id": "e4a50435-eeea-48d1-a813-6782b9ade0e6"
    },
    "status": "ok",
    "message": "Current weather retrieved successfully",
    "success": true
}