Use Climly inside Excel & Google Sheets
Pin a factor once by its permanent ID and your spreadsheet stays
auditable: the ID resolves to source, licence and uncertainty forever. Pick a factor in the
Explorer, copy its EF-… ID, then:
Google Sheets — custom function =CLIMLY_FACTOR()
Extensions → Apps Script → paste → save. Then use
=CLIMLY_FACTOR("EF-ETKB-b2cd0398e3") in any cell (multiply by your quantity in the
factor's own unit — check unit on Explorer or
/api/factor/<uid> first; e.g. this example factor is t CO2e / MWh, so a quantity
in kWh must be divided by 1,000 before multiplying). =CLIMLY_UNIT("EF-ETKB-b2cd0398e3") returns that
unit as text, so you can keep it in the column next to the value and check it before you multiply.
function CLIMLY_FACTOR(uid) {
var base = "__BASE__";
var r = UrlFetchApp.fetch(base + "/api/value?uid=" + encodeURIComponent(uid),
{muteHttpExceptions: true});
var t = r.getContentText();
var v = parseFloat(t);
return isNaN(v) ? "#N/A " + t : v;
}
function CLIMLY_CALC(uid, quantity) {
return CLIMLY_FACTOR(uid) * quantity;
}
function CLIMLY_UNIT(uid) {
var base = "__BASE__";
var r = UrlFetchApp.fetch(base + "/api/factors?limit=5&q=" + encodeURIComponent(uid),
{muteHttpExceptions: true});
try {
var items = JSON.parse(r.getContentText()).items || [];
for (var i = 0; i < items.length; i++) {
if (items[i].uid === uid) return items[i].unit;
}
} catch (e) {}
return "#N/A";
}
Excel — Power Query (auditable table)
Data → Get Data → From Other Sources → Blank Query → Advanced Editor. Pages through
/api/factors (200 rows per call) so it pulls the whole filtered table — e.g. every current
DEFRA Fuels-category row, not a mix of fuels, WTT and bioenergy rows — into a refreshable sheet.
let
Base = "__BASE__",
Params = "source=defra2026&category=Fuels",
Total = Json.Document(Web.Contents(Base & "/api/factors?" & Params & "&limit=1"))[total],
GetPage = (offset as number) =>
Json.Document(Web.Contents(Base & "/api/factors?" & Params & "&limit=200&offset=" & Text.From(offset)))[items],
Offsets = List.Generate(() => 0, each _ < Total, each _ + 200),
Items = List.Combine(List.Transform(Offsets, each GetPage(_))),
T = Table.FromRecords(Items),
Keep = Table.SelectColumns(T, {"uid","activity","value","unit","uncertainty_pct","region","year"})
in
Keep
Swap category=Fuels for any Explorer filter —
q= free-text search can also match adjacent categories (WTT, bioenergy), so a category or
source filter is more reliable for "pull the whole table" queries.
Excel — quick single value
Modern Excel (365). /api/value returns a bare number with no unit — this
example factor's unit is t CO2e / MWh, so A2 must be a quantity in MWh, not kWh:
=WEBSERVICE("__BASE__/api/value?uid=EF-ETKB-b2cd0398e3") * A2
AI assistants (MCP)
An MCP server (search factors, calculate, CBAM lookups) is planned; we do not give a date. Today, any MCP-capable or tool-using assistant can already call the open REST API directly — see API docs for the endpoints.
Attribution: cite Climly and the underlying publisher (each record carries its attribution string). Bulk exports require an account; single-value reads are open.