Aller au contenu
GET /v1/regional

All 18 GB regions

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/carbonintensity-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "to": "2026-06-01T00:00Z",
        "from": "2026-05-31T23:30Z",
        "count": 18,
        "regions": [
            {
                "dno": "Scottish Hydro Electric Power Distribution",
                "name": "North Scotland",
                "index": "very low",
                "forecast": 0,
                "region_id": 1,
                "generation_mix": [
                    {
                        "fuel": "biomass",
                        "percent": 0
                    },
                    {
                        "fuel": "coal",
                        "percent": 0
                    },
                    {
                        "fuel": "imports",
                        "percent": 0
                    },
                    {
                        "fuel": "gas",
                        "percent": 0
                    },
                    {
                        "fuel": "nuclear",
                        "percent": 0
                    },
                    {
                        "fuel": "other",
                        "percent": 0
                    },
                    {
                        "fuel": "hydro",
                        "percent": 0
                    },
                    {
                        "fuel": "solar",
                        "percent": 0
                    },
                    {
                        "fuel": "wind",
                        "percent": 100
                    }
                ]
            },
            {
                "dno": "SP Distribution",
                "name": "South Scotland",
                "index": "very low",
                "forecast": 0,
                "region_id": 2,
                "generation_mix": [
                    {
                        "fuel": "biomass",
                        "percent": 0
                    },
                    {
                        "fuel": "coal",
                        "percent": 0
                    },
                    {
                        "fuel": "imports",
                        "percent": 0
                    },
                    {
                        "fuel": "gas",
                        "percent": 0
                    },
                    {
                        "fuel": "nuclear",
                        "percent": 21.3
                    },
                    {
                        "fuel": "other",
                        "percent": 0
                    },
                    {
                        "fuel": "hydro",
                        "percent": 0
                    },
                    {
                        "fuel": "solar",
                        "percent": 0
                    },
                    {
                        "fuel": "wind",
                        "percent": 78.7
                    }
                ]
            },
            {
                "dno": "Electricity North West",
                "name"
…