How to get the food id

126 views
Skip to first unread message

Radu Costea

unread,
Feb 23, 2012, 5:36:46 AM2/23/12
to FatSecret Platform API
Hi,

For http://fatsecret.com/calories-nutrition/usda/egg-(whole) how can i
tell the food_id to use the api to get the information?

Thank you.

John Freeman

unread,
Feb 23, 2012, 4:52:45 PM2/23/12
to fatsecret-p...@googlegroups.com, Radu Costea
On Thursday, February 23, 2012 4:36:46 AM, Radu Costea wrote:
> For http://fatsecret.com/calories-nutrition/usda/egg-(whole) how can i
> tell the food_id to use the api to get the information?

Can you rephrase that? Are you looking for food.get?

http://platform.fatsecret.com/api/Default.aspx?screen=rapiref&method=food.get

- John

John Freeman

unread,
Feb 24, 2012, 2:45:55 AM2/24/12
to radu.mari...@gmail.com, fatsecret-p...@googlegroups.com

On Feb 24, 2012 1:22 AM, "Radu" <radu.mari...@gmail.com> wrote:
> From where do i get the food.id ?

foods.search among others:

http://platform.fatsecret.com/api/Default.aspx?screen=rapiref&method=foods.search

Radu

unread,
Feb 24, 2012, 2:22:17 AM2/24/12
to John Freeman, fatsecret-p...@googlegroups.com

Hi,

Thanks for the answer. In a way yes, i am looking for food.get, but as
you can see food.get requires a food.id. From where do i get the food.id ?

Reply all
Reply to author
Forward
0 new messages