Skip to content
RAG Repo

McCance and Widdowson's CoFID

The Composition of Foods Integrated Dataset, known as CoFID, is the UK reference database for the nutrient content of foods. It continues the work of McCance and Widdowson, whose food tables have underpinned British nutrition science since the 1940s, and it is maintained by the Office for Health Improvement and Disparities (the functions previously held by Public Health England). The 2021 edition brings the available data together into a single consolidated dataset, with a separate file for older foods whose values predate the current methods.

CoFID is a structured reference database, not a packaged machine learning corpus. You download it from GOV.UK as Excel spreadsheets (the main dataset plus the old foods file), alongside a PDF user guide that documents the nutrients, units and food groups. Each row is a food or drink with per 100g values across a wide set of nutrients, covering energy, macronutrients, vitamins and minerals. There is no official API on GOV.UK; a third party searchable site and API exist separately and carry their own terms, so treat those as distinct sources.

For RAG and AI work it serves as a clean, authoritative backbone for anything that needs UK nutrient figures: diet assistants, food labelling tools, recipe nutrition calculators and fine tuning sets where accurate per food values matter. One food per passage, naming the item and its key nutrients, retrieves well. It is the UK counterpart to USDA FoodData Central, so projects covering both territories can line the two up.

The GOV.UK download is published under the Open Government Licence version 3.0. That permits commercial use and copying, but requires you to acknowledge the source and the Crown copyright. The licence is uniform across the government files, though reusers should note that the separate Quadram Institute API version is offered under different, more restrictive terms. CoFID is UK specific, so values reflect the British food supply and fortification rather than other markets.

nutritionfoodukreference-dataopen-government-licencestructured

Related sources