Skip to content
HALOWERK

Klimawerk

ghg target pathway gap

Return actual inventory gaps against a caller-declared linear or geometric reduction pathway.

POST https://klima.halowerk.com/v1/ghg-target-pathway-gap

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
base_yearintegerYes
target_yearintegerYes
base_kgnumberYes
reduction_fractionnumberYes
methodSee schemaYes
actualarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "base_year": {
      "type": "integer",
      "minimum": 1900,
      "maximum": 2200
    },
    "target_year": {
      "type": "integer",
      "minimum": 1900,
      "maximum": 2200
    },
    "base_kg": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000000000000000
    },
    "reduction_fraction": {
      "type": "number",
      "minimum": 0,
      "maximum": 1
    },
    "method": {
      "enum": [
        "linear",
        "geometric"
      ]
    },
    "actual": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "year": {
            "type": "integer",
            "minimum": 1900,
            "maximum": 2200
          },
          "kg": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000000000000000
          }
        },
        "required": [
          "year",
          "kg"
        ],
        "additionalProperties": false
      },
      "maxItems": 100,
      "minItems": 0
    }
  },
  "required": [
    "base_year",
    "target_year",
    "base_kg",
    "reduction_fraction",
    "method",
    "actual"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "base_year": 2020,
  "target_year": 2030,
  "base_kg": 100,
  "reduction_fraction": 0.5,
  "method": "linear",
  "actual": [
    {
      "year": 2025,
      "kg": 80
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’