Getting Default Serving_Id & Food Nutrients in Food.Search API

59 views
Skip to first unread message

Ashish Sharma

unread,
Feb 14, 2022, 3:30:47 PMFeb 14
to FatSecret Platform API
Hi everyone,

I wanted to know if we can get default serving_id & all food nutrients i.e fat, carbs, protein & calories in the food.search API itself.
Currently, we are getting just these values in the food.search API 
 <food>
        <food_id>4384</food_id>
        <food_name>Plain French Toast</food_name>
        <food_type>Generic</food_type>
        <food_description>Per 342g - Calories: 835kcal | Fat: 32.28g | Carbs: 105.43g | Protein: 29.41g</food_description>
    </food>

Let me know if there is a way for this.

Thank you
Ashish Sharma

seba...@fatsecret.com

unread,
Feb 14, 2022, 8:24:44 PMFeb 14
to FatSecret Platform API
Hi Ashish,
You should be able to get these through food.get but not food.search.
Kind regards,
Sebastian

Reply all
Reply to author
Forward
0 new messages