Vietnam GHG Inventory Calculator API
Must a Vietnamese facility inventory greenhouse gases (Decree 06/2022, QĐ 42/2026)? Scope 1 and 2 tCO2e with official factors and the 2024 grid factor.
action=obligation checks the criteria of Decree 06/2022/NĐ-CP Article 6 (as amended by Decrees 119/2025 and 83/2026): 3,000 tCO2e a year, or 1,000 TOE for thermal power, industry, freight transport and commercial buildings, or 65,000 t of solid waste a year. It returns the duties and deadlines: biennial facility inventory to the province before 31 March (next 31/3/2027), mitigation plan 2026–2030, and for thermal power, steel and cement the verified report before 1 December from 2027 and emission allowances.
action=calc (default when fuels or electricity_kwh is sent) computes scope 1 from fuels ([{fuel, quantity, unit, sector}]: diesel, gasoline, fuel_oil, lpg, natural_gas, anthracite, sub_bituminous, kerosene, jet_kerosene, biomass, charcoal… in l, kg, t, GJ, TJ, MWh, MMBtu) with the emission factors of Decision 2626/QĐ-BTNMT and scope 2 from grid electricity with the official grid factor (2024: 0.6187 tCO2/MWh, grid_year 2022–2024). GWP sets AR4, AR5 (default) or AR6; TOE is estimated for the obligation test. custom lines take your own factors (refrigerants, waste, scope 3).
The facility list of QĐ 42/2026/QĐ-TTg (2,441 facilities, in force 25/9/2026) is the binding test and is not bundled.
Markdown · OpenAPI · Postman · llms.txt
Parameters
| Name | In | Type | Required | Default | |
|---|---|---|---|---|---|
action | body|query | string | no | obligation, calc or factors. | |
facility_type | body|query | string | no | other | thermal_power, industrial, freight_transport, commercial_building, solid_waste, other. |
annual_emissions_tco2e | body|query | number | no | Annual emissions (obligation test). | |
energy_toe | body|query | number | no | Annual energy use in TOE. | |
sector | body|query | string | no | steel, cement or thermal_power for the allowance pilot. | |
fuels | body | array | no | [{fuel, quantity, unit, sector, ncv_gj_per_t?, density_kg_per_l?}] | |
electricity_kwh | body|query | number | no | Grid electricity used (kWh). | |
grid_year | body|query | number | no | 2024 | Grid factor year (2022–2024) or grid_ef. |
gwp | body|query | string | no | ar5 | ar4, ar5 or ar6. |
custom | body | array | no | [{name, quantity, unit, factor_kgco2e_per_unit, scope}] |
Example
curl -X POST "https://apibox.io.vn/v1/vn-ghg-inventory" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"facility_type":"industrial","fuels":[{"fuel":"diesel","quantity":100000,"unit":"l","sector":"manufacturing"}],"electricity_kwh":5000000}'const res = await fetch('https://apibox.io.vn/v1/vn-ghg-inventory', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"facility_type": "industrial",
"fuels": [
{
"fuel": "diesel",
"quantity": 100000,
"unit": "l",
"sector": "manufacturing"
}
],
"electricity_kwh": 5000000
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://apibox.io.vn/v1/vn-ghg-inventory",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"facility_type": "industrial", "fuels": [{"fuel": "diesel", "quantity": 100000, "unit": "l", "sector": "manufacturing"}], "electricity_kwh": 5000000},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/vn-ghg-inventory');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"facility_type":"industrial","fuels":[{"fuel":"diesel","quantity":100000,"unit":"l","sector":"manufacturing"}],"electricity_kwh":5000000}',
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));Response
{
"action": "calc",
"gwp": "IPCC AR5 (100-year)",
"totals": {
"scope1_tco2e": 268.53,
"scope2_tco2e": 3093.5,
"scope1_2_tco2e": 3362.03,
"scope3_tco2e": 0,
"biogenic_co2_t": 0,
"fuel_energy_gj": 3612,
"energy_toe": 857.77
},
"lines": [
{
"scope": 1,
"fuel": "diesel",
"sector": "manufacturing",
"quantity": 100000,
"unit": "l",
"energy_gj": 3612,
"ef_kg_per_tj": {
"co2": 74100,
"ch4": 3,
"n2o": 0.6
},
"co2_t": 267.6492,
"ch4_kg": 10.836,
"n2o_kg": 2.1672,
"tco2e": 268.5269
},
{
"scope": 2,
"source": "grid electricity (location-based)",
"quantity": 5000000,
"unit": "kWh",
"ef_tco2_per_mwh": 0.6187,
"grid_year": 2024,
"tco2e": 3093.5
}
],
"obligation": {
"in_scope": true,
"reasons": [
"Annual emissions 3362.03 tCO2e ≥ 3,000 (Điều 6 khoản 1)"
],
"quota_sector": false,
"duties": [
"listed",
"inventory",
"mitigation_plan"
]
},
"assumptions": [
"fuels[0]: density 0.84 kg/l assumed for diesel."
],
"reviewed": "2026-11-15",
"disclaimer": "Reference only, not legal or tax advice; check the official text and your customs / verification body."
}
Use cases
- Check whether a factory falls under the mandatory GHG inventory
- Estimate scope 1 and 2 emissions for an EU customer or an ESG report
- Add a carbon line to an energy management dashboard
- Prepare data for the biennial inventory report (Form 06)
FAQ
Which grid emission factor is used?
The latest one published by the ministry: 0.6187 tCO2/MWh for 2024 (Official Letter 11232/BNNMT-BĐKH of 30/9/2026); pass grid_year or grid_ef to change it.
When is the next inventory report due?
Facilities on the list send the biennial facility report to the provincial People’s Committee before 31 March, next on 31/3/2027.
Is biomass counted?
Its CH4 and N2O are; its CO2 is reported separately as biogenic and not added to scope 1.
Related APIs
JSON Validator
Check JSON syntax with exact line and column of errors, and validate data against a JSON Schema (draft 4, 7, 2019-09 or 2020-12).
{ }JSON Formatter
Pretty print JSON with 0-8 spaces or tabs, minify it, or sort object keys recursively. Syntax errors are reported with line and column.
CSVCSV to JSON
Convert CSV into an array of JSON objects using the header row, with delimiter auto-detection, number and boolean typing, and row-level errors.