Zum Inhalt springen
GET /v1/optimal

Optimal panel tilt & azimuth

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "optimal": {
            "source": "EU JRC PVGIS",
            "location": {
                "lat": 48.2,
                "lon": 16.4,
                "elevation_m": 170
            },
            "azimuth_note": "0 = facing the equator (south in the N hemisphere); -90 = east, 90 = west",
            "peakpower_kwp": 1,
            "yearly_pv_kwh": 1178.25,
            "optimal_tilt_deg": 39,
            "optimal_azimuth_deg": -1,
            "yearly_irradiation_kwh_m2": 1477.29
        }
    },
    "meta": {
        "timestamp": "2026-05-31T15:13:35.017Z",
        "request_id": "23b5a6bb-71a2-45e5-9c10-78ad9daeece5"
    },
    "status": "ok",
    "message": "Optimal angles retrieved",
    "success": true
}