EnvironmentPublic API
Website Carbon
API to estimate the carbon footprint of loading web pages
Before you call it
What this listing means in practice
No key to obtain
You can make a request immediately. Be considerate with volume anyway: open APIs often publish informal rate limits, and some will block clients that hammer them.
HTTPS supported
Requests can be made over TLS. Use HTTPS endpoints in production so browsers do not block the call as mixed content.
CORS not confirmed
If CORS is not enabled, call this API from a server, serverless function or build step and proxy the response to your frontend.
Start with the provider's own documentation. It is the only place where endpoints, rate limits, pricing and terms are authoritative.
https://api.websitecarbon.com/No API calls are proxied by this directory. Links go directly to the provider.
API listings describe access requirements, not endorsements. Review each provider's privacy policy, terms and rate limits.
Overview
About Website Carbon
Website Carbon needs no API key. That puts it among 15 of the 30 environment APIs we list that you can try without signing up.
It supports HTTPS but CORS is not confirmed, so plan to call it from a server or serverless function. That is true for 18 of the 30 APIs in this category.
Documentation is on api.websitecarbon.com.
Environment APIs in general
Environment APIs report air quality, pollution, carbon intensity, energy mix and similar data, often from government or research sources.
What people build with them
- Air quality widgets for a city
- Scheduling jobs when the grid is cleaner
- Research dashboards
Watch out for
Sensor data has gaps and spikes. Show the measurement time and smooth readings before triggering alerts.
First request
Calling Website Carbon
Run this on a server or in a serverless function, because CORS is not confirmed.
JavaScript// Replace the path with an endpoint from the Website Carbon docs
const res = await fetch("https://api.websitecarbon.com/<endpoint>");
if (!res.ok) throw new Error(`Website Carbon returned ${res.status}`);
const data = await res.json();Compare
Website Carbon vs similar APIs
| API | Auth | HTTPS | CORS |
|---|---|---|---|
| Website Carbon | No key | Yes | Unknown |
| Open-Meteo | No key | Yes | Yes |
| kanari | No key | Yes | Yes |
| GridVigil | No key | Yes | Yes |
| WattFigure | No key | Yes | Yes |
| Sähkön hinta nyt | No key | Yes | Yes |
FAQ
Common questions about Website Carbon
Does Website Carbon need an API key?
No. Website Carbon is listed with no authentication, so you can send a request without registering.
Can I call Website Carbon from the browser?
CORS is not confirmed, so the browser may block direct calls. Call it from your server or a serverless function and pass the result to your frontend.
Is Website Carbon free?
No key is required, which usually means free access, but providers can still limit volume. Check Website Carbon's docs for rate limits and fair-use terms.
What are some alternatives to Website Carbon?
Other environment APIs in the directory include Open-Meteo (no key), kanari (no key), GridVigil (no key). The comparison table on this page shows how they differ on authentication, HTTPS and CORS.
Same category
More Environment APIs
Next step
Keep looking until the constraints fit.
Filter the directory by authentication, HTTPS and CORS, or start from a category and work backwards.