How can I call multiple nutrient information from ESHA Research API? (apid.esha.com)

Posted by user1833044 on Stack Overflow See other posts from Stack Overflow or by user1833044
Published on 2012-11-23T21:42:46Z Indexed on 2012/11/26 5:04 UTC
Read the original article Hit count: 126

Filed under:
|
|
|
|

I want to call ESHA Research nutrient REST API. I cannot seem to figure out how to call multiple nutrients using ESHA REST API. So far I am calling the following and only able to retrieve the calories, or protein, or another type of nutrient information. So I was hoping someone had experience in retrieving all the nutrient information with one call. Is this possible?

This is how I call to retrieve the TWIX nutrient

http://api.esha.com/analysis?apikey=xxxx&fo=urn:uuid:81d268ac-f1dc-4991-98c1-1b4d3a5006da (returns calories, please note the api key is not xxxx but instead a key generated from Esha once you sign up as developer) The return is JSON format.

If I want to call fat it would be the following http://api.esha.com/analysis?apikey=xxxx&fo=urn:uuid:81d268ac-f1dc-4991-98c1-1b4d3a5006da&n=urn:uuid:589294dc-3dcc-4b64-be06-c07e7f65c4bd

How can I make a call once and get a return of all the nutrients (so Fat, Calories, Carbs, Vitamins, etc..) for a particular food ID? I have researched and looked at this for a while and cannot seem to find the answer.

Thanks in advance for your help.

© Stack Overflow or respective owner

Related posts about android

Related posts about api