Skip to content
GET /v1/forecast

Today half-hourly intensity

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/carbonintensity-api

It works. Grab an API key and use it in your project.

Get an API key

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

Example response

A real response from this endpoint, captured by the latest 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
…