GreenCalculusGreenCalculusEmbedGet a free key

Embed

A live, citable factor on your page.

Two lines of HTML render a badge with the current value, its source, and a public verify link pinned to the data version, following the citation specification — so the number on your page carries its own evidence, and updates when the publisher revises. No key, no cost, no build step.

↑ That is the badge, live, right now — loaded from the script you would paste. Click verify.

Paste this

anywhere in your HTML
<div class="gc-factor" data-key="grid.gbr.electricity.location_based"></div>
<script async src="https://api.greencalculus.com/embed/factor.js"></script>

Swap data-key for any of the corpus’s canonical keys — find yours with the playground or GET /v1/factors?search=. One script serves any number of badges on the page.

Any factor, same two lines

The hero badge above is the real thing — here is a second key rendered by the same script (Germany’s grid, an Ember lifecycle intensity), so you can see the badge is generic, not a special-cased demo:

The honest mechanics

Keyless by design — the badge reads the open browse route, so there is no credential on your page and nothing to steal. It fails visible, small: an unknown key renders “factor unavailable” with a link to the corpus, never an invented number and never a silent blank. Styling is isolated (shadow DOM): your CSS cannot break it, it cannot leak into your page, and it follows your visitor’s light/dark preference. The credit is the deal: the badge carries a small “via GreenCalculus” link — the same attribution the free API tier requires, doing the same job: pointing your readers at evidence they can check without an account.

Values update themselves. The badge always shows the current corpus value. If you need a number frozen for a report instead, that is the API’s ?as_of= — see Reproducibility. And if you want to know when a badge’s factor changes, watch it: a release that touches it emails you old → new.

Where next

▸

Tutorials

A dashboard, a screening export, a cited agent — in a lunch break.

♡

Open-source programme

Building in public? Ten times the free quota, plus a listing.

{ }

API reference

The same data, every endpoint, when a badge is not enough.