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

Batch

Retrieve multiple datasets in a batch, optionally with scores

post

This endpoint allows retrieving multiple datasets in a batch using their IDs. Optionally, it can also return impact scores for the specified indicators.

POST is used despite this being a read operation because dataset IDs are submitted in the request body: batches can contain up to 1000 IDs, which would exceed practical URL length limits if passed as query parameters.

Authorizations
OAuth2clientCredentialsRequired
Token URL:
Query parameters
offsetintegerOptional

Pagination start index

Default: 0
limitinteger · max: 100Optional

Number of results to return

Default: 10
versionstringOptional

Version name or 'latest'

Default: latest
system_modelstringOptional

System model name or 'cutoff'

Default: cutoff
Body
dataset_idsinteger[] · min: 1 · max: 1000Required

List of dataset IDs to retrieve (up to 1000 datasets)

indicator_idsinteger[] · max: 100Optional

List of indicators IDs to retrieve

Default: []
Responses
200

Successful search response with matching datasets

application/json
versionstringRequired
system_modelstringRequired
totalintegerOptionalDefault: 0
offsetintegerRequired
limitintegerRequired
post/v3/api1/datasets/batch
POST /v3/api1/datasets/batch HTTP/1.1
Host: api.ecoinvent.org
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 39

{
  "dataset_ids": [
    1
  ],
  "indicator_ids": [
    1
  ]
}
{
  "version": "3.12",
  "system_model": "cutoff",
  "total": 1,
  "offset": 0,
  "limit": 10,
  "datasets": [
    {
      "id": 12345,
      "activity": "electricity production",
      "product": "electricity, high voltage",
      "geography": "Switzerland (CH)",
      "description": "Generation of high-voltage electricity supplied to the grid",
      "included_activity_starts": "from cradle",
      "included_activity_ends": "to gate",
      "time_period_comment": "Representative for the period 2012-2022",
      "technology_comment": "Average European technology mix",
      "unit": "kWh",
      "time_period": "2012-2022",
      "activity_type": "TRANSFORMING_ACTIVITY",
      "isic_section": "D - Electricity",
      "isic_class": "3510 - Electric power generation",
      "sectors": [
        "Electricity"
      ],
      "activity_spold_uuid": "ff12345a-1234-5678-9abc-123456789abc",
      "product_spold_uuid": "ee12345a-1234-5678-9abc-123456789abc",
      "geography_spold_uuid": "dd12345a-1234-5678-9abc-123456789abc",
      "ecoquery_url": "https://ecoquery.ecoinvent.org/3.12/cutoff/dataset/12345/documentation",
      "ecoquery_history_url": "https://ecoquery.ecoinvent.org/3.12/cutoff/dataset/12345/history",
      "impact_scores": [
        {
          "id": 43,
          "score": 42.5,
          "unit": "kg CO2 eq",
          "method": "IPCC 2021",
          "category": "climate change",
          "indicator": "global warming potential"
        }
      ]
    }
  ]
}

Last updated

Was this helpful?