search endpoints: cannot filter by impact.method
In the old API, for the footprint-gold-batch endpoint, when specifying a given scope, only one record with one impact.method was returned.
The new /search/batch or /search API endpoints return multiple objects for the same scope with different impact.methods.
Example
Request
[
{
"activity_id": "raising_of_animals_nec_services_to_agriculture",
"country": "PER",
"impact_category": "land_use",
"impact_indicator": "pastures",
"flow": "land_occupation",
"activity_classification_system": "gloria",
"scope": "3",
"valuation": "bp",
"primary_data_year": 2021,
"size": 50
}
]
Response
[
{
"num_records": 2,
"records": [
{
"record_id": "37ea688e-c1f1-4883-a21c-cb5e99fbc1f8",
"activity": {
"activity_id": "raising_of_animals_nec_services_to_agriculture",
"unit": "USD",
"lca_activity": "cradle_to-gate",
"classification": {
"type": "gloria",
"code": ""
}
},
"location": {
"region": "South America",
"country": "PER",
"subnational": ""
},
"impact": {
"category": "land_use",
"indicator": "pastures",
"flow": "land_occupation",
"unit": "ha",
"scope": {
"type": 3,
"valuation": "bp"
},
"method": "faostat"
},
"source_data": {
"source": "IELab",
"data_source_release_version": "059a",
"source_url": "https://ielab.info/labs/ielab-gloria",
"fpl_data_version": "v1.1.6",
"release_date": 2024
},
"value": 8.708279251368718e-07,
"unit": "ha/USD",
"data_year": 2021
},
{
"record_id": "4cb6d676-2f25-41da-afdf-ad549bc901ff",
"activity": {
"activity_id": "raising_of_animals_nec_services_to_agriculture",
"unit": "USD",
"lca_activity": "cradle_to_shelf",
"classification": {
"type": "gloria",
"code": ""
}
},
"location": {
"region": "South America",
"country": "PER",
"subnational": ""
},
"impact": {
"category": "land_use",
"indicator": "pastures",
"flow": "land_occupation",
"unit": "ha",
"scope": {
"type": 3,
"valuation": "bp"
},
"method": "SCP-HAT"
},
"source_data": {
"source": "FootprintLab",
"data_source_release_version": "v059",
"source_url": "https://www.footprintlab.io/",
"fpl_data_version": "v1.1.5",
"release_date": 2025
},
"value": 9.999999999975306e-07,
"unit": "ha/USD",
"data_year": 2021
}
],
"info": null
}
]
So in this example, both impact.method's SCP-HAT and faostat are returned.
Feature Request
Please provide the ability to filter for a given impact.method with a query parameter.
We are currently migrating to the new API. Not having the filter ability means a different behavior to the previous API version. If we cannot filter via query parameter, we would need to filter the responses, introducing effort on our end and higher network bandwidth.
Edited by Markus Jura