Zum Inhalt springen
GET /v1/forecast

Today half-hourly intensity

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "count": 48,
        "periods": [
            {
                "to": "2026-05-31T23:30Z",
                "from": "2026-05-31T23:00Z",
                "index": "high",
                "actual": null,
                "forecast": 187
            },
            {
                "to": "2026-06-01T00:00Z",
                "from": "2026-05-31T23:30Z",
                "index": "high",
                "actual": null,
                "forecast": 183
            },
            {
                "to": "2026-06-01T00:30Z",
                "from": "2026-06-01T00:00Z",
                "index": "high",
                "actual": null,
                "forecast": 184
            },
            {
                "to": "2026-06-01T01:00Z",
                "from": "2026-06-01T00:30Z",
                "index": "high",
                "actual": null,
                "forecast": 183
            },
            {
                "to": "2026-06-01T01:30Z",
                "from": "2026-06-01T01:00Z",
                "index": "high",
                "actual": null,
                "forecast": 183
            },
            {
                "to": "2026-06-01T02:00Z",
                "from": "2026-06-01T01:30Z",
                "index": "high",
                "actual": null,
                "forecast": 180
            },
            {
                "to": "2026-06-01T02:30Z",
                "from": "2026-06-01T02:00Z",
                "index": "high",
                "actual": null,
                "forecast": 172
            },
            {
                "to": "2026-06-01T03:00Z",
                "from": "2026-06-01T02:30Z",
                "index": "moderate",
                "actual": null,
                "forecast": 109
            },
            {
                "to": "2026-06-01T03:30Z",
                "from": "2026-06-01T03:00Z",
                "index": "moderate",
                "actual": null,
                "forecast": 107
            },
            {
                "to": "2026-06-01T04:00Z",
                "from": "2026-06-01T03:30Z",
                "index": "moderate",
                "actual": null,
                "forecast": 111
            },
            {
                "to": "2026-06-01T04:30Z",
                "from": "2026-06-01T04:00Z",
                "index": "moderate",
                "actual": null,
                "forecast": 112
            },
            {
                "to": "2026-06-01T05:00Z",
                "from": "2026-06-01T04:30Z",
                "index": "moderate",
                "actual": null,
                "forecast": 112
            },
            {
                "to": "2026-06-01T05:30Z",
                "from": "2026-06-01T05:00Z",
                "index": "moderate",
                "actual": null,
                "forecast": 111
            },
            {
                "to": "2026-06-01T06:00Z",
                "from": "2026-06-01T05:30Z",
                "index": "moderate
…