For the complete documentation index, see llms.txt. This page is also available as Markdown.

Exchanges

Retrieve the intermediate exchanges of a dataset

get

This endpoint returns the technosphere flows of a dataset, with their suppliers, classifications and properties.

Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
idintegerRequired

Dataset ID to retrieve

Query parameters
offsetintegerOptional

Pagination start index

Default: 0
limitinteger · min: 1 · max: 100Optional

Number of results to return

Default: 20
versionstringOptional

Version name or 'latest'

Default: latest
system_modelstringOptional

System model name or 'cutoff'

Default: cutoff
Responses
200

Successful response with the requested intermediate exchanges

application/json

A page of the intermediate exchanges of a dataset.

offsetintegerRequired
limitintegerRequired
totalintegerRequired

Total number of results

versionstringRequired
system_modelstringRequired
dataset_idintegerRequired
get/v3/api1/datasets/{id}/exchanges/intermediate
GET /v3/api1/datasets/{id}/exchanges/intermediate HTTP/1.1
Host: api.ecoinvent.org
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "offset": 0,
  "limit": 20,
  "total": 10,
  "version": "3.12",
  "system_model": "cutoff",
  "dataset_id": 12345,
  "results": [
    {
      "intermediate_exchange": {
        "spold_uuid": "25ecae5a-e387-4b5d-b7e1-6d1d1e3a0d2e",
        "name": "electricity, medium voltage"
      },
      "unit": {
        "name": "kWh"
      },
      "group": "FROM_TECHNOSPHERE",
      "amount": 0.501384147,
      "comment": "Estimated from the energy balance",
      "supplier": {
        "dataset_id": 13759,
        "name": "market group for electricity, medium voltage",
        "geography": "RNA"
      },
      "production_volume": {
        "amount": 244053333.333333
      },
      "uncertainty": {
        "type": "lognormal",
        "pedigree_matrix": [
          1,
          2,
          1,
          5,
          2
        ],
        "value": {
          "mean_value": 0.501384147,
          "variance_with_pedigree_uncertainty": 0.01477
        }
      },
      "classifications": [
        {
          "system": "CPC",
          "value": "17100: Electrical energy"
        }
      ],
      "properties": [
        {
          "property": {
            "spold_uuid": "a9358458-9724-4f03-b622-106eda248916",
            "name": "carbon content"
          },
          "unit": {
            "name": "dimensionless"
          },
          "amount": 0.856
        }
      ]
    }
  ]
}

Retrieve the elementary exchanges of a dataset

get

This endpoint returns the environmental flows of a dataset, with their compartments, direction and properties.

Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
idintegerRequired

Dataset ID to retrieve

Query parameters
offsetintegerOptional

Pagination start index

Default: 0
limitinteger · min: 1 · max: 100Optional

Number of results to return

Default: 20
versionstringOptional

Version name or 'latest'

Default: latest
system_modelstringOptional

System model name or 'cutoff'

Default: cutoff
Responses
200

Successful response with the requested elementary exchanges

application/json

A page of the elementary exchanges of a dataset.

offsetintegerRequired
limitintegerRequired
totalintegerRequired

Total number of results

versionstringRequired
system_modelstringRequired
dataset_idintegerRequired
get/v3/api1/datasets/{id}/exchanges/elementary
GET /v3/api1/datasets/{id}/exchanges/elementary HTTP/1.1
Host: api.ecoinvent.org
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "offset": 0,
  "limit": 20,
  "total": 150,
  "version": "3.12",
  "system_model": "cutoff",
  "dataset_id": 12345,
  "results": [
    {
      "elementary_exchange": {
        "spold_uuid": "831f249e-53f2-49cf-a93c-7cee105f048e",
        "name": "Water, unspecified natural origin"
      },
      "compartment": {
        "name": "natural resource"
      },
      "sub_compartment": {
        "name": "in water"
      },
      "unit": {
        "name": "m3"
      },
      "amount": 0.000051304,
      "direction": "FROM_ENVIRONMENT",
      "comment": "Average water consumption of the factory",
      "cas_number": "007732-18-5",
      "uncertainty": {
        "type": "lognormal",
        "pedigree_matrix": [
          2,
          2,
          1,
          5,
          2
        ],
        "value": {
          "mean_value": 0.000051304,
          "variance_with_pedigree_uncertainty": 0.0038
        }
      },
      "properties": [
        {
          "property": {
            "spold_uuid": "a9358458-9724-4f03-b622-106eda248916",
            "name": "carbon content"
          },
          "unit": {
            "name": "dimensionless"
          },
          "amount": 0.0104
        }
      ]
    }
  ]
}

Last updated

Was this helpful?