Recipe-wise impact

GET /recipe

Query parameters

  • recipe string Required

    Recipe name in English

Responses

  • 200
    1. Carbon footprint per serving of the recipe
    2. Is the recipe climate-friendly or not (as per the Paris Climate Agreement)?
    Hide response attributes Show response attributes object
    • recipe_name string

      Name of the recipe.

    • kg_co2_per_kg float

      Carbon footprint: kg CO2 per serving of the recipe

    • climate_friendly string

      Is the recipe climate-friendly or not as recommended by Paris Climate Agreement?

    • status string
GET /recipe
curl \
 -X GET https://trial.greenswapp.com/recipe?recipe=Pizza+Hut+Original+Pan+Pizza \
 -H "x-api-key: $API_KEY"
Response examples (200)
{
  "recipe_name": "Pizza Hut Original Pan Pizza",
  "kg_co2_per_kg": 2.65,
  "climate_friendly": "NO",
  "status": "OK"
}
Response examples (200)
{
  "recipe_name": "Pizza Hut Original Pan Pizza",
  "kg_co2_per_kg": 2.65,
  "climate_friendly": "NO",
  "status": "OK"
}