Datasets
This endpoint allows retrieving multiple datasets in a batch using their IDs. Optionally, it can also return impact scores for the specified indicators.
Authorizations
Query parameters
fromintegerOptionalDefault:
Pagination start index
0
limitinteger · max: 100OptionalDefault:
Number of results to return
10
versionstringOptionalDefault:
Version name or 'latest'
latest
system_modelstringOptionalDefault:
System model name or 'cutoff'
cutoff
Header parameters
X-User-IdstringOptional
X-Organization-IdstringOptional
Body
dataset_idsinteger[] · min: 1 · max: 10000Required
List of dataset IDs to retrieve (up to 10000 datasets)
indicator_idsinteger[] · max: 100OptionalDefault:
List of indicators IDs to retrieve
[]
Responses
200
Successful search response with matching datasets
application/json
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
POST /v0/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
]
}
{
"total": 1,
"datasets": [
{
"id": 12345,
"activity": "electricity production",
"product": "electricity, high voltage",
"description": "Production of high voltage electricity",
"geography": "Switzerland (CH)",
"unit": "kWh",
"time_period": "2012-2022",
"activity_type": "ordinary transforming activity",
"isic_section": "D - Electricity",
"isic_class": "3510 - Electric power generation",
"activity_spold_uuid": "ff12345a-1234-5678-9abc-123456789abc",
"geography_spold_uuid": "dd12345a-1234-5678-9abc-123456789abc",
"product_spold_uuid": "ee12345a-1234-5678-9abc-123456789abc",
"sectors": [
"Electricity"
],
"url": "https://ecoquery.ecoinvent.org/3.00/cutoff/dataset/12345/documentation",
"url_history": "https://ecoquery.ecoinvent.org/3.00/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"
}
]
}
]
}
This endpoint allows retrieving a specific dataset using its ID. Optionally, it can also return impact scores for the specified indicators.
Authorizations
Path parameters
idintegerRequired
Dataset ID to retrieve
Query parameters
indicator_idsinteger[]OptionalDefault:
List of indicators IDs to retrieve
[]
versionstringOptionalDefault:
Version name or 'latest'
latest
system_modelstringOptionalDefault:
System model name or 'cutoff'
cutoff
Header parameters
X-User-IdstringOptional
X-Organization-IdstringOptional
Responses
200
Successful response with the requested dataset
application/json
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
get
GET /v0/datasets/{id} HTTP/1.1
Host: api.ecoinvent.org
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"id": 12345,
"activity": "electricity production",
"product": "electricity, high voltage",
"description": "Production of high voltage electricity",
"geography": "Switzerland (CH)",
"unit": "kWh",
"time_period": "2012-2022",
"activity_type": "ordinary transforming activity",
"isic_section": "D - Electricity",
"isic_class": "3510 - Electric power generation",
"activity_spold_uuid": "ff12345a-1234-5678-9abc-123456789abc",
"geography_spold_uuid": "dd12345a-1234-5678-9abc-123456789abc",
"product_spold_uuid": "ee12345a-1234-5678-9abc-123456789abc",
"sectors": [
"Electricity"
],
"url": "https://ecoquery.ecoinvent.org/3.00/cutoff/dataset/12345/documentation",
"url_history": "https://ecoquery.ecoinvent.org/3.00/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?