Skip to main content
All providers

Canadian Nutrient File

HealthCA

food-nutrition.canada.ca

Health Canada's Canadian Nutrient File, the national reference food composition database: nutrient values per 100 g for about 5,700 foods commonly eaten in Canada, with household serving-size conversion factors, refuse and cooking yield factors, and the full nutrient dictionary behind them, in English and French.

Capabilities (15)

GET /v1/data/canadiannutrientfile/food1 credit

Returns the single food record for one CNF food code: its code and full descriptive name.

food_codelang?
GET /v1/data/canadiannutrientfile/foods1 credit

Returns the entire CNF food index as a JSON array of {food_code, food_description} pairs, roughly 5,700 foods, which is the lookup table every other CNF capability is keyed on.

lang?
GET /v1/data/canadiannutrientfile/nutrient-amounts1 credit

Returns every nutrient measured for one food per 100 g edible portion: nutrient_value, standard_error, number_observation, nutrient_name_id, nutrient_web_name and nutrient_source_id, typically 70-105 rows covering macros, minerals, vitamins, amino acids and individual fatty acids.

food_codelang?
GET /v1/data/canadiannutrientfile/nutrient-group1 credit

Returns one nutrient group heading: its id, name and display order.

nutrient_group_idlang?
GET /v1/data/canadiannutrientfile/nutrient-groups1 credit

Returns the seven nutrient group headings that nutrients are filed under (Proximates, Other Carbohydrates, Minerals, Vitamins, Amino Acids, Lipids and Other components), each with its id and display order.

lang?
GET /v1/data/canadiannutrientfile/nutrient-name1 credit

Returns one nutrient definition: its code, symbol, unit, full name, INFOODS tagname, rounding precision and group.

nutrient_name_idlang?
GET /v1/data/canadiannutrientfile/nutrient-names1 credit

Returns the full CNF nutrient dictionary: nutrient_name_id, nutrient_code, symbol, unit of measure, full name, INFOODS tagname, decimal precision, web display name and order, and nutrient_group_id.

lang?
GET /v1/data/canadiannutrientfile/nutrient-source1 credit

Returns one nutrient provenance record: its id, numeric code and description.

nutrient_source_idlang?
GET /v1/data/canadiannutrientfile/nutrient-sources1 credit

Returns the provenance codes CNF attaches to every nutrient value (analysed in a Canadian government lab, imputed, taken from USDA, calculated, and so on) with id, code and description.

lang?
GET /v1/data/canadiannutrientfile/refuse-amounts1 credit

Returns the inedible proportion of one food as a percentage, with the refuse description: bone, shell, peel, and so on.

food_codelang?
GET /v1/data/canadiannutrientfile/refuse-amounts-bulk1 credit

Returns the complete refuse table for every food in CNF: food code, description, percent refuse and refuse description.

lang?
GET /v1/data/canadiannutrientfile/serving-sizes1 credit

Returns the household measures defined for one food, each with a conversion_factor_value (the multiplier applied to the per-100 g nutrient values to get the amount in that measure) plus the measure name and the food description.

food_codelang?
GET /v1/data/canadiannutrientfile/serving-sizes-bulk1 credit

Returns the complete serving size table for every food in CNF (food code, description, measure name and conversion factor), about 2.4 MB in one response.

lang?
GET /v1/data/canadiannutrientfile/yield-amounts1 credit

Returns the yield factors recorded for one food (the weight change from refuse removal and cooking losses) with the yield description. Many foods have none and return an empty array.

food_codelang?
GET /v1/data/canadiannutrientfile/yield-amounts-bulk1 credit

Returns the complete yield table for the foods in CNF that have one: food code, description, yield amount and yield description.

lang?

Response example

The shape of data from canadiannutrientfile/food (Food by code). A sample, not live data.

food_codefood_description
109Cheese, gouda

Ask with this source

A prompt for your agent that names this source and how to call it through the crw MCP.

  • Food by code

    Use Canadian Nutrient File (canadiannutrientfile) from fastCRW Pergamon, capability "Food by code" (food). You already hold a CNF food code and just want to confirm what food it names. Example options: food_code=109, lang=en. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "canadiannutrientfile" and capability "food". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • All foods

    Use Canadian Nutrient File (canadiannutrientfile) from fastCRW Pergamon, capability "All foods" (foods). You need to find a CNF food code, or want the whole Canadian food list to search or match against locally. Example options: lang=en. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "canadiannutrientfile" and capability "foods". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Nutrient amounts for a food

    Use Canadian Nutrient File (canadiannutrientfile) from fastCRW Pergamon, capability "Nutrient amounts for a food" (nutrient-amounts). You have a CNF food code and want its actual nutrition numbers - this is the core data of the Canadian Nutrient File. Example options: food_code=109, lang=en. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "canadiannutrientfile" and capability "nutrient-amounts". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Nutrient group by id

    Use Canadian Nutrient File (canadiannutrientfile) from fastCRW Pergamon, capability "Nutrient group by id" (nutrient-group). You hold a nutrient_group_id from the nutrient dictionary and want the heading it belongs to. Example options: nutrient_group_id=1, lang=en. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "canadiannutrientfile" and capability "nutrient-group". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

Licence

The Canadian Nutrient File is published by Health Canada on open.canada.ca under the Open Government Licence - Canada (license_id "ca-ogl-lgo"), which states: "The Information Provider grants you a worldwide, royalty-free, perpetual, non-exclusive licence to use the Information, including for commercial purposes, subject to the terms below. You are free to: Copy, modify, publish, translate, adapt, distribute or otherwise use the Information in any medium, mode or format for any lawful purpose. You must, where you do any of the above: Acknowledge the source of the Information by including any attribution statement specified by the Information Provider(s) and, where possible, provide a link to this licence. If the Information Provider does not provide a specific attribution statement ... you must use the following attribution statement: Contains information licensed under the Open Government Licence - Canada." Exemptions: "This licence does not grant you any right to use: Personal Information; third party rights the Information Provider is not authorized to license; the names, crests, logos, or other official symbols of the Information Provider; and Information subject to other intellectual property rights, including patents, trade-marks and official marks." Non-endorsement: "This licence does not grant you any right to use the Information in a way that suggests any official status or that the Information Provider endorses you or your use of the Information." No warranty: "The Information is licensed 'as is', and the Information Provider excludes all representations, warranties, obligations, and liabilities, whether express or implied, to the maximum extent permitted by law." The API guide itself states the CNF API "allows developers to access that information in JSON and XML format for reuse in their own applications."

https://open.canada.ca/en/open-government-licence-canada

Attribution

Display this wherever you show the data. It arrives on every response as provenance.attribution_text.

Contains information licensed under the Open Government Licence - Canada. Source: Canadian Nutrient File, Health Canada

Cache: up to 3600s