This API provides the recommended Daily Values (DV) for nutrients.
Daily Values are comprised of two sets of reference values for reporting nutrients in nutrition labels—the Daily Reference Values (DRVs) and the Reference Daily Intakes (RDIs). To limit consumer confusion, the single term “Daily Value” is used to designate both the DRVs and RDIs. The DVs are used to calculate the % Daily Values that consumers see on the Nutrition and Supplement Facts labels. The % Daily Value helps consumers understand how the amount of a nutrient that is present in a serving of a food fits into their total daily diet, and allows them to compare the nutritional value of food products.
Link to project: https://nutrition-daily-values-api.onrender.com
Tech used: HTML, Express.js, Node.js
Install dependencies - npm install
Run Server - node server
Access API Locally - http://localhost:8000/api
Each Nutrient object includes keys for:
- Unit of measurement: unitOfMeasure
- Recommended DV for ages > 4: olderThan4
- Recommended DV for 0 - 12 months: birthTo12Months
- Recommended DV for 1 - 3 years: age1To3Years
- Recommended DV for pregnant or lactating: pregOrLactating
(pending)