Estimate Nutrients from Photo API

This endpoint estimates the nutritional information of food items based on an image. By analyzing the image, it identifies the food items present and calculates their nutritional content, including calories, fat, protein, and carbohydrates.

POST
https://api.apileague.com/estimate-nutrients
Example Request and Response
POST
https://api.apileague.com/{{ examples.postNutrientsFromPhoto }}
{
    "nutrients": [
        {
            "name": "Calories",
            "amount": 360.0,
            "unit": "kcal",
            "percent_of_daily_needs": 18.0
        },
        {
            "name": "Fat",
            "amount": 11.0,
            "unit": "g",
            "percent_of_daily_needs": 16.92
        },
        {
            "name": "Saturated Fat",
            "amount": 1.5,
            "unit": "g",
            "percent_of_daily_needs": 9.38
        },
        {
            "name": "Carbohydrates",
            "amount": 55.0,
            "unit": "g",
            "percent_of_daily_needs": 18.33
        },
        {
            "name": "Net Carbohydrates",
            "amount": 48.0,
            "unit": "g",
            "percent_of_daily_needs": 17.45
        }
    ]
}

Questions? Need Help? Ask Away