> For the complete documentation index, see [llms.txt](https://docs.2050-materials.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.2050-materials.com/using-the-2050-materials-api/available-endpoints/product-data-full.md). Agents can also search and read this documentation through its [MCP server](https://docs.2050-materials.com/~gitbook/mcp).

# Product Data (Full)

get\_products and get\_product\_filters: what they return, how filtering works, worked examples and common mistakes. Every parameter is in the Swagger UI, every response field in the Field Dictionary.

`/get_products` returns full product data, including material facts (simplified EPD values) and the expanded EPD tables. `/get_product_filters` returns the filter options available for a query.

{% hint style="info" %}
**Where the reference lives.** Every parameter, with its accepted values and errors, is in the Swagger UI: [get\_products](https://app.2050-materials.com/developer/documentation-ui/#/Products/get_products_list) and [get\_product\_filters](https://app.2050-materials.com/developer/documentation-ui/#/Products/get_product_filters_list). The Swagger UI is a JavaScript page, so an agent or script that fetches it gets no parameters: read [schema.json](https://app.2050-materials.com/developer/schema.json), the same reference as JSON. Every response field, with its JSON path, type, unit and when it is present, is in the [Field Dictionary: get\_products fields](https://docs.2050-materials.com/methodology-documentation/field-dictionary/get-products.md), and a full sample response is in [Sample responses](https://docs.2050-materials.com/methodology-documentation/field-dictionary/sample-responses.md#get_products). This page explains how to use them.
{% endhint %}

{% hint style="success" %}
**Try this endpoint in your browser.** The [2050 Materials SDK](https://sdk.2050-materials.com) calls `get_products` with your developer token, with no code.
{% endhint %}

## Endpoints <a href="#endpoints" id="endpoints"></a>

* `GET https://app.2050-materials.com/developer/api/get_products` (no trailing slash)
* `GET https://app.2050-materials.com/developer/api/get_product_filters/` (with trailing slash)

Send your API token in the header `Authorization: Bearer <api_token>`.

## Filtering the data <a href="#filtering-the-data" id="filtering-the-data"></a>

Filter options can be retrieved dynamically using the `get_product_filters` endpoint. This endpoint can also take the same filtering as the `get_products` endpoint, to dynamically return the available filters within a response (e.g. for implementing dropdowns to further filter a response).

`get_product_filters` also takes `filters` (which sections to return) and `include_counts` (a product count per option): see [get\_product\_filters in the Swagger UI](https://app.2050-materials.com/developer/documentation-ui/#/Products/get_product_filters_list), or [schema.json](https://app.2050-materials.com/developer/schema.json) for agents and scripts.

`filters` takes these section names. Send one, several separated by commas (`filters=product_type,company`), or repeat the parameter (`filters=material_type&filters=building_applications`). Without `filters`, the response has every section. An unknown name returns 400. `material_types` is read as `material_type`.

* Classification: `product_type`, `product_type_family`, `material_type`, `material_type_family`, `building_applications`, `building_types`
* Company and location: `company`, `manufacturing_country`, `continent`, `city`
* Certificates and data: `certificate_type`, `certificate_type_family`, `source`, `epd_operator`, `compliances`, `lca_database`, `lca_tool`, `verification_type`
* Classification systems: `work_section_caws`, `csi_masterformat`, `uniclass_systems`, `uniclass_products`, `uniclass_materials`, `icms_classifications`, `nrm1_classifications`, `rics_wlca_classifications`
* Other: `fire_performance`, `norm_price`, `collection`, `functional_unit`

Each section is an object with `filter_name`, `filter_type` and `filter_options`. Each entry in `filter_options` has `value` (the option's name) and `id`; the `epd_operator`, `compliances`, `lca_database`, `lca_tool` and `verification_type` entries have `value` only. With `include_counts=true`, each entry also has `count`. The `city` section also has `country_city_map`, the cities grouped by country.

How filter values are matched:

* Repeat a parameter to match any of several values (OR), e.g. `product_type=2&product_type=3`. Different parameters combine with AND.
* Filters that take ids or names: when every value is made only of digits, they match ids exactly. Otherwise each value matches names that contain it, ignoring case.
* Dates are `YYYY-MM-DD`. `_after` compares with the start of that day, so products changed later that day are included. `_before` leaves out that day. `_between` takes `YYYY-MM-DD,YYYY-MM-DD` and includes both ends, so `created_between=2022-01-01,2022-12-31` covers all of 2022.

### Filter options and examples <a href="#filter-options-and-examples" id="filter-options-and-examples"></a>

Every filter, with its accepted values, is listed in the Swagger UI under [get\_products](https://app.2050-materials.com/developer/documentation-ui/#/Products/get_products_list). The Swagger UI is a JavaScript page, so an agent or script that fetches it gets no parameters: read [schema.json](https://app.2050-materials.com/developer/schema.json), the same reference as JSON.

{% code title="get\_products: insulation from Germany, A1-A3 fossil GWP at most 10" %}

```
GET /developer/api/get_products?product_type=Insulation&manufacturing_country=Germany&global_warming_potential_fossil__A1A2A3__max=10
```

{% endcode %}

{% code title="get\_products: values converted to m2, highest A1-A3 first" %}

```
GET /developer/api/get_products?functional_unit=m2&sort_by=manufacturing_corrected&sort_order=desc
```

{% endcode %}

#### functional\_unit values <a href="#functional_unit-values" id="functional_unit-values"></a>

`functional_unit` takes one target unit: its unit text or its numeric id. The text must match the unit exactly, case included: `m2` works, `M2` returns 400. The primary units are `kg`, `m`, `m2`, `m3` and `piece` (see [Unit conversions](https://docs.2050-materials.com/methodology-documentation/unit-conversions.md)). Other units defined as a multiple of one of them work too, for example `mt` (a multiple of kg) or `km` (of m). The list is not fixed: `get_product_filters?filters=functional_unit` returns the live list, with ids, of the units the products in your result can be converted to. A unit that does not exist returns 400. A product with no conversion to the unit is left out of the results. `get_products_open_api` ignores `functional_unit`.

{% code title="get\_products: sort by distance from a place" %}

```
GET /developer/api/get_products?sort_by=location&sort_reference_location=London%2C%20UK
```

{% endcode %}

{% code title="get\_products: sort by distance from a latitude and longitude" %}

```
GET /developer/api/get_products?sort_by=location&sort_reference_latitude=45.7128&sort_reference_longitude=-74.0060
```

{% endcode %}

`data=mini` returns a smaller object per product, for dropdowns and discovery, without retrieving the full response. Omit `data` (or use `data=full`) for the full response.

{% code title="get\_products?data=mini: one result" %}

```json
{
  "name": "Grey Cotto Sheathing and flooring",
  "company": "Fornace Brioni Cotto",
  "product_url": "https://app.2050-materials.com/product/details_designer/fornace-brioni-cotto-grey-cotto-sheathing-and-flooring",
  "product_api_url": "https://app.2050-materials.com/developer/api/get_products?unique_product_uuid_v2=54a1fcde-f8cd-11ed-9c01-0242ac120004"
}
```

{% endcode %}

### Common mistakes <a href="#common-mistakes" id="common-mistakes"></a>

* **Unencoded special characters.** Encode `+`, `&` and `=` in values. An unencoded `+` is read as a space, so `compliances=EN 15804+A2` must be sent as `compliances=EN%2015804%2BA2`.
* **`sort_order` without `sort_by`** returns 400.
* **`sort_by` takes only the listed values.** The Swagger UI lists them. Any other value returns 400. The external ids (`ec3_product_id`, `declare_label_id`, `eco_platform_id`, `nature_plus_id`) cannot be sorted on, because a product can have several. Empty and null values sort last in both orders.
* **`declared_unit` is not a conversion.** It only filters, by unit id or the whole unit text, ignoring case: `m` does not match `m2` or `m3`, and `kWh` does not match `kWh (Net CV)`. Use `functional_unit` to convert values to one unit.
* **`compliances` and `epd_operator` are exact.** Each matches one `value` from `get_product_filters` exactly, ignoring case and surrounding spaces, so `compliances=EN%2015804` does not return `EN 15804+A2` products and `epd_operator=Norge` returns nothing. The count shown for an option is the number of products that filter returns.
* **Single-value filters.** `compliances`, `epd_operator` and the external id filters (`ec3_product_id`, `declare_label_id`, `eco_platform_id`, `nature_plus_id`, `external_id`, `registration_number`) use only the last value when repeated.
* **`collection` ignores everything else.** With `collection`, every other filter, `sort_by`, `exclude_nulls` and `functional_unit` are ignored.

## Output Fields in the Response <a href="#output-fields-in-the-response" id="output-fields-in-the-response"></a>

Every response field is in the [Field Dictionary: get\_products fields](https://docs.2050-materials.com/methodology-documentation/field-dictionary/get-products.md), with its JSON path, type, unit, and whether it can be null or absent. The [get\_products sample response](https://docs.2050-materials.com/methodology-documentation/field-dictionary/sample-responses.md#get_products) shows a full result.

The Material Facts and Expanded LCA fields sit inside a nested `material_facts` object on each product. Each Expanded LCA field is a dictionary keyed by LCA module (e.g. `{"A1A2A3": 1.2, "C4": 0.05}`). Fields with no value (null or empty) are left out of the response.

### Product Fields <a href="#product-fields" id="product-fields"></a>

Moved to the [Field Dictionary](https://docs.2050-materials.com/methodology-documentation/field-dictionary/get-products.md#each-item-in-results): the fields at the top level of each result.

The `uniclass_systems`, `uniclass_products` and `uniclass_materials` fields contain Uniclass data © NBS, licensed under the Creative Commons Attribution-NoDerivatives 4.0 International licence (<https://creativecommons.org/licenses/by-nd/4.0/>). Source: <https://www.thenbs.com/uniclass>

### Material Facts (simplified EPD fields) <a href="#material-facts-simplified-epd-fields" id="material-facts-simplified-epd-fields"></a>

Moved to the [Field Dictionary](https://docs.2050-materials.com/methodology-documentation/field-dictionary/get-products.md#material_facts): the fields under `results[].material_facts`.

### Expanded LCA Information from EPDs <a href="#expanded-lca-information-from-epds" id="expanded-lca-information-from-epds"></a>

The expanded LCA fields hold the EPD's indicator tables, one value per LCA module. Their units are in the [Field Dictionary](https://docs.2050-materials.com/methodology-documentation/field-dictionary/get-products.md#material_facts). This table maps each field to the EN 15804 indicator abbreviation used in EPDs.

#### Input table EPD fields <a href="#input-table-epd-fields" id="input-table-epd-fields"></a>

| Field                                        | EPD abbreviation | Indicator                                                           |
| -------------------------------------------- | ---------------- | ------------------------------------------------------------------- |
| `net_fresh_water_use`                        | FW               | Use of net fresh water                                              |
| `non_renewable_primary_energy`               | PENRE            | Use of non-renewable primary energy                                 |
| `non_renewable_primary_energy_raw_materials` | PENRM            | Use of non-renewable primary energy resources used as raw materials |
| `non_renewable_secondary_fuels`              | NRSF             | Use of non-renewable secondary fuels                                |
| `renewable_primary_energy`                   | PERE             | Use of renewable primary energy                                     |
| `renewable_primary_energy_raw_materials`     | PERM             | Use of renewable primary energy resources used as raw materials     |
| `renewable_secondary_fuels`                  | RSF              | Use of renewable secondary fuels                                    |
| `secondary_material_use`                     | SM               | Use of secondary material                                           |
| `total_non_renewable_primary_energy`         | PENRT            | Total use of non-renewable primary energy resource                  |
| `total_renewable_primary_energy`             | PERT             | Total use of renewable primary energy resources                     |

#### Output table EPD fields <a href="#output-table-epd-fields" id="output-table-epd-fields"></a>

| Field                           | EPD abbreviation | Indicator                     |
| ------------------------------- | ---------------- | ----------------------------- |
| `components_for_reuse`          | CRU              | Components for re-use         |
| `exported_electrical_energy`    | EEE              | Exported electrical energy    |
| `exported_thermal_energy`       | EET              | Exported thermal energy       |
| `hazardous_waste_disposed`      | HWD              | Hazardous waste disposed      |
| `materials_for_energy_recovery` | MER              | Materials for energy recovery |
| `materials_for_recycling`       | MFR              | Materials for recycling       |
| `non_hazardous_waste_disposed`  | NHWD             | Non-hazardous waste disposed  |
| `radioactive_waste_disposed`    | RWD              | Radioactive waste disposed    |

#### Impact table EPD fields <a href="#impact-table-epd-fields" id="impact-table-epd-fields"></a>

| Field                                       | EPD abbreviation | Indicator                                                                 |
| ------------------------------------------- | ---------------- | ------------------------------------------------------------------------- |
| `abiotic_depletion_potential_fossil`        | ADPF             | Abiotic depletion potential for fossil resources                          |
| `abiotic_depletion_potential_non_fossil`    | ADPE             | Abiotic depletion potential for non-fossil resources                      |
| `acidification_potential`                   | AP               | Acidification potential of soil and water                                 |
| `eutrophication_potential_freshwater`       | EP-f             | Eutrophication potential – freshwater                                     |
| `eutrophication_potential_marine`           | EP-m             | Eutrophication potential – marine                                         |
| `eutrophication_potential_terrestrial`      | EP-t             | Eutrophication potential – terrestrial                                    |
| `exported_energy_aggregate`                 | EE-agg           | Aggregate exported energy when not split by type                          |
| `formation_potential_of_tropospheric_ozone` | POCP             | Formation potential of tropospheric ozone                                 |
| `freshwater_ecotoxicity_potential`          | ETP-fw           | Ecotoxicity potential for aquatic freshwater                              |
| `global_warming_potential_aggregate`        | GWP-agg          | Aggregated global warming potential when not split by type                |
| `global_warming_potential_biogenic`         | GWP-b            | Global warming potential, Biogenic                                        |
| `global_warming_potential_fossil`           | GWP-f            | Global warming potential, Fossil                                          |
| `global_warming_potential_greenhouse_gases` | GWP-ghg          | Global warming potential, Greenhouse gases                                |
| `global_warming_potential_luluc`            | GWP-luluc        | Global warming potential, LULUC (Land Use, Land-Use Change, and Forestry) |
| `human_toxicity_potential_cancer`           | HTP-c            | Human toxicity potential, cancer effects                                  |
| `human_toxicity_potential_non_cancer`       | HTP-nc           | Human toxicity potential, non-cancer effects                              |
| `ionising_radiation_potential`              | IRP              | Ionising radiation potential – human health effects                       |
| `ozone_depletion_potential`                 | ODP              | Depletion potential of the stratospheric ozone layer                      |
| `particulate_matter_formation_potential`    | PM               | Potential formation of particulate matter                                 |
| `soil_quality_potential`                    | SQP              | Soil quality potential index                                              |
| `water_deprivation_potential`               | WDP              | Water (user) deprivation potential                                        |

### Non-Environmental Product Data <a href="#non-environmental-product-data" id="non-environmental-product-data"></a>

#### Physical properties <a href="#physical-properties" id="physical-properties"></a>

Moved to the [Field Dictionary](https://docs.2050-materials.com/methodology-documentation/field-dictionary/get-products.md#each-item-in-results): `density`, `grammage`, `linear_density`, `mass_per_piece`, `thickness`, `cross_sectional_area` and their `_estimated` flags, which are `true` when 2050 Materials estimated the value rather than taking it from the EPD or the manufacturer.

#### Technical parameters <a href="#technical-parameters" id="technical-parameters"></a>

Moved to the [Field Dictionary](https://docs.2050-materials.com/methodology-documentation/field-dictionary/get-products.md#each-item-in-results): technical values such as `u_value`, `thermal_conductivity`, `fire_performance` and the HVAC fields.

### Other Information <a href="#other-information" id="other-information"></a>

#### LCA modules information <a href="#lca-modules-information" id="lca-modules-information"></a>

* **A1** - Description: Raw material supply: Extraction and processing of raw materials.
* **A2** - Description: Transport to the manufacturer: Transportation of raw materials to the factory.
* **A3** - Description: Manufacturing: The manufacturing process of the product.
* **A1A2A3** - Description: Product stage combined: Covers raw material extraction, transport to the manufacturer, and manufacturing combined.
* **A4** - Description: Transport to the construction site: Transportation of the construction product to the building site.
* **A5** - Description: Installation in the building: The process of installing the product into the building during construction.
* **B1** - Description: Use: The use of the product during the building’s life, including maintenance and energy use.
* **B2** - Description: Maintenance: Activities involved in maintaining the product during its life cycle.
* **B3** - Description: Repair: The repair of the product, if necessary, during its life cycle.
* **B4** - Description: Replacement: The replacement of the product during the building’s life cycle.
* **B5** - Description: Refurbishment: Refurbishment or renovation of the building/product.
* **B6** - Description: Operational energy use: The energy used by the product during its operational life.
* **B7** - Description: Operational water use: The water used by the product during its operational life.
* **Btotal** - Description: Total use stage: Sum of use, maintenance, repair, replacement, refurbishment, operational energy use, and operational water use.
* **C1** - Description: Deconstruction: The process of deconstructing the building at the end of its life.
* **C2** - Description: Transportation of waste: Transport of demolished materials and products.
* **C3** - Description: Waste processing: Processing of waste materials for disposal or recycling.
* **C4** - Description: Disposal: Final disposal of waste materials.
* **Ctotal** - Description: Total end-of-life stage: Sum of deconstruction, transportation of waste, waste processing, and disposal.
* **D** - Description: Benefits and loads beyond the system boundary: Credits for recycling, energy recovery, etc.

#### Additional Information about the endpoint <a href="#additional-information-about-the-endpoint" id="additional-information-about-the-endpoint"></a>

* The API uses JWT authentication and requires the user to be authenticated.
* The endpoint supports pagination with `page` and `page_size`. `page_size` defaults to 200 and cannot exceed 200 (a larger value returns 400 "Page size cannot be more than 200").
* The response is an object with `TotalProducts`, `countProductsOnPage`, `current_page`, `product_range`, `next`, `previous` and `results` (the products on this page).
* Trial accounts receive at most 5 results, from page 1 only, whatever the `page_size`. Any `page` other than 1 returns 401.
* The API handles different user roles and permissions, with specific access and rate limits.
* Various response statuses are managed, including "200 OK" for successful requests, "400 Bad Request" for invalid parameters (e.g. "x is not valid query parameter", a page size over 200, or an invalid `source`, `exclude_nulls` or `functional_unit` value), "401 Unauthorized" for access issues, "403 Forbidden" when filtering by a `collection` you cannot access, and "429 Too Many Requests" for rate limit exceeding.

This endpoint offers an extensive and detailed overview of products, enabling users to make informed decisions based on sustainability, technical specifications, and compliance standards in the construction industry.
