Sky Harvest

Developers — API & MCP

Programmatic access to the True Credit Calculator. Computation runs on our servers — integrations receive results, never the engine. Keys are issued manually: request access and mention API use, or write to calc@skyharvest.com.

Authentication

Every request needs an API key (sk_tcc_…), sent as a bearer token or x-api-key header. Default limit: 120 requests per minute per key.

curl -H "Authorization: Bearer sk_tcc_YOUR_KEY" \
  "https://calc.truecredits.com/api/v1/calculate?v=1&d=40&s=0&g=CO2&r=3&h=INFINITE"

GET /api/v1/calculate

The core calculation. Parameters are identical to the calculator's share-URLs — a URL copied from the app is a valid API call.

ParamMeaningValues / default
vVolume, tonnes of gas0–1,000,000 · 1
dStorage duration, years0–1,000,000 · 0
sDelay before storage, years0–200 · 0
gGasCO2 · CH4_NON_FOSSIL · CH4_FOSSIL · CH4_METHANE_ONLY · N2O · HFC134A · HFC23 · CF4 · SF6 · NF3
rTime-value of carbon, %/yr0–20 · 0
hCredit definitionGWP20 … GWP1000 · INFINITE
thTime horizon modelledsame values; omit to match h
mCO₂ decay curveJOOS_2012 (default) · FEARNSIDE_2000
bAccounting basist = temperature (iGTP); omit = radiative forcing
ccAR6 climate–carbon feedback0 = off (source-workbook convention); omit = on
seriesInclude chart trajectoriesco2e · gmst · mass; omit = none
formatResponse shapetext = one bare number (for spreadsheets); omit = JSON
fieldWhich number, with format=texter (default) · credits · we · bfgas · bfco2

Response: results.credits (tCO₂e), results.equivalenceRatio (tonnes stored per credit), results.warmingEquivalence (tCO₂e per tonne — the derived GWP at 0%), plus benefit fractions and echoed inputs. POST with a JSON object of the same parameter names is also accepted.

GET /api/v1/gwp

Derived warming equivalence for a gas at any horizon, discount rate, basis and feedback setting. Calibrated so GWP-100 reproduces AR6 exactly.

curl -H "x-api-key: sk_tcc_YOUR_KEY" \
  "https://calc.truecredits.com/api/v1/gwp?g=CH4_NON_FOSSIL&h=GWP20&r=0"

GET /api/v1/matrix

The Temporal Weighting Matrix as data — the value of one issued credit under each temporal treatment. Add ?duration=<years> for a custom storage duration.

Excel add-in

Native TRUECREDIT.* worksheet functions on Windows, Mac and Excel on the web. Needs an API key; computation stays on our servers.

=TRUECREDIT.ER(duration, rate_pct, [horizon], [gas], [delay], [basis], [ccf])
=TRUECREDIT.CREDITS(volume, duration, rate_pct, [horizon], [gas], ...)
=TRUECREDIT.WE(gas, [horizon], [rate_pct], [basis], [ccf])

=TRUECREDIT.ER(50, 3)                    → 1.2872
=TRUECREDIT.WE("CH4_FOSSIL", "GWP100")   → 29.8

Install: download the manifest. In Excel on the web: Insert → Add-ins → Upload My Add-in. On desktop, ask your Microsoft 365 admin to upload it under Integrated apps (central deployment), or write to calc@skyharvest.com and we'll help. Then set your API key once via Home → True Credit Setup. Omitted arguments use the web calculator's defaults; identical calls are cached, so large sheets stay within the rate limit.

MCP connector

AI assistants can use the calculator conversationally over the Model Context Protocol (streamable HTTP). Endpoint:

https://calc.truecredits.com/api/mcp

Authenticate with the same API key — as a header, or append ?key=sk_tcc_YOUR_KEY for clients without custom headers. Tools: calculate_credits, compare_scenarios, gwp_lookup, temporal_matrix. In Claude: Settings → Connectors → Add custom connector → paste the URL (with ?key=…).

Conventions & versioning

  • Lashof construction over full atmospheric lifetimes; Joos et al. 2012 CO₂ response; AR6 constants; effective radiative efficiencies calibrated so GWP-100 reproduces AR6 exactly. See the methodology (login required).
  • The AR6 climate–carbon feedback is ON by default (cc=0 opts out, reproducing the source workbook bit-for-bit).
  • /v1 parameter names and output fields are stable; any change of convention arrives as a new version, never silently.
© Sky Harvest Resources LLC · calc.truecredits.com · Results are provided for analysis; they are not offers, certifications or financial advice.
API & MCP — True Credit Calculator — Sky Harvest