# Building Product EPD Comparison API (`afkdigital/building-product-epd-comparison`) Actor

Screen customer JSON/CSV EPD data for unit, module, GWP method, standard, PCR, validity and functional-equivalence gaps. Preserve source evidence and normalization traces. No PDF/OCR or certification validation.

- **URL**: https://apify.com/afkdigital/building-product-epd-comparison.md
- **Developed by:** [AFK Digital](https://apify.com/afkdigital) (community)
- **Categories:** Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1,000.00 / 1,000 epd comparison packages

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Building Product EPD Comparison API

Screen structured environmental product declaration observations before putting building products side by side. Identify unit, lifecycle-module, method, PCR, functional-equivalence and validity gaps with source evidence. No PDF extraction, OCR, LLM, paid database, external lookup or registry credentials are required.

### Supported scope — version 1.0.0

- Standard labels: `EN 15804:2012+A2:2019` and `EN 15804:2012+A2:2019/AC:2021`. These labels stay separate. A1 and ISO 21930 data are outside this initial supported scope.
- Five distinct indicators: `GWP-total`, `GWP-fossil`, `GWP-biogenic`, `GWP-luluc`, `GWP-GHG`. Method label must be `EF 3.1 February 2023`; unit `kg CO2 eq`. Values are supplied by the customer, never recalculated from emissions inventories. Other environmental indicators are not supported in v1.
- Explicit A1–A5, B1–B7, C1–C4 and D module codes. A1-A3 must be supplied as `["A1","A2","A3"]`. Each observation is the customer's supplied value for that exact module set; individual module values are never automatically summed. D must be selected and supplied alone; no netting or avoided-impact deductions.
- PCR references, versions and complementary PCR references are exact matching metadata, not independently validated rule content. `2019:14`, `2.0.1` is used in the synthetic example. Older or other PCR labels can be screened for equality but are not certified compliant. Complementary PCR is required; use `none` only when the customer confirms none applies.

EPD International's current construction PCR entry identifies EN 15804:2012+A2:2019/AC:2021 and PCR 2019:14 version 2.0.1. Its GPI indicator page distinguishes five GWP indicators and identifies EF 3.1 February 2023. This API implements a conservative metadata and arithmetic screen, not the full normative standards or PCR requirements.

### Input

See `demo-input.json` for a complete synthetic example. `epdRecords` is an array of flat observation objects, a JSON-array string or UTF-8 CSV text sent through the API. In the Console use the JSON editor or optional `epdRecordsCsv` textarea. CSV headers use the same field names; lifecycle_modules uses `A1|A2|A3`.

Required fields per observation:

| Field | Meaning |
|---|---|
| product_id, declaration_id | Customer product and source declaration identifiers |
| declared_unit, declared_quantity | Units: kg, t, g, m, m2, m3, unit; positive quantity to which value refers |
| unit_type | `declared` or `functional`; never treated as interchangeable |
| indicator, indicator_unit, indicator_version | Exact supported indicator, impact unit and assessment method version |
| lifecycle_modules, value | Explicit module array and finite numeric impact, including negative supplied values |
| standard_version, pcr_reference, pcr_version, complementary_pcr | Exact normative and PCR metadata |
| valid_from, valid_until | ISO dates; missing/invalid dates are unknown, not current |
| equivalence_group, functional_specification | Customer-asserted equivalent function and technical performance; matching names alone do not prove real-world equivalence |
| scope, scenario, geography, reference_service_life | Explicit matching assessment assumptions; use a justified `not_applicable` string where appropriate |
| evidence_reference | Source declaration URL/file/page/row reference; preserved without fetching |

`targetUnit` is the common denominator. `selectedIndicators` selects 1–5 supported GWP types. `selectedModules` selects one exact module set. `comparabilityRules` accepts only `asOfDate` (ISO date; defaults to current UTC date). No rule may bypass safety checks.

`suppliedConversions` contains objects with product_id, from_unit, to_unit, factor, evidence_reference. **factor means target units per ONE source unit**. Normalized impact = source value / declared_quantity / factor. Example: 2400 kg per m3 uses factor 2400 to normalize m3 impact to kg. Conversion factors, including density, thickness or item mass, must be supplied with evidence. No automatic dimensional conversion, inverse, chaining or density estimates. Declared and functional unit types remain separate even with a factor.

Limits: maxProducts 1–100 distinct products; 5 distinct indicators; 10000 observations; input JSON 5 MB; 100 supplied conversions; 2048 characters per observation text field. Dataset writes are batched at 100 observations. Each product has one observation per indicator and module set; duplicates are quarantined even if declaration IDs differ. Over-limit input fails, never silently truncates. Input errors are not billed for a comparison event. Scope-difference pair diagnostics are limited to the first 100 distinct signatures and explicitly flag truncation.

### Output

Default Dataset and OUTPUT JSON preserve product_id, declaration_id, declared_unit, normalized_unit, indicator, lifecycle_modules, value, standard_version, pcr_reference, validity_status, comparability_status, mismatch_reasons, evidence_reference plus method/PCR metadata, source_row, source_value, declared_quantity and calculation_trace.

OUTPUT.csv is spreadsheet-safe: formula-like customer strings are escaped; negative numeric values remain numbers. SCOPE_REPORT contains excluded-record reasons through the Dataset, pairwise scope differences and side_by_side groups. Only valid, complete observations with exact matching metadata and at least two distinct products form a group. Products are ordered by the supplied normalized indicator value within each group; this is **not a sustainability ranking**. Failed records retain diagnostic fields and evidence; missing conversions have null normalized values. Expiration is checked against supplied dates only. Withdrawals, authentic signatures and registry status are not checked.

### Pricing: USD 1.00 per comparison package

One `comparison-package` event per successful report, up to 100 products, 5 selected indicators, 10000 observations and the limits above. **USD 1.00 per package**, including platform usage; no per-row or start fee. One event covers the complete run, including scope differences and normalization traces. Invalid input that fails analysis incurs no comparison event. Records with findings still form a delivered screening report and count as one package.

The custom comparison-package event is the primary event. Synthetic start and Dataset billing events are disabled. If the spending cap cannot cover one complete package, output is withheld and SCOPE_REPORT reports budget_exhausted. JSON/CSV serialization is checked before charging.

### Evidence and limitations

The API does not validate certifications, declaration authenticity, underlying LCA calculations, PCR compliance or product performance. Comparison groups rely on customer-supplied equivalence and assumptions. It does not assert overall environmental superiority or whole-life performance. Do not interpret missing modules as zero. Values across standards, methods, module sets, PCR versions or functions stay separate.

### Official references checked 2026-11-14

- https://www.environdec.com/pcr-library/pcr_6b99d07c-4b75-4763-4485-08dd775d2e49
- https://ps.prod.environdec.com/services/environmental-performance-indicators/gpi-5/indicators-of-environmental-impact
- https://docs.apify.com/actors/monetize/pay-per-event
- https://docs.apify.com/actors/monetize/pricing-and-costs

### Development

`python3 -m unittest discover -s tests -v`

`docker build -t newapi100 .`

`python -m src.main` uses the synthetic demo when input is empty. The Actor defaults to 256 MB and 180 seconds. Production data are not fetched or logged. Review Apify retention settings for uploaded customer data.

# Actor input Schema

## `epdRecords` (type: `array`):

One row per product, indicator and explicit module set. For CSV via API pass a UTF-8 CSV string; JSON editor uses arrays.

## `epdRecordsCsv` (type: `string`):

Optional CSV text instead of epdRecords. API may also send CSV string directly as epdRecords.

## `targetUnit` (type: `string`):

Common denominator. All cross-unit factors must be supplied.

## `suppliedConversions` (type: `array`):

Product-specific factors: target units per source unit, with evidence.

## `selectedIndicators` (type: `array`):

One to five GWP indicator identifiers. Types never merged.

## `selectedModules` (type: `array`):

Exact module set; Module D must be requested separately.

## `comparabilityRules` (type: `object`):

Only asOfDate is supported. All matching checks are mandatory.

## `maxProducts` (type: `integer`):

Hard distinct-product limit. No silent truncation.

## Actor input object example

```json
{
  "epdRecords": [
    {
      "product_id": "concrete-a",
      "declaration_id": "EPD-concrete-a",
      "declared_unit": "kg",
      "declared_quantity": 1,
      "unit_type": "declared",
      "indicator": "GWP-total",
      "indicator_unit": "kg CO2 eq",
      "indicator_version": "EF 3.1 February 2023",
      "lifecycle_modules": [
        "A1",
        "A2",
        "A3"
      ],
      "value": 12,
      "standard_version": "EN 15804:2012+A2:2019/AC:2021",
      "pcr_reference": "2019:14",
      "pcr_version": "2.0.1",
      "complementary_pcr": "none",
      "valid_from": "2025-01-01",
      "valid_until": "2030-01-01",
      "equivalence_group": "concrete-C30",
      "functional_specification": "C30 same service",
      "scope": "cradle-to-gate",
      "scenario": "reference scenario",
      "geography": "EU",
      "reference_service_life": "50 years",
      "evidence_reference": "customer:row1"
    },
    {
      "product_id": "concrete-b",
      "declaration_id": "EPD-concrete-b",
      "declared_unit": "kg",
      "declared_quantity": 1,
      "unit_type": "declared",
      "indicator": "GWP-total",
      "indicator_unit": "kg CO2 eq",
      "indicator_version": "EF 3.1 February 2023",
      "lifecycle_modules": [
        "A1",
        "A2",
        "A3"
      ],
      "value": 9,
      "standard_version": "EN 15804:2012+A2:2019/AC:2021",
      "pcr_reference": "2019:14",
      "pcr_version": "2.0.1",
      "complementary_pcr": "none",
      "valid_from": "2025-01-01",
      "valid_until": "2030-01-01",
      "equivalence_group": "concrete-C30",
      "functional_specification": "C30 same service",
      "scope": "cradle-to-gate",
      "scenario": "reference scenario",
      "geography": "EU",
      "reference_service_life": "50 years",
      "evidence_reference": "customer:row1"
    },
    {
      "product_id": "expired-c",
      "declaration_id": "EPD-expired-c",
      "declared_unit": "kg",
      "declared_quantity": 1,
      "unit_type": "declared",
      "indicator": "GWP-total",
      "indicator_unit": "kg CO2 eq",
      "indicator_version": "EF 3.1 February 2023",
      "lifecycle_modules": [
        "A1",
        "A2",
        "A3"
      ],
      "value": 10,
      "standard_version": "EN 15804:2012+A2:2019/AC:2021",
      "pcr_reference": "2019:14",
      "pcr_version": "2.0.1",
      "complementary_pcr": "none",
      "valid_from": "2025-01-01",
      "valid_until": "2026-01-01",
      "equivalence_group": "concrete-C30",
      "functional_specification": "C30 same service",
      "scope": "cradle-to-gate",
      "scenario": "reference scenario",
      "geography": "EU",
      "reference_service_life": "50 years",
      "evidence_reference": "customer:row1"
    },
    {
      "product_id": "different-pcr",
      "declaration_id": "EPD-different-pcr",
      "declared_unit": "kg",
      "declared_quantity": 1,
      "unit_type": "declared",
      "indicator": "GWP-total",
      "indicator_unit": "kg CO2 eq",
      "indicator_version": "EF 3.1 February 2023",
      "lifecycle_modules": [
        "A1",
        "A2",
        "A3"
      ],
      "value": 10,
      "standard_version": "EN 15804:2012+A2:2019/AC:2021",
      "pcr_reference": "2019:14",
      "pcr_version": "1.3.4",
      "complementary_pcr": "none",
      "valid_from": "2025-01-01",
      "valid_until": "2030-01-01",
      "equivalence_group": "concrete-C30",
      "functional_specification": "C30 same service",
      "scope": "cradle-to-gate",
      "scenario": "reference scenario",
      "geography": "EU",
      "reference_service_life": "50 years",
      "evidence_reference": "customer:row1"
    },
    {
      "product_id": "needs-density",
      "declaration_id": "EPD-needs-density",
      "declared_unit": "m3",
      "declared_quantity": 1,
      "unit_type": "declared",
      "indicator": "GWP-total",
      "indicator_unit": "kg CO2 eq",
      "indicator_version": "EF 3.1 February 2023",
      "lifecycle_modules": [
        "A1",
        "A2",
        "A3"
      ],
      "value": 10,
      "standard_version": "EN 15804:2012+A2:2019/AC:2021",
      "pcr_reference": "2019:14",
      "pcr_version": "2.0.1",
      "complementary_pcr": "none",
      "valid_from": "2025-01-01",
      "valid_until": "2030-01-01",
      "equivalence_group": "concrete-C30",
      "functional_specification": "C30 same service",
      "scope": "cradle-to-gate",
      "scenario": "reference scenario",
      "geography": "EU",
      "reference_service_life": "50 years",
      "evidence_reference": "customer:row1"
    },
    {
      "product_id": "steel",
      "declaration_id": "EPD-steel",
      "declared_unit": "kg",
      "declared_quantity": 1,
      "unit_type": "declared",
      "indicator": "GWP-total",
      "indicator_unit": "kg CO2 eq",
      "indicator_version": "EF 3.1 February 2023",
      "lifecycle_modules": [
        "A1",
        "A2",
        "A3"
      ],
      "value": 10,
      "standard_version": "EN 15804:2012+A2:2019/AC:2021",
      "pcr_reference": "2019:14",
      "pcr_version": "2.0.1",
      "complementary_pcr": "none",
      "valid_from": "2025-01-01",
      "valid_until": "2030-01-01",
      "equivalence_group": "steel",
      "functional_specification": "C30 same service",
      "scope": "cradle-to-gate",
      "scenario": "reference scenario",
      "geography": "EU",
      "reference_service_life": "50 years",
      "evidence_reference": "customer:row1"
    }
  ],
  "targetUnit": "kg",
  "suppliedConversions": [],
  "selectedIndicators": [
    "GWP-total"
  ],
  "selectedModules": [
    "A1",
    "A2",
    "A3"
  ],
  "comparabilityRules": {},
  "maxProducts": 100
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `csv` (type: `string`):

No description

## `scopeReport` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "epdRecords": [
        {
            "product_id": "concrete-a",
            "declaration_id": "EPD-concrete-a",
            "declared_unit": "kg",
            "declared_quantity": 1,
            "unit_type": "declared",
            "indicator": "GWP-total",
            "indicator_unit": "kg CO2 eq",
            "indicator_version": "EF 3.1 February 2023",
            "lifecycle_modules": [
                "A1",
                "A2",
                "A3"
            ],
            "value": 12,
            "standard_version": "EN 15804:2012+A2:2019/AC:2021",
            "pcr_reference": "2019:14",
            "pcr_version": "2.0.1",
            "complementary_pcr": "none",
            "valid_from": "2025-01-01",
            "valid_until": "2030-01-01",
            "equivalence_group": "concrete-C30",
            "functional_specification": "C30 same service",
            "scope": "cradle-to-gate",
            "scenario": "reference scenario",
            "geography": "EU",
            "reference_service_life": "50 years",
            "evidence_reference": "customer:row1"
        },
        {
            "product_id": "concrete-b",
            "declaration_id": "EPD-concrete-b",
            "declared_unit": "kg",
            "declared_quantity": 1,
            "unit_type": "declared",
            "indicator": "GWP-total",
            "indicator_unit": "kg CO2 eq",
            "indicator_version": "EF 3.1 February 2023",
            "lifecycle_modules": [
                "A1",
                "A2",
                "A3"
            ],
            "value": 9,
            "standard_version": "EN 15804:2012+A2:2019/AC:2021",
            "pcr_reference": "2019:14",
            "pcr_version": "2.0.1",
            "complementary_pcr": "none",
            "valid_from": "2025-01-01",
            "valid_until": "2030-01-01",
            "equivalence_group": "concrete-C30",
            "functional_specification": "C30 same service",
            "scope": "cradle-to-gate",
            "scenario": "reference scenario",
            "geography": "EU",
            "reference_service_life": "50 years",
            "evidence_reference": "customer:row1"
        },
        {
            "product_id": "expired-c",
            "declaration_id": "EPD-expired-c",
            "declared_unit": "kg",
            "declared_quantity": 1,
            "unit_type": "declared",
            "indicator": "GWP-total",
            "indicator_unit": "kg CO2 eq",
            "indicator_version": "EF 3.1 February 2023",
            "lifecycle_modules": [
                "A1",
                "A2",
                "A3"
            ],
            "value": 10,
            "standard_version": "EN 15804:2012+A2:2019/AC:2021",
            "pcr_reference": "2019:14",
            "pcr_version": "2.0.1",
            "complementary_pcr": "none",
            "valid_from": "2025-01-01",
            "valid_until": "2026-01-01",
            "equivalence_group": "concrete-C30",
            "functional_specification": "C30 same service",
            "scope": "cradle-to-gate",
            "scenario": "reference scenario",
            "geography": "EU",
            "reference_service_life": "50 years",
            "evidence_reference": "customer:row1"
        },
        {
            "product_id": "different-pcr",
            "declaration_id": "EPD-different-pcr",
            "declared_unit": "kg",
            "declared_quantity": 1,
            "unit_type": "declared",
            "indicator": "GWP-total",
            "indicator_unit": "kg CO2 eq",
            "indicator_version": "EF 3.1 February 2023",
            "lifecycle_modules": [
                "A1",
                "A2",
                "A3"
            ],
            "value": 10,
            "standard_version": "EN 15804:2012+A2:2019/AC:2021",
            "pcr_reference": "2019:14",
            "pcr_version": "1.3.4",
            "complementary_pcr": "none",
            "valid_from": "2025-01-01",
            "valid_until": "2030-01-01",
            "equivalence_group": "concrete-C30",
            "functional_specification": "C30 same service",
            "scope": "cradle-to-gate",
            "scenario": "reference scenario",
            "geography": "EU",
            "reference_service_life": "50 years",
            "evidence_reference": "customer:row1"
        },
        {
            "product_id": "needs-density",
            "declaration_id": "EPD-needs-density",
            "declared_unit": "m3",
            "declared_quantity": 1,
            "unit_type": "declared",
            "indicator": "GWP-total",
            "indicator_unit": "kg CO2 eq",
            "indicator_version": "EF 3.1 February 2023",
            "lifecycle_modules": [
                "A1",
                "A2",
                "A3"
            ],
            "value": 10,
            "standard_version": "EN 15804:2012+A2:2019/AC:2021",
            "pcr_reference": "2019:14",
            "pcr_version": "2.0.1",
            "complementary_pcr": "none",
            "valid_from": "2025-01-01",
            "valid_until": "2030-01-01",
            "equivalence_group": "concrete-C30",
            "functional_specification": "C30 same service",
            "scope": "cradle-to-gate",
            "scenario": "reference scenario",
            "geography": "EU",
            "reference_service_life": "50 years",
            "evidence_reference": "customer:row1"
        },
        {
            "product_id": "steel",
            "declaration_id": "EPD-steel",
            "declared_unit": "kg",
            "declared_quantity": 1,
            "unit_type": "declared",
            "indicator": "GWP-total",
            "indicator_unit": "kg CO2 eq",
            "indicator_version": "EF 3.1 February 2023",
            "lifecycle_modules": [
                "A1",
                "A2",
                "A3"
            ],
            "value": 10,
            "standard_version": "EN 15804:2012+A2:2019/AC:2021",
            "pcr_reference": "2019:14",
            "pcr_version": "2.0.1",
            "complementary_pcr": "none",
            "valid_from": "2025-01-01",
            "valid_until": "2030-01-01",
            "equivalence_group": "steel",
            "functional_specification": "C30 same service",
            "scope": "cradle-to-gate",
            "scenario": "reference scenario",
            "geography": "EU",
            "reference_service_life": "50 years",
            "evidence_reference": "customer:row1"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("afkdigital/building-product-epd-comparison").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "epdRecords": [
        {
            "product_id": "concrete-a",
            "declaration_id": "EPD-concrete-a",
            "declared_unit": "kg",
            "declared_quantity": 1,
            "unit_type": "declared",
            "indicator": "GWP-total",
            "indicator_unit": "kg CO2 eq",
            "indicator_version": "EF 3.1 February 2023",
            "lifecycle_modules": [
                "A1",
                "A2",
                "A3",
            ],
            "value": 12,
            "standard_version": "EN 15804:2012+A2:2019/AC:2021",
            "pcr_reference": "2019:14",
            "pcr_version": "2.0.1",
            "complementary_pcr": "none",
            "valid_from": "2025-01-01",
            "valid_until": "2030-01-01",
            "equivalence_group": "concrete-C30",
            "functional_specification": "C30 same service",
            "scope": "cradle-to-gate",
            "scenario": "reference scenario",
            "geography": "EU",
            "reference_service_life": "50 years",
            "evidence_reference": "customer:row1",
        },
        {
            "product_id": "concrete-b",
            "declaration_id": "EPD-concrete-b",
            "declared_unit": "kg",
            "declared_quantity": 1,
            "unit_type": "declared",
            "indicator": "GWP-total",
            "indicator_unit": "kg CO2 eq",
            "indicator_version": "EF 3.1 February 2023",
            "lifecycle_modules": [
                "A1",
                "A2",
                "A3",
            ],
            "value": 9,
            "standard_version": "EN 15804:2012+A2:2019/AC:2021",
            "pcr_reference": "2019:14",
            "pcr_version": "2.0.1",
            "complementary_pcr": "none",
            "valid_from": "2025-01-01",
            "valid_until": "2030-01-01",
            "equivalence_group": "concrete-C30",
            "functional_specification": "C30 same service",
            "scope": "cradle-to-gate",
            "scenario": "reference scenario",
            "geography": "EU",
            "reference_service_life": "50 years",
            "evidence_reference": "customer:row1",
        },
        {
            "product_id": "expired-c",
            "declaration_id": "EPD-expired-c",
            "declared_unit": "kg",
            "declared_quantity": 1,
            "unit_type": "declared",
            "indicator": "GWP-total",
            "indicator_unit": "kg CO2 eq",
            "indicator_version": "EF 3.1 February 2023",
            "lifecycle_modules": [
                "A1",
                "A2",
                "A3",
            ],
            "value": 10,
            "standard_version": "EN 15804:2012+A2:2019/AC:2021",
            "pcr_reference": "2019:14",
            "pcr_version": "2.0.1",
            "complementary_pcr": "none",
            "valid_from": "2025-01-01",
            "valid_until": "2026-01-01",
            "equivalence_group": "concrete-C30",
            "functional_specification": "C30 same service",
            "scope": "cradle-to-gate",
            "scenario": "reference scenario",
            "geography": "EU",
            "reference_service_life": "50 years",
            "evidence_reference": "customer:row1",
        },
        {
            "product_id": "different-pcr",
            "declaration_id": "EPD-different-pcr",
            "declared_unit": "kg",
            "declared_quantity": 1,
            "unit_type": "declared",
            "indicator": "GWP-total",
            "indicator_unit": "kg CO2 eq",
            "indicator_version": "EF 3.1 February 2023",
            "lifecycle_modules": [
                "A1",
                "A2",
                "A3",
            ],
            "value": 10,
            "standard_version": "EN 15804:2012+A2:2019/AC:2021",
            "pcr_reference": "2019:14",
            "pcr_version": "1.3.4",
            "complementary_pcr": "none",
            "valid_from": "2025-01-01",
            "valid_until": "2030-01-01",
            "equivalence_group": "concrete-C30",
            "functional_specification": "C30 same service",
            "scope": "cradle-to-gate",
            "scenario": "reference scenario",
            "geography": "EU",
            "reference_service_life": "50 years",
            "evidence_reference": "customer:row1",
        },
        {
            "product_id": "needs-density",
            "declaration_id": "EPD-needs-density",
            "declared_unit": "m3",
            "declared_quantity": 1,
            "unit_type": "declared",
            "indicator": "GWP-total",
            "indicator_unit": "kg CO2 eq",
            "indicator_version": "EF 3.1 February 2023",
            "lifecycle_modules": [
                "A1",
                "A2",
                "A3",
            ],
            "value": 10,
            "standard_version": "EN 15804:2012+A2:2019/AC:2021",
            "pcr_reference": "2019:14",
            "pcr_version": "2.0.1",
            "complementary_pcr": "none",
            "valid_from": "2025-01-01",
            "valid_until": "2030-01-01",
            "equivalence_group": "concrete-C30",
            "functional_specification": "C30 same service",
            "scope": "cradle-to-gate",
            "scenario": "reference scenario",
            "geography": "EU",
            "reference_service_life": "50 years",
            "evidence_reference": "customer:row1",
        },
        {
            "product_id": "steel",
            "declaration_id": "EPD-steel",
            "declared_unit": "kg",
            "declared_quantity": 1,
            "unit_type": "declared",
            "indicator": "GWP-total",
            "indicator_unit": "kg CO2 eq",
            "indicator_version": "EF 3.1 February 2023",
            "lifecycle_modules": [
                "A1",
                "A2",
                "A3",
            ],
            "value": 10,
            "standard_version": "EN 15804:2012+A2:2019/AC:2021",
            "pcr_reference": "2019:14",
            "pcr_version": "2.0.1",
            "complementary_pcr": "none",
            "valid_from": "2025-01-01",
            "valid_until": "2030-01-01",
            "equivalence_group": "steel",
            "functional_specification": "C30 same service",
            "scope": "cradle-to-gate",
            "scenario": "reference scenario",
            "geography": "EU",
            "reference_service_life": "50 years",
            "evidence_reference": "customer:row1",
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("afkdigital/building-product-epd-comparison").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "epdRecords": [
    {
      "product_id": "concrete-a",
      "declaration_id": "EPD-concrete-a",
      "declared_unit": "kg",
      "declared_quantity": 1,
      "unit_type": "declared",
      "indicator": "GWP-total",
      "indicator_unit": "kg CO2 eq",
      "indicator_version": "EF 3.1 February 2023",
      "lifecycle_modules": [
        "A1",
        "A2",
        "A3"
      ],
      "value": 12,
      "standard_version": "EN 15804:2012+A2:2019/AC:2021",
      "pcr_reference": "2019:14",
      "pcr_version": "2.0.1",
      "complementary_pcr": "none",
      "valid_from": "2025-01-01",
      "valid_until": "2030-01-01",
      "equivalence_group": "concrete-C30",
      "functional_specification": "C30 same service",
      "scope": "cradle-to-gate",
      "scenario": "reference scenario",
      "geography": "EU",
      "reference_service_life": "50 years",
      "evidence_reference": "customer:row1"
    },
    {
      "product_id": "concrete-b",
      "declaration_id": "EPD-concrete-b",
      "declared_unit": "kg",
      "declared_quantity": 1,
      "unit_type": "declared",
      "indicator": "GWP-total",
      "indicator_unit": "kg CO2 eq",
      "indicator_version": "EF 3.1 February 2023",
      "lifecycle_modules": [
        "A1",
        "A2",
        "A3"
      ],
      "value": 9,
      "standard_version": "EN 15804:2012+A2:2019/AC:2021",
      "pcr_reference": "2019:14",
      "pcr_version": "2.0.1",
      "complementary_pcr": "none",
      "valid_from": "2025-01-01",
      "valid_until": "2030-01-01",
      "equivalence_group": "concrete-C30",
      "functional_specification": "C30 same service",
      "scope": "cradle-to-gate",
      "scenario": "reference scenario",
      "geography": "EU",
      "reference_service_life": "50 years",
      "evidence_reference": "customer:row1"
    },
    {
      "product_id": "expired-c",
      "declaration_id": "EPD-expired-c",
      "declared_unit": "kg",
      "declared_quantity": 1,
      "unit_type": "declared",
      "indicator": "GWP-total",
      "indicator_unit": "kg CO2 eq",
      "indicator_version": "EF 3.1 February 2023",
      "lifecycle_modules": [
        "A1",
        "A2",
        "A3"
      ],
      "value": 10,
      "standard_version": "EN 15804:2012+A2:2019/AC:2021",
      "pcr_reference": "2019:14",
      "pcr_version": "2.0.1",
      "complementary_pcr": "none",
      "valid_from": "2025-01-01",
      "valid_until": "2026-01-01",
      "equivalence_group": "concrete-C30",
      "functional_specification": "C30 same service",
      "scope": "cradle-to-gate",
      "scenario": "reference scenario",
      "geography": "EU",
      "reference_service_life": "50 years",
      "evidence_reference": "customer:row1"
    },
    {
      "product_id": "different-pcr",
      "declaration_id": "EPD-different-pcr",
      "declared_unit": "kg",
      "declared_quantity": 1,
      "unit_type": "declared",
      "indicator": "GWP-total",
      "indicator_unit": "kg CO2 eq",
      "indicator_version": "EF 3.1 February 2023",
      "lifecycle_modules": [
        "A1",
        "A2",
        "A3"
      ],
      "value": 10,
      "standard_version": "EN 15804:2012+A2:2019/AC:2021",
      "pcr_reference": "2019:14",
      "pcr_version": "1.3.4",
      "complementary_pcr": "none",
      "valid_from": "2025-01-01",
      "valid_until": "2030-01-01",
      "equivalence_group": "concrete-C30",
      "functional_specification": "C30 same service",
      "scope": "cradle-to-gate",
      "scenario": "reference scenario",
      "geography": "EU",
      "reference_service_life": "50 years",
      "evidence_reference": "customer:row1"
    },
    {
      "product_id": "needs-density",
      "declaration_id": "EPD-needs-density",
      "declared_unit": "m3",
      "declared_quantity": 1,
      "unit_type": "declared",
      "indicator": "GWP-total",
      "indicator_unit": "kg CO2 eq",
      "indicator_version": "EF 3.1 February 2023",
      "lifecycle_modules": [
        "A1",
        "A2",
        "A3"
      ],
      "value": 10,
      "standard_version": "EN 15804:2012+A2:2019/AC:2021",
      "pcr_reference": "2019:14",
      "pcr_version": "2.0.1",
      "complementary_pcr": "none",
      "valid_from": "2025-01-01",
      "valid_until": "2030-01-01",
      "equivalence_group": "concrete-C30",
      "functional_specification": "C30 same service",
      "scope": "cradle-to-gate",
      "scenario": "reference scenario",
      "geography": "EU",
      "reference_service_life": "50 years",
      "evidence_reference": "customer:row1"
    },
    {
      "product_id": "steel",
      "declaration_id": "EPD-steel",
      "declared_unit": "kg",
      "declared_quantity": 1,
      "unit_type": "declared",
      "indicator": "GWP-total",
      "indicator_unit": "kg CO2 eq",
      "indicator_version": "EF 3.1 February 2023",
      "lifecycle_modules": [
        "A1",
        "A2",
        "A3"
      ],
      "value": 10,
      "standard_version": "EN 15804:2012+A2:2019/AC:2021",
      "pcr_reference": "2019:14",
      "pcr_version": "2.0.1",
      "complementary_pcr": "none",
      "valid_from": "2025-01-01",
      "valid_until": "2030-01-01",
      "equivalence_group": "steel",
      "functional_specification": "C30 same service",
      "scope": "cradle-to-gate",
      "scenario": "reference scenario",
      "geography": "EU",
      "reference_service_life": "50 years",
      "evidence_reference": "customer:row1"
    }
  ]
}' |
apify call afkdigital/building-product-epd-comparison --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,afkdigital/building-product-epd-comparison"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/RpGmdrv4YtDXPfOeU/builds/zOrKPidI7balVOH3O/openapi.json
