Firecrawl Alexandria

Canadian Nutrient File, Health Canada (food-nutrition.canada.ca)

Health Canada's Canadian Nutrient File (CNF), the reference food-composition table for Canada: 5,690 foods with up to 152 nutrients per 100 g, Canadian fortification values, serving measures with gram weights, refuse and yield factors, in English or French. Food search by name, the full nutrient record of one food (optionally converted to a chosen measure such as 250ml), the nutrient, nutrient-group and data-source reference lists, the 23 CNF food groups and the search for foods ranked by one nutrient within a food group. Anonymous JSON API of the public CNF web app plus two GET-and-POST pages of the same app for the food-group aware nutrient search. Data: Canadian Nutrient File, Health Canada, Open Government Licence - Canada; the online CNF is the 2015 publication (Health Canada is preparing a CNF 2026 dataset).

Try Canadian Nutrient File, Health Canada (food-nutrition.canada.ca) now.

Choose an example or ask your own question.

Canadian Nutrient File, Health Canada (food-nutrition.canada.ca)
TRY ASKING
1Request
number

CNF food code (e.g. 61 Milk, fluid, partly skimmed, 2% M.F.; 119 Cheese, cheddar). Give this or `url`.

string

Language of the description, nutrient names, measure, refuse, yield and source texts.

string

One of the food's measure names as the CNF writes them (e.g. '250ml', '100ml diced', '1 slice'); spaces, commas and case are ignored. Adds `value_per_measure` to every nutrient row and sets `selected_measure`.

number[]

Return only these CNF nutrient ids (`nutrient_name_id` from `list_nutrients`). An id that is not in the CNF nutrient dictionary is invalid input; a known nutrient the CNF does not report for this food is simply absent. Separate values with commas.

5 credits
Codefollows the fields above
const result = await firecrawl.scrape({
  alexandria: {
    provider: "food-nutrition-canada-ca",
    capability: "foods/get_food",
    options: {
      food_code: 61,
      measure: "250ml",
      nutrient_ids: [
        203,
        208,
        301,
        339,
        324,
      ],
    },
  },
});
2Response example

This is a sample shape. Press Run to see live data from Canadian Nutrient File, Health Canada (food-nutrition.canada.ca).

{
  "attribution": "Canadian Nutrient File, Health Canada. Open Government Licence - Canada.",
  "data_version": "CNF 2015 (online publication; Health Canada states it will not be updated while a CNF 2026 dataset is prepared)",
  "description": "Milk, fluid, partly skimmed, 2% M.F.",
  "food_code": 61,
  "lang": "en",
  "measures": [
    {
      "conversion_factor": 1.03128,
      "grams": 103.128,
      "measure_name": "100ml"
    },
    {
      "conversion_factor": 2.57819,
      "grams": 257.819,
      "measure_name": "250ml"
    }
  ],
  "nutrient_count": 5,
  "nutrients": [
    {
      "decimals": 2,
      "group_id": 1,
      "group_name": "Proximates",
      "name": "PROTEIN",
      "number_observation": 13,
      "nutrient_name_id": 203,
      "source_description": "No change from USDA",
      "source_id": 0,
      "standard_error": 0,
      "symbol": "PROT",
      "tagname": "PROCNT",
      "unit": "g",
      "value_per_100g": 3.3,
      "value_per_measure": 8.508027,
      "web_name": "Protein"
    },
    {
      "decimals": 0,
      "group_id": 1,
      "group_name": "Proximates",
      "name": "ENERGY (KILOCALORIES)",
      "number_observation": 0,
      "nutrient_name_id": 208,
      "source_description": "No change from USDA",
      "source_id": 0,
      "standard_error": 0,
      "symbol": "KCAL",
      "tagname": "ENERC_KCAL",
      "unit": "kCal",
      "value_per_100g": 50,
      "value_per_measure": 128.9095,
      "web_name": "Energy (kcal)"
    },
    {
      "decimals": 0,
      "group_id": 3,
      "group_name": "Minerals",
      "name": "CALCIUM",
      "number_observation": 4,
      "nutrient_name_id": 301,
      "source_description": "No change from USDA",
      "source_id": 0,
      "standard_error": 1,
      "symbol": "CA",
      "tagname": "CA",
      "unit": "mg",
      "value_per_100g": 120,
      "value_per_measure": 309.3828,
      "web_name": "Calcium, Ca"
    },
    {
      "decimals": 1,
      "group_id": 4,
      "group_name": "Vitamins",
      "name": "VITAMIN D (D2 + D3)",
      "number_observation": 0,
      "nutrient_name_id": 339,
      "source_description": "Nutrient levels changed to meet the canadian regulations",
      "source_id": 1,
      "standard_error": 0,
      "symbol": "D3+D2-µG",
      "tagname": "VITD_ µG",
      "unit": "µg",
      "value_per_100g": 0.99585,
      "value_per_measure": 2.567491,
      "web_name": "Vitamin D"
    },
    {
      "decimals": 0,
      "group_id": 4,
      "group_name": "Vitamins",
      "name": "VITAMIN D (INTERNATIONAL UNITS)",
      "number_observation": 0,
      "nutrient_name_id": 324,
      "source_description": "Nutrient levels changed to meet the canadian regulations",
      "source_id": 1,
      "standard_error": 0,
      "symbol": "D-IU",
      "tagname": "VITD_IU",
      "unit": "IU",
      "value_per_100g": 39.834,
      "value_per_measure": 102.69962,
      "web_name": "Vitamin D (IU)"
    }
  ],
  "observed_at_ms": 1791942586049,
  "refuse": [
    {
      "refuse_amount": 0,
      "refuse_name": "total refuse"
    }
  ],
  "selected_measure": {
    "conversion_factor": 2.57819,
    "grams": 257.819,
    "measure_name": "250ml"
  },
  "source_url": "https://food-nutrition.canada.ca/api/canadian-nutrient-file/nutrientamount/?lang=en&id=61&type=json",
  "url": "https://food-nutrition.canada.ca/cnf-fce/serving-portion?id=61",
  "yields": []
}
Browse the library