---
title: EU CBAM Carbon Tax API | Scope 1/2 Embedded Emissions & XML Declaration Engine
description: Calculate EU CBAM embedded emissions (Regulation EU 2023/956 & 2023/1773) for Iron, Steel, Aluminum, Cement, Fertilizers, Hydrogen, and Electricity in sub-5ms. Scope 1 direct, Scope 2 grid intensity, precursor materials, and EU ETS carbon liability.
canonical: https://stanzaapi.com/tools/cbam-carbon/
---

[Home](/)/[API Directory](/tools/)/EU CBAM & Carbon Tax Calculation Engine

 <5ms Edge Latency99.9% SLA AvailableVerified: Sep 2026V8 Pure ComputeCarbon Border Tax & Regulatory Compliance

# EU CBAM & Carbon Tax Calculation Engine

Deterministic, pure-compute edge engine for European Union Carbon Border Adjustment Mechanism (CBAM Regulation (EU) 2023/956) and EU ETS carbon price calculations.

[Subscribe & Get API Key →](/tools/pricing)[⚡ Live Playground](#live-playground)[Specs (5)](#specifications)

 Interactive Edge Workbench

## ⚡ Live Pure-Compute Playground

 Test deterministic edge parsing with sub-2ms execution across 330+ Cloudflare V8 edge locations. Zero persistent storage, zero cold-starts, pure function $f(x)=y$.

32KB Demo Cap60 req/min Burst<2ms V8 ComputeZero Data Retention

input.txt0 B

 Reset

1

72081000 CN 50000

 RUN VALIDATION (<5ms) [ CHECKSUM: AWAITING RUN ]

output.jsondemo-ready

Status: Ready Copy

```
{
  "status": "Click RUN VALIDATION to execute on the Cloudflare edge..."
}
```

Sandbox Quota: Free Tier (50 reqs/mo) • Production keys from $29/mo[Get Free Sandbox Key →](/login?email=)

Need 512KB+ Payloads, High-Throughput & 99.9% Production SLA?

Direct API keys include pooled monthly quotas, zero cold-starts, and HIPAA BAA eligibility on the Mega tier.

[Get Production API Key →](/pricing)

## Key Capabilities & Performance Architecture

- ✓Continuous Statutory Sync™ with European Commission Implementing Regulation (EU) 2023/1773 & EU ETS EEX auction benchmarks
- ✓Automated 6-hour Continuous Edge Reconciliation guaranteeing zero-drift regulatory currency
- ✓Complete coverage of all 6 CBAM sectors: Iron & Steel, Aluminum, Cement, Fertilizers, Hydrogen, and Electricity
- ✓Scope 1 direct emission calculations using official Annex IV default specific factors (tCO2e/t)
- ✓Scope 2 indirect emissions using country electricity grid emission intensity factors for global trading partners
- ✓Precursor embedded emission cascades for multi-stage complex goods (billets, wire rod, clinker, ammonia)
- ✓European Commission CBAM Transitional Registry schema-valid XML and JSON quarterly declaration generation

## Carbon Compliance & Environmental Taxation (5 Specifications)

Explore full structural breakdowns, checksum logic, and field schemas for every supported format.

[EU CBAM Iron & Steel Emissions Calculator [CN 7201-7326 Benchmark API] — Calculate embedded carbon and EU ETS certificate liability for steel imports in under 2ms pure compute. — View Specification →](/tools/cbam-carbon/compliance/iron-steel-emissions)[Aluminum CBAM Embedded Carbon Calculator (CN Chapter 76) — Electrolysis power intensity and smelting carbon calculations for aluminum imports. — View Specification →](/tools/cbam-carbon/compliance/aluminum-factors)[Cement & Clinker CBAM Carbon Tax Calculator (CN 2523) — Calcination rotary kiln direct factor and clinker ratio calculations. — View Specification →](/tools/cbam-carbon/compliance/cement-clinker-calc)[Country Electricity Grid Carbon Intensity Directory (2026 Scope 2 Factors) — Standardized electricity grid emissions for Scope 2 indirect carbon calculations under EU Regulation 2023/1773. — View Specification →](/tools/cbam-carbon/compliance/grid-intensity-factors)[European Commission CBAM Registry XML Declaration Guide — Automated XML and JSON declaration generator for quarterly customs filings. — View Specification →](/tools/cbam-carbon/compliance/quarterly-declaration-guide)

## API Endpoints & Request Signatures

| Method | Path | Description |
| --- | --- | --- |
| `POST` | `/api/v1/cbam/calculate` | Calculate CBAM Scope 1, Scope 2, precursor emissions, and net EUR liability |
| `GET` | `/api/v1/cbam/spec-status` | Retrieve Continuous Statutory Sync attestation, integrity hash & verification timestamp |
| `POST` | `/api/v1/cbam/lookup-factor` | Lookup 8-digit Combined Nomenclature (CN) code benchmark factor & CBAM scope |
| `POST` | `/api/v1/cbam/grid-intensity` | Lookup country electricity grid emission intensity factor (tCO2e/MWh) |
| `POST` | `/api/v1/cbam/generate-declaration` | Generate European Commission CBAM Registry XML & JSON quarterly declaration payload |

## Sample Response JSON Payload

All endpoints deliver strongly-typed envelopes with deterministic parsing and performance metrics.

HTTP 200 Response PayloadCopy

```
{
  "success": true,
  "data": {
    "valid": true,
    "cnCode": "72081000",
    "productName": "Flat-rolled products of iron/steel, in coils, hot-rolled",
    "sector": "iron_and_steel",
    "countryOfOrigin": "CN",
    "countryName": "China",
    "netMassTonnes": 50,
    "directEmissionsTco2e": 105,
    "indirectEmissionsTco2e": 18.011,
    "totalEmbeddedEmissionsTco2e": 123.011,
    "specificEmbeddedEmissionsPerTonne": 2.4602,
    "euEtsBenchmarkPriceEurPerTonne": 72.5,
    "grossFinancialLiabilityEur": 8918.3,
    "carbonPriceDeductionEur": 1414.63,
    "netFinancialLiabilityEur": 7503.67,
    "regulatoryReference": "EU Regulation 2023/956 Annex IV & Implementing Regulation (EU) 2023/1773 (As of September 1, 2026)"
  },
  "meta": {
    "latency_ms": 1.42,
    "version": "1.0.0"
  }
}
```

## Multi-Language Integration Code

Copy and paste ready-to-run snippets with your direct API credentials:

cURLCopy

```
curl --request POST \
  --url "https://api.stanzaapi.com/cbam-carbon/api/v1/cbam/calculate" \
  --header "Content-Type: application/json" \
  --header "x-api-key: YOUR_API_KEY" \
  --data '{
  "cnCode": "72081000",
  "countryOfOrigin": "CN",
  "massKg": 50000
}'
```

Node.js (Fetch)Copy

```
const response = await fetch("https://api.stanzaapi.com/cbam-carbon/api/v1/cbam/calculate", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "x-api-key": process.env.API_KEY || "YOUR_API_KEY"
  },
  body: JSON.stringify({
  "cnCode": "72081000",
  "countryOfOrigin": "CN",
  "massKg": 50000
})
});

const data = await response.json();
console.log(data);
```

Python (Requests)Copy

```
import requests
import json

url = "https://api.stanzaapi.com/cbam-carbon/api/v1/cbam/calculate"
headers = {
    "Content-Type": "application/json",
    "x-api-key": "YOUR_API_KEY"
}
payload = {
    "cnCode": "72081000",
    "countryOfOrigin": "CN",
    "massKg": 50000
}

response = requests.post(url, json=payload, headers=headers)
print(response.json())
```

GoCopy

```
package main

import (
	"bytes"
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	url := "https://api.stanzaapi.com/cbam-carbon/api/v1/cbam/calculate"
	payload := []byte(`{"cnCode":"72081000","countryOfOrigin":"CN","massKg":50000}`)

	req, _ := http.NewRequest("POST", url, bytes.NewBuffer(payload))
	req.Header.Add("Content-Type", "application/json")
	req.Header.Add("x-api-key", os.Getenv("API_KEY"))

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
```

## Frequently Asked Questions

What is EU CBAM (Regulation (EU) 2023/956)?

The Carbon Border Adjustment Mechanism (CBAM) is the European Union’s landmark climate policy designed to equalize the price of carbon paid for domestic EU production under the EU ETS and imported goods entering the EU from third countries.

Which product sectors are covered under CBAM?

CBAM covers six carbon-intensive sectors: (1) Iron and Steel, (2) Aluminum, (3) Cement, (4) Fertilizers, (5) Hydrogen, and (6) Electricity. Each sector contains specific 8-digit Combined Nomenclature (CN) codes.

How are direct (Scope 1) and indirect (Scope 2) emissions calculated?

Direct emissions (Scope 1) are calculated from process and fuel combustion during production. Indirect emissions (Scope 2) are calculated by multiplying specific electricity consumption (MWh/t) by the country electricity grid emission factor (tCO2e/MWh) from official EU/IEA datasets.

Can carbon prices already paid in the country of origin be deducted?

Yes. Under CBAM Article 9, importers can claim a reduction in the number of CBAM certificates required if an explicit carbon price (e.g. UK ETS, Korean ETS, Canadian carbon tax) was effectively paid in the country of origin without export rebates.

## Complementary Enterprise APIs

Seamlessly orchestrate data pipelines across adjacent financial, regulatory, and supply-chain protocols:

[ISO 6346 Intermodal Container Validator → — Verify BIC container numbers, check digits, and freight bill of lading identifiers.](/tools/container-validator/)[European VIES VAT Validator → — Verify cross-border European importer VAT IDs for EU customs declarant authorization.](/tools/vat-validator/)[Peppol BIS Billing 3.0 → — Validate cross-border customs trade documentation and automated B2B e-invoices.](/tools/peppol-validator/)
