Climate Change API
Firstly, to interact with our API you need to add the following PHP code:
After you have done that, you can use any of the following lines of code to get that specific data:
GET
https://api.tylermwise.uk/v1/climatechange
CO2 Intensity
If you are needing to get data about the current CO2 levels, then use the following piece of code. This will either say low, medium or high:
Current Energy Usage
If you are needing to get the current Energy Usage, then the following code will get the percentage of the current amount of energy:
API Credit
If you would like to tell users where you got our free API from, please use the following line of code, so we can easily update it when we need too :)
Last updated