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 agents
Ways for an agent to read these docs:
llms.txt: every page, with a one-line description of each. Use it to pick the page to open.
llms-full.txt: every page in one Markdown file.
Any page as Markdown: add
.mdto its URL, for example https://docs.2050-materials.com/readme/using-the-2050-materials-api/quick-reference-for-ai-agents.md.MCP server:
https://docs.2050-materials.com/~gitbook/mcp. ItssearchDocumentationtool searches these docs and returns links to the pages.Field Dictionary: every response field of
get_products,get_products_open_apiandget_generic_materials, with its full JSON path, type, unit, null rule and meaning, and sample responses. Generated from the OpenAPI spec.Every heading has a fixed anchor, so you can link to a section. For example, the fields of a product's
material_factsare at Product Data (Full): Material Facts.
Machine-readable specs
OpenAPI / Swagger UI: https://app.2050-materials.com/developer/documentation-ui/
OpenAPI 3.0 spec (JSON): https://app.2050-materials.com/developer/schema.json
SDK dashboard: https://sdk.2050-materials.com
Python package
aecdata: https://pypi.org/project/aecdata/Open-source SDKs on GitHub: https://github.com/2050-Materials
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.
Register and generate a Developer Token at https://app.2050-materials.com/accounts/edit-account/.
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": "..."}
Send the API Token on every other request:
Authorization: Bearer <API_TOKEN>.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": "..."}
The refresh token also expires after 24 hours. After that, call
token/getapitoken/again with your Developer Token.
Endpoints
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_applicationsanddeclared_unit. For products alsobuilding_types,company,certificate_type,certificate_type_family,manufacturing_country,continentandcity. For generic materials alsodata_source. When every value is made only of digits, the values match IDs. Otherwise each value matches names that contain it, ignoring case (fordeclared_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,7is read as one name and matches nothing.Code or name, exact (ignoring case):
icms_classifications,nrm1_classificationsandrics_wlca_classifications.The
idor thevaluefrom the filter endpoint:norm_price(for example2or££).Text only:
name,material_name,description,epd_operatorandcompliancesmatch 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=minireturns onlyname,company,product_urlandproduct_api_url.get_productsonly:get_products_open_apialways returns its fixed set of fields.group_bygroups results. Common values:company_name,product_type,material,manufacturing_location,continent,price_range,building_applications,building_types,certification_types. Onget_products_open_apionlycompany_name,product_type,material,manufacturing_locationandcontinentwork; the others put every result underUndefined.sort_bytakes a field name (for examplename,updated,density,u_value), orlocationtogether withsort_reference_locationorsort_reference_latitudeandsort_reference_longitude.exclude_nullsdrops products missing a given field, for exampleexclude_nulls=manufacturing.namematches a full or partial product name.created_after,created_before,updated_afterandupdated_beforefilter by date.URL-encode special characters in filter values (
+,&,=).Legacy (superseded) items are excluded by default. Send
exclude_legacy=falseto include them onget_products,get_products_open_apiandget_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.
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-Afterheader.get_best_matchis 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_apiworks 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.comfor 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?