USDA / USDA-APIs

Do you have feedback, ideas, or questions for USDA APIs? Use this repository's Issue Tracker to join the discussion.
www.usda.gov/developer
110 stars 16 forks source link

please give us a simple html/javascript page to call up food, calories with api. #130

Open lottabliss opened 2 months ago

lottabliss commented 2 months ago

I'm using html, javascript, and my api key on my website. My html page has a drop down to select foods- (I was successful at calling each foods from your api with that). however I'm supposed to get the calories to pop up when I select that. and I keep getting this error: CONSOLE [ is not a valid ](connectionapi.html:134 Error fetching food data: Energy nutrient not found. Available nutrients might be different.) - So what are you calling your calories? I tried kcal, calorie and calories so far nothing is popping up. Thanks