GET
/product
curl \
-X GET https://trial.greenswapp.com/product?product=Oatly+Oat+Milk+Barista+Edition \
-H "x-api-key: $API_KEY"
Response examples (200)
{
"product_name": "Oatly Oat Milk Barista Edition",
"kg_co2_per_kg": 0.36,
"percentage_impact_difference": "This product has a 87% lower impact than the average regular milk",
"status": "OK"
}
Response examples (200)
{
"product_name": "Oatly Oat Milk Barista Edition",
"kg_co2_per_kg": 0.36,
"percentage_impact_difference": "This product has a 87% lower impact than the average regular milk",
"status": "OK"
}