Sign in | Sign up

Provide quantity along with food item

Tagged:

Currently contains 1 post

Avatar

December 03, 2016 22:55

hiralj

Hi,

I am using Nutritionix API for a simple query – ‘Mention food item along with its quantity and get its calories.’

However, I am not sure how to provide quantity. I do not find it in documentation either.

Following does not work:
https://api.nutritionix.com/v1_1/search/rice?nf_serving_size_qty=2&results=0:20&appId=MY_APP_ID&appKey=My_APP_KEY

I am trying to use nf_serving_size_qty as one of the query parameters but it does not seem to work.

In your dashboard, you give a way to provide quantity along with food item e.g. tbps, tsp, cup, quart, etc. Is there a way I can use this in API and get corresponding calorie value?

Reply to thread