Climate Change API
<?php
$contents = file_get_contents("https://api.tylermwise.uk/v1/climatechange");
$data = json_decode($contents);
?><?php
echo $data->credit;
echo $data->co2_intensity;
echo $data->biomass;
echo $data->coal;
echo $data->gas;
echo $data->nuclear;
echo $data->other;
echo $data->hydro;
echo $data->solar;
echo $data->wind;
?>{
"credit": "API Data from <a href='https://dev.tylermwise.com/climatechange'>tylermwise.com</a>",
"co2_intensity": "low",
"biomass": "0%",
"coal": "0%",
"imports": "0%",
"gas": "0%",
"nuclear": "0%",
"other": "0%",
"hydro": "0%",
"solar": "0%",
"wind": "0%"
}CO2 Intensity
Current Energy Usage
API Credit
Last updated