← Services›Health & Nutrition Facts›Sample
COFID 2021 · UK LIVE BETA

Food composition with the source attached.

One UK CoFID record demonstrates nutrient values, source-specific units, trace-value handling and provenance. Live USDA FoodData Central routes provide US branded and generic food records.

2,886 CoFID food recordsTrace and missing statuses retainedJSON + schema
SourcesUSDA FDC APIUK CoFID 2021 snapshotUnits and provenance preserved
Informational food-composition facts only

Values describe source records, not a specific product, meal or person. Missing and trace values are not converted to zero. This is not medical advice, a nutrition plan, an allergen check or a safety determination. Both US and UK source routes are live.

Sample response

CoFID food code 11-788 · Porridge oats, unfortified.

View complete sample JSON
{
  "data": {
    "query": "porridge oats",
    "result_count": 1,
    "foods": [
      {
        "id": "11-788",
        "description": "Porridge oats, unfortified",
        "nutrients": [
          {
            "name": "Protein",
            "value": 10.9,
            "unit": "g",
            "status": "measured",
            "basis": "per_100_g_food"
          },
          {
            "name": "Fat",
            "value": 8.1,
            "unit": "g",
            "status": "measured",
            "basis": "per_100_g_food"
          },
          {
            "name": "Carbohydrate",
            "value": 70.7,
            "unit": "g",
            "status": "measured",
            "basis": "per_100_g_food"
          },
          {
            "name": "kcal",
            "value": 381.0,
            "unit": "kcal",
            "status": "measured",
            "basis": "per_100_g_food"
          },
          {
            "name": "Sodium",
            "value": 1.0,
            "unit": "mg",
            "status": "measured",
            "basis": "per_100_g_food"
          },
          {
            "name": "AOAC fibre",
            "value": 7.8,
            "unit": "g",
            "status": "measured",
            "basis": "per_100_g_food"
          }
        ],
        "source": {
          "id": "uk-cofid-2021",
          "record_id": "11-788",
          "url": "https://www.gov.uk/government/publications/composition-of-foods-integrated-dataset-cofid",
          "licence": "Open Government Licence v3.0"
        }
      }
    ],
    "dataset": {
      "id": "cofid",
      "version": "2021",
      "basis": "per nutrient, the CoFID-reported basis is preserved; most values are per 100 g of food",
      "source": "https://www.gov.uk/government/publications/composition-of-foods-integrated-dataset-cofid",
      "licence": "Open Government Licence v3.0",
      "record_count": 2886
    }
  },
  "service": {
    "slug": "health-nutrition-facts",
    "version": "0.1.0"
  },
  "attribution": "UK records: McCance and Widdowson’s Composition of Foods Integrated Dataset (CoFID 2021).",
  "licence": {
    "status": "source-attributed"
  },
  "retrieved_at": "2026-11-04T00:00:00Z",
  "is_sample": true
}

API calls

US · USDA FDC · live

GET /v1/nutrition/us/search?q=black%20beans&payment=false

UK · CoFID snapshot · live

GET /v1/nutrition/uk/search?q=porridge%20oats&payment=false