API to estimate the carbon footprint of loading web pages.
Website Carbon Calculator API is a REST API that measures the carbon emissions of any public web page. It accepts a URL via a GET request to the /v1/carbon endpoint and returns the page's transfer size, energy consumption, CO2 emissions in grams (calculated for both standard grid and renewable energy scenarios), a percentile ranking against other tested web pages, and a letter carbon rating from A+ to F.
The API works by loading and measuring the total data transfer size of a page (HTML, CSS, JavaScript, images, fonts, and third-party resources), checking the domain against the Green Web Foundation directory for renewable hosting status, and computing emissions using Version 4 of the Sustainable Web Design Model. Results are cached for 7 days per URL, with an optional parameter to force a fresh recalculation. First-time analysis of a page can take up to 30 seconds, while cached results return instantly.
It is intended for developers building website carbon calculators, sustainability dashboards, green web badges, or automated carbon auditing tools. Sandbox API keys return mock responses for testing, and each call to the endpoint counts as 2 API calls.
It returns the normalized URL, a cleaner-than percentile, a letter rating (A+ to F), green hosting status, detailed transfer size/energy/CO2 statistics, and the test date.
It uses V4 of the Sustainable Web Design Model, computing CO2 per page view from page transfer size, an energy intensity of 0.30 kWh/GB, and a global average grid intensity of 494 gCO2e/kWh.
Results are cached for 7 days per URL, and passing recalculate=true bypasses the cache to force a fresh analysis.
Each call to the GET /v1/carbon endpoint counts as 2 API calls, and first-time analysis of a URL may take up to 30 seconds while cached results return instantly.
Yes, sandbox keys using the test_ prefix return a mock response.
Show your product to thousands of developers
· 100k monthly pageviews
· 7k newsletter subscribers
Open low-cost PM2.5 sensor data.
Energy production photovoltaic (PV) energy systems.
Hourly usage energy report for Srp customers.
Open Data from the UK's largest water and wastewater services company.
The Official Carbon Intensity API for Great Britain developed by National Grid.
Electricity usage estimations, carbon footprint estimations, and utility data.