← Наука и космос

UK Carbon by Postcode

GET /carbonintensity/postcode/:postcode

Get the regional carbon intensity of the UK electricity grid for a specific postcode area. Different parts of the UK have different energy mixes (e.g., Scotland has more wind, southeast England has more gas). Returns the local carbon intensity and generation mix. Useful for localized energy dashboards, regional sustainability comparisons, and helping UK residents understand their local grid's environmental impact.

Параметры

postcode обязательный

UK postcode

Примеры запросов

Базовое использование
curl https://nordapi.ee/api/v1/carbonintensity/postcode/SW1A
Carbon intensity in Westminster
curl https://nordapi.ee/api/v1/carbonintensity/postcode/SW1A
Carbon intensity in Manchester
curl https://nordapi.ee/api/v1/carbonintensity/postcode/M1
Carbon intensity in Edinburgh
curl https://nordapi.ee/api/v1/carbonintensity/postcode/EH1

Ответ в реальном времени

{
  "data": {
    "forecast": 140,
    "generation_mix": [
      {
        "fuel": "biomass",
        "percentage": 0.5
      },
      {
        "fuel": "coal",
        "percentage": 0
      },
      {
        "fuel": "imports",
        "percentage": 53
      },
      {
        "fuel": "gas",
        "percentage": 24.1
      },
      {
        "fuel": "nuclear",
        "percentage": 6.7
      },
      {
        "fuel": "other",
        "percentage": 0
      },
      {
        "fuel": "hydro",
        "percentage": 0.2
      },
      {
        "fuel": "solar",
        "percentage": 0
      },
      {
        "fuel": "wind",
        "percentage": 15.5
      }
    ],
    "index": "moderate",
    "postcode": "SW1A",
    "region": null
  },
  "success": true
}