Batch
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
offsetintegerOptionalDefault:
Pagination start index
0limitinteger · max: 100OptionalDefault:
Number of results to return
10versionstringOptionalDefault:
Version name or 'latest'
latestsystem_modelstringOptionalDefault:
System model name or 'cutoff'
cutoffBody
dataset_idsinteger[] · min: 1 · max: 1000Required
List of dataset IDs to retrieve (up to 1000 datasets)
indicator_idsinteger[] · max: 100OptionalDefault:
List of indicators IDs to retrieve
[]Responses
200
Successful search response with matching datasets
application/json
versionstringRequired
system_modelstringRequired
totalintegerOptionalDefault:
0offsetintegerRequired
limitintegerRequired
401
Unauthorized
application/json
403
Forbidden
application/json
404
Requested resource not found
application/json
422
Validation Error
application/json
500
Internal Server Error
application/json
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?