{
  "openapi": "3.0.1",
  "info": {
    "title": "EU CBAM Cost Calculator — Default Values vs Actual Data (Steel)",
    "description": "Batch CBAM certificate cost per CN code and origin for 2026 and 2027: default-value path (official Commission default values, mark-up, CBAM factor, benchmarks) vs actual-emissions path. Fasteners 7318, 7326 and steel structures 7308 from China. Pay per computed line.",
    "version": "0.2",
    "x-build-id": "HzmE7NTLOZOJRbGd1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/goldenrod_serrano~cbam-cost-calculator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-goldenrod_serrano-cbam-cost-calculator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/goldenrod_serrano~cbam-cost-calculator/runs": {
      "post": {
        "operationId": "runs-sync-goldenrod_serrano-cbam-cost-calculator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/goldenrod_serrano~cbam-cost-calculator/run-sync": {
      "post": {
        "operationId": "run-sync-goldenrod_serrano-cbam-cost-calculator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "regime": {
            "title": "Regime",
            "enum": [
              "EU",
              "UK2027"
            ],
            "type": "string",
            "description": "EU (default): EU CBAM certificate cost, unchanged. UK2027: HMRC UK default values (tCO2e per tonne, same for every origin in 2027-2028, from GOV.UK 'Iron and steel default values', published 16 Oct 2026) for the same 211 codes, embedded emissions per line, first UK return and payment date 31 May 2028. GBP cost only if you give ukRatePerTonne, because no official UK CBAM rate is published yet. Same price per computed line.",
            "default": "EU"
          },
          "cnCodes": {
            "title": "CN codes (8-digit)",
            "type": "array",
            "description": "8-digit EU Combined Nomenclature codes, e.g. 73181582. Covered (origin China): 211 codes in 7318, 7326, 7308, 7306 and chapter 72 (7208, 7210, 7213-7217, 7221-7223, 7228) — full list in the README. Uses the shared origin, tonnes and actual-data fields below.",
            "items": {
              "type": "string"
            }
          },
          "originCountry": {
            "title": "Origin country",
            "type": "string",
            "description": "Country of origin for cnCodes lines. Verified default values currently cover China only (also accepts CN, PRC, 中国). Other origins return 'unsupported' (not charged).",
            "default": "China"
          },
          "tonnes": {
            "title": "Tonnes imported per line",
            "minimum": 0,
            "type": "number",
            "description": "Tonnes per cnCodes line. Default 1."
          },
          "steelRoute": {
            "title": "Steel route of your mill",
            "enum": [
              "bf",
              "eaf",
              "unknown"
            ],
            "type": "string",
            "description": "Only matters when includeIllustrativeExample is on and no actualSee is given: bf (carbon steel) and stainless then show the Commission's fictitious example; eaf/unknown are never estimated. The default-value path always uses the route set in the official China table.",
            "default": "bf"
          },
          "items": {
            "title": "Per-line items (JSON, optional)",
            "type": "array",
            "description": "Per-line objects: {cnCode, originCountry, tonnes, steelRoute, actualSee, steelUsePerTonne, precursorSefa, carbonPricePaidEurPerTonne}. Missing fields fall back to the shared fields. Use this for different tonnages, origins or actual data per line."
          },
          "actualSee": {
            "title": "Actual specific embedded emissions SEE (tCO2/t)",
            "minimum": 0,
            "type": "number",
            "description": "Optional. Your product's actual direct embedded emissions in tCO2e per tonne (ideally verified). Applies to all cnCodes lines. Without it only the default-value path is computed (unless includeIllustrativeExample is on)."
          },
          "steelUsePerTonne": {
            "title": "Steel use per tonne of product (m)",
            "minimum": 0,
            "type": "number",
            "description": "Optional. Tonnes of steel precursor per tonne of finished product. Default: Commission example value (1.176 carbon / 1.220 stainless) or 1.05 assumption for 7308."
          },
          "precursorSefa": {
            "title": "Precursor SEFA (tCO2/t of steel)",
            "minimum": 0,
            "type": "number",
            "description": "Optional. Specific embedded free allocation of the steel precursor, from your mill (before the CBAM factor)."
          },
          "carbonPricePaidEurPerTonne": {
            "title": "Carbon price paid in origin country (EUR per tonne of product)",
            "minimum": 0,
            "type": "number",
            "description": "Optional. Carbon price effectively paid in the country of origin, in EUR per tonne of product; deducted on the actual-data path only."
          },
          "certificatePrice2026Eur": {
            "title": "CBAM certificate price 2026 (EUR)",
            "minimum": 0,
            "type": "number",
            "description": "Optional override. Default 82.32 = official Q3 2026 price (Commission, published 2026-10-05), used as a proxy for 2026."
          },
          "certificatePrice2027Eur": {
            "title": "CBAM certificate price 2027 (EUR)",
            "minimum": 0,
            "type": "number",
            "description": "Optional override. Default placeholder 82.32 (Q3 2026); from 2027 the Commission publishes weekly prices."
          },
          "ukRatePerTonne": {
            "title": "UK CBAM rate (GBP per tCO2e, UK2027 only)",
            "minimum": 0,
            "type": "number",
            "description": "Optional, UK2027 mode only. Your own assumption of the UK CBAM rate in GBP per tonne CO2e. HMRC has not yet published an official rate (the Q1 2027 rate is due before the end of 2026; the October 2026 figures are illustrative only), so without this field only emissions are returned. Carbon Price Relief is not deducted."
          },
          "includeIllustrativeExample": {
            "title": "Show illustrative example plant (off by default)",
            "type": "boolean",
            "description": "Off by default: without your own actualSee only the default-value path is returned, with the note 'Provide your own emissions data to compute the actual-data path'. Turn on to also show an actual-data path from the Commission's FICTITIOUS Guidance 5d Example 3 plant (7318/7326, BF carbon or stainless), labelled as an example.",
            "default": false
          },
          "maxLines": {
            "title": "Max lines per run",
            "minimum": 1,
            "type": "integer",
            "description": "Safety cap on the number of lines in one run.",
            "default": 1000
          },
          "sampleMode": {
            "title": "Free sample (not charged)",
            "type": "boolean",
            "description": "Run the built-in sample lines (incl. two unsupported examples) without charging. An empty input does the same.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}