In this post (part one of the series), we’ll look at assessing the carbon emissions of website hosting. In parts two and three we’ll cover data transfer, and device energy usage respectively. You can find links to the other parts below:
Choosing a green web host for a website is one of the most impactful decisions any website owner can make. Based on peer-reviewed research, the Sustainable Web Design model says hosting accounts for 15% of a website’s total energy usage. Beyond making your own site more sustainable, it also sends a message to other hosting providers that their potential customers value services that are powered by renewable energy.
Checking how a site is hosted is also as good a place as any to start a website audit. For this audit, we’ll use the COP27 website (https://cop27.eg
). Let’s get started.
The first thing we’ll do is check if the website uses a verified green hosting provider known green web host (or CDN - more on that later). At The Green Web Foundation, we maintain an open dataset of verified providers. We’ve also created a few user-friendly ways for people to check websites against that dataset.
One way to check a website against our dataset is to use the Green Web Checker tool online. Running the COP27 domain (https://cop27.eg
) through this tool reveals that the site is not hosted on a known green providers or CDN.
For developers, or those looking to automate green hosting checks, we’ve also created the Greencheck API. You can use this API to check a single domain. Below is how we can use this API to check the COP27 domain.
curl -X 'GET' \\
'<https://api.thegreenwebfoundation.org/api/v3/greencheck/cop27.eg>' \\
-H 'accept: application/json'
This returns the below response.
{
"green": false,
"url": "cop27.eg",
"data": false
}
With this, we can check for the green
key to know if a site is hosted on a green web host (true
) or not (false
). For green hosted sites, the API also returns additional information about the hosting provider.