A free and simple UK food data api, extracted and converted from "UK Composition of Foods Integrated Dataset (CoFID)" for the purpose of learning.
https://ancient-lowlands-31543.herokuapp.com/api/json/v0.1/seach?name=[food name]
Example: if you are looking for "banana"
https://ancient-lowlands-31543.herokuapp.com/api/json/v0.1/search?name=banana
https://ancient-lowlands-31543.herokuapp.com/api/json/v0.1/search?id=[item id]
Example: if you are looking for known item id
https://ancient-lowlands-31543.herokuapp.com/api/json/v0.1/search?id=59e48
Nutrient values are expressed per 100g of the food except in the case of alcoholic beverages which are presented per 100ml.
A trace value for a nutrient is represented by Tr.
Where a nutrient is present in significant quantities, but there is no reliable information on the amount, the value is represented by N.