Open ndubbaka opened 1 week ago
fork repositories:
fetch foodNutrients for each vegetable & fruit(leave foodNutrients empty if not found in usda.gov API) from https://api.nal.usda.gov/fdc/v1/foods/search?api_key=DEMO_KEY&query=**_watermelon_**&dataType=Survey%20(FNDDS) Look for "raw" in the results(description)
{ "vegetables": [ { "fdcId": 2709270, "foodCode": 63149010, "foodCategory": "Melons", "foodCategoryId": 3306088, "name": "tomato", "price": 83.5, "measurement": { "value": 2, "unit": "Pcs" }, "manufacturer": "Organic", "foodNutrients": [ { "nutrientId": 1003, "nutrientName": "Protein", "nutrientNumber": "203", "unitName": "G", "value": 0.61, "rank": 600, "indentLevel": 1, "foodNutrientId": 34388749 } ] } ], "fruits": [ {} ] }
fork repositories:
fetch foodNutrients for each vegetable & fruit(leave foodNutrients empty if not found in usda.gov API) from https://api.nal.usda.gov/fdc/v1/foods/search?api_key=DEMO_KEY&query=**_watermelon_**&dataType=Survey%20(FNDDS) Look for "raw" in the results(description)