Skip to main content
fastCRW Pergamon
Health · CA

Canadian Nutrient File

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.

Showing the catalogue

1Request

CNF food code, the primary key of the food. Get one from the Foods index capability.

Language of the descriptive text in the response; English or French. Codes and numeric values are identical either way.

1 credit⌘ ↵
Code follows the fields above
curl "https://api.fastcrw.com/v1/data/canadiannutrientfile/food?food_code=109&lang=en" \
  -H "Authorization: Bearer $FASTCRW_API_KEY"

2Response example

A sample shape. Press Run to see live data from Canadian Nutrient File.

food_codefood_description
109Cheese, gouda

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

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."

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>