Skip to content

Instantly share code, notes, and snippets.

@simonprickett
Created September 2, 2023 16:37
Show Gist options
  • Save simonprickett/f85870a3c72dc946425c14b0d7c4af55 to your computer and use it in GitHub Desktop.
Save simonprickett/f85870a3c72dc946425c14b0d7c4af55 to your computer and use it in GitHub Desktop.
Example Carbon Intensity API output for the NG1 postcode in the East Midlands Region
{
"data": [
{
"regionid": 9,
"dnoregion": "WPD East Midlands",
"shortname": "East Midlands",
"postcode": "NG1",
"data": [
{
"from": "2023-09-02T16:00Z",
"to": "2023-09-02T16:30Z",
"intensity": {
"forecast": 312,
"index": "very high"
},
"generationmix": [
{
"fuel": "biomass",
"perc": 9.4
},
{
"fuel": "coal",
"perc": 0
},
{
"fuel": "imports",
"perc": 2.5
},
{
"fuel": "gas",
"perc": 76.4
},
{
"fuel": "nuclear",
"perc": 1.3
},
{
"fuel": "other",
"perc": 0
},
{
"fuel": "hydro",
"perc": 0
},
{
"fuel": "solar",
"perc": 8.2
},
{
"fuel": "wind",
"perc": 2.2
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment