This recipe shows how to retrieve a French Eco Score for a product (which includes the score break-down across 1 environmental indicators).
curl --request POST \ --url https://api-v2.production.higg.org/pic-api/v1/products/search/ \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --header 'x-api-key: <<apiKey>>' \ --header 'x-developer-request-token: <<apiKey>>' \ --data '{ "id":["string"], "hasFrenchEcoScore": true }'
{"success":true}
Set Product ID
"id":["string"], "hasFrenchEcoScore": true