Vai al contenuto
GET /v1/optimal

Optimal panel tilt & azimuth

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/pvgis-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}