UK Food Nutrients Data API

A free and simple UK food data api, extracted and converted from "UK Composition of Foods Integrated Dataset (CoFID)" for the purpose of learning.

How to use API

Seach by name

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

api result

Lookup by id

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

Data Values

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.