For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Quick Reference for AI Agents

A compact reference to the 2050 Materials API for LLMs, agents and developers who want everything on one page: authentication, endpoints, query patterns, response shape and limits.

2050 Materials provides construction-industry sustainability data through an API: life cycle assessment (LCA) data on construction products and generic materials worldwide. This page summarises how to use it. Each section links to the full documentation.

For authoritative field names, types and allowed values, use the machine-readable OpenAPI spec and the filter endpoints rather than this page.

For agents

Ways for an agent to read these docs:

Machine-readable specs

Base URLs

  • API base: https://app.2050-materials.com/

  • Every endpoint, including get_best_match, is under the path prefix /developer/api/.

  • There is no public sandbox or staging environment.

Authentication

The API uses JWT Bearer tokens, obtained in two steps. See Using the 2050 Materials APIs for the full guide.

  1. Register and generate a Developer Token at https://app.2050-materials.com/accounts/edit-account/.

  2. Exchange the Developer Token for an API Token:

    • GET https://app.2050-materials.com/developer/api/token/getapitoken/

    • Header: Authorization: Bearer <DEVELOPER_TOKEN>

    • Response: {"api_token": "...", "refresh_token": "..."}

  3. Send the API Token on every other request: Authorization: Bearer <API_TOKEN>.

  4. API Tokens expire after 24 hours. To renew one:

    • POST https://app.2050-materials.com/developer/api/token/refresh/

    • Header: Authorization: Bearer <REFRESH_TOKEN>

    • Response: a new {"api_token": "...", "refresh_token": "..."}

  5. The refresh token also expires after 24 hours. After that, call token/getapitoken/ again with your Developer Token.

Endpoints

Method
Path
Purpose

GET

/developer/api/token/getapitoken/

Exchange a Developer Token for an API Token

POST

/developer/api/token/refresh/

Renew an API Token

GET

/developer/api/get_products

Product search and retrieval (full data, licensed)

GET

/developer/api/get_products_open_api

Product search (open data, limited fields)

GET

/developer/api/get_generic_materials

Generic material data

GET

/developer/api/get_product_filters/

Valid filter values for products

GET

/developer/api/get_generic_material_filters/

Valid filter values for generic materials

POST

/developer/api/get_best_match/

AI-powered mapping of bill-of-quantities items to materials

GET

/developer/api/get_co2_warming_potential

Early-stage embodied carbon model

Details for each endpoint: Available Endpoints.

Querying patterns

Call get_product_filters or get_generic_material_filters first to get valid IDs for product_type, material_type, building_applications and other filters. These rules hold for get_products, get_products_open_api, get_generic_materials and the filters in get_best_match:

  • ID or name: product_type, product_types, product_type_family, material_type, material_types, material_type_family, building_applications and declared_unit. For products also building_types, company, certificate_type, certificate_type_family, manufacturing_country, continent and city. For generic materials also data_source. When every value is made only of digits, the values match IDs. Otherwise each value matches names that contain it, ignoring case (for declared_unit, the unit text, e.g. m2). Don't mix IDs and names in one filter: an ID is then read as name text. For several values, repeat the parameter (product_type=5&product_type=7): product_type=5,7 is read as one name and matches nothing.

  • Code or name, exact (ignoring case): icms_classifications, nrm1_classifications and rics_wlca_classifications.

  • The id or the value from the filter endpoint: norm_price (for example 2 or ££).

  • Text only: name, material_name, description, epd_operator and compliances match text that contains the value, ignoring case.

See Product Data (Full) for every filter.

Common query parameters for get_products and get_products_open_api:

  • data=mini returns only name, company, product_url and product_api_url. get_products only: get_products_open_api always returns its fixed set of fields.

  • group_by groups results. Common values: company_name, product_type, material, manufacturing_location, continent, price_range, building_applications, building_types, certification_types. On get_products_open_api only company_name, product_type, material, manufacturing_location and continent work; the others put every result under Undefined.

  • sort_by takes a field name (for example name, updated, density, u_value), or location together with sort_reference_location or sort_reference_latitude and sort_reference_longitude.

  • exclude_nulls drops products missing a given field, for example exclude_nulls=manufacturing.

  • name matches a full or partial product name.

  • created_after, created_before, updated_after and updated_before filter by date.

  • URL-encode special characters in filter values (+, &, =).

  • Legacy (superseded) items are excluded by default. Send exclude_legacy=false to include them on get_products, get_products_open_api and get_generic_materials. Archived items and other companies' unverified items are never returned. See Product and Material Statuses.

For get_generic_materials, filter by product_types, material_type, material_name, data_source and declared_unit. See Generic Material Data.

Response shape and pagination

get_products, get_products_open_api and get_generic_materials paginate by page number. Follow the next URL to get the next page. The count keys differ: product endpoints use Products, get_generic_materials uses Materials.

Field (products)
Field (generic materials)
Meaning

results

results

Array of product or generic material objects

TotalProducts

TotalMaterials

Total number of matches

countProductsOnPage

countMaterialsOnPage

Number of results on this page

current_page

current_page

Current page number

product_range

material_range

Range of results on this page, for example [1, 200]

next

next

URL of the next page, or null

previous

previous

URL of the previous page, or null

With group_by, results are nested under the group keys. get_best_match and get_co2_warming_potential return different shapes; see their pages under Available Endpoints.

Rate limits and errors

  • All endpoints allow 10 requests per second per IP address, with bursts up to 50. Above that the API returns HTTP 429.

  • Trial and open-data accounts also have an hourly limit (100 calls per hour by default), which also returns HTTP 429.

  • On HTTP 429, wait and retry. The response has no Retry-After header.

  • get_best_match is not idempotent, so avoid sending the same request twice.

  • For authentication failures, server errors or access questions, contact api@2050-materials.com.

Licensing and responsible use

  • The full endpoints need a license. Contact api@2050-materials.com.

  • get_products_open_api works with a free account and returns GWP and A1-A3 data only.

  • Uniclass fields are subject to the NBS Uniclass licensing terms.

  • Caching and redistribution are not covered here. Treat redistribution as restricted unless your license agreement allows it, and contact api@2050-materials.com for guidance.

  • Use the API instead of scraping app.2050-materials.com, and do not try to work around authentication or rate limits.

  • Report security issues to api@2050-materials.com.

Examples

More examples in JavaScript and Python: Code Examples.

Get an API Token

Search products by product type

Python

Last updated

Was this helpful?