[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [Canadian Nutrient File nutrient rankings](https://spiral.ai/integrations/n8n/canadian-nutrient-file-nutrient-rankings)

# How to Use Canadian Nutrient File nutrient rankings in n8n

Get foods ranked by one nutrient, with food codes, portions, weights, and nutrient amounts. Use it to compare nutrient sources, checking the reported portions before interpreting the order.

|  |  |
| --- | --- |
| Model | Canadian Nutrient File nutrient rankings |
| Available through | Alexandria |
| Category | Industry Data |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with Canadian Nutrient File nutrient rankings in n8n

- At the start of each month, use Canadian Nutrient File nutrient rankings to prepare ten high-protein foods from the legume category, preserving the reported portions and weights.
- Every Monday at 9am: use Canadian Nutrient File nutrient rankings to look this up and give me the result as a table.
- Pull the latest numbers from Canadian Nutrient File nutrient rankings and tell me what changed since last week.
- Check Canadian Nutrient File nutrient rankings and summarize what you find in three bullet points.
- Pull the newest data from Canadian Nutrient File nutrient rankings and give me the result as a table.

## How to set up Canadian Nutrient File nutrient rankings in n8n

Pick the way that suits you. Each takes about two minutes.

### Use the Spiral skill

1. **Send n8n this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run Canadian Nutrient File nutrient rankings in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Canadian Nutrient File nutrient rankings, prices it and runs it each time the step fires.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Canadian Nutrient File nutrient rankings**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "food-nutrition-canada-ca/foods/search_foods_by_nutrient",
    "input": {
      "nutrient_id": 1
    }
  }'
```

Then paste one of the prompts above: n8n finds Canadian Nutrient File nutrient rankings on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/n8n

## Canadian Nutrient File nutrient rankings tools and prices

- [Canadian Nutrient File, Health Canada (food-nutrition.canada.ca) · Search foods by nutrient](https://spiral.ai/tools/alexandria/food-nutrition-canada-ca/foods/search_foods_by_nutrient) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| sort | desc, asc | desc | Order by nutrient amount. |
| limit | 1 to 500 | 50 | limit |
| offset | 0 to … | 0 | offset |
| food_group_id | 0 to … | 0 | CNF food group id from `list_food_groups`; 0 (default) searches all food groups. |
| include_trace |  | — | Also list foods whose amount is a trace (the form's 'Include all values = trace'). |

## What can you do with Canadian Nutrient File nutrient rankings in n8n?

Prepare recurring menu and editorial reference tables from the CNF's 2015 food composition data. A scheduled agent can organize categories, check nutrient definitions, and assemble portion-aware comparisons for each planned topic.

### Build a recipe substitution reference

Find descriptions matching lentils, beans, and chickpeas, organize them by CNF food category, resolve protein and fiber definitions, rank candidates, and inspect portions before proposing ingredient substitutions.

### Compare cafeteria menu ingredients

Organize candidate ingredients by food category, match their preparation descriptions, identify sodium and protein units, and compare ranked foods with their detailed serving profiles.

### Create a food composition classroom exercise

Let students choose a CNF category and nutrient, find familiar foods, examine the ranking, and compare the reported portions with complete food profiles. Include the edition and nutrient units in the worksheet.

### Screen ingredients for a product concept

Build a category-based shortlist for a soup or snack concept, resolve the nutrients of interest, rank candidate foods, and review matching descriptions and portion values. Use the results as reference estimates during concept work.

### Prepare nutrient source tables

Choose a CNF food category and rank its foods by one nutrient. Show the returned portion and weight beside each amount so readers can assess the comparison.

### Draft a public food comparison article

Find the food descriptions used in an article, check nutrient definitions, and inspect ranked results and detailed profiles before writing comparisons.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All n8n guides](https://spiral.ai/integrations/n8n)

## Canadian Nutrient File nutrient rankings in other agents

- [Amp](https://spiral.ai/integrations/amp/canadian-nutrient-file-nutrient-rankings)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/canadian-nutrient-file-nutrient-rankings)
- [Claude](https://spiral.ai/integrations/claude-desktop/canadian-nutrient-file-nutrient-rankings)
- [Claude Code](https://spiral.ai/integrations/claude-code/canadian-nutrient-file-nutrient-rankings)
- [Cline](https://spiral.ai/integrations/cline/canadian-nutrient-file-nutrient-rankings)
- [Codex](https://spiral.ai/integrations/codex/canadian-nutrient-file-nutrient-rankings)
- [Cursor](https://spiral.ai/integrations/cursor/canadian-nutrient-file-nutrient-rankings)
- [Devin](https://spiral.ai/integrations/devin/canadian-nutrient-file-nutrient-rankings)
- [dots](https://spiral.ai/integrations/dots/canadian-nutrient-file-nutrient-rankings)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/canadian-nutrient-file-nutrient-rankings)
- [Gemini](https://spiral.ai/integrations/gemini/canadian-nutrient-file-nutrient-rankings)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/canadian-nutrient-file-nutrient-rankings)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/canadian-nutrient-file-nutrient-rankings)
- [goose](https://spiral.ai/integrations/goose/canadian-nutrient-file-nutrient-rankings)
- [Grok](https://spiral.ai/integrations/grok/canadian-nutrient-file-nutrient-rankings)
- [Grok Build](https://spiral.ai/integrations/grok-build/canadian-nutrient-file-nutrient-rankings)
- [Hermes](https://spiral.ai/integrations/hermes/canadian-nutrient-file-nutrient-rankings)
- [Instinct](https://spiral.ai/integrations/instinct/canadian-nutrient-file-nutrient-rankings)
- [Manus](https://spiral.ai/integrations/manus/canadian-nutrient-file-nutrient-rankings)
- [Muse](https://spiral.ai/integrations/muse/canadian-nutrient-file-nutrient-rankings)
- [Muse Code](https://spiral.ai/integrations/muse-code/canadian-nutrient-file-nutrient-rankings)
- [Notion](https://spiral.ai/integrations/notion/canadian-nutrient-file-nutrient-rankings)
- [OpenClaw](https://spiral.ai/integrations/openclaw/canadian-nutrient-file-nutrient-rankings)
- [opencode](https://spiral.ai/integrations/opencode/canadian-nutrient-file-nutrient-rankings)
- [Perplexity](https://spiral.ai/integrations/perplexity/canadian-nutrient-file-nutrient-rankings)
- [Raycast](https://spiral.ai/integrations/raycast/canadian-nutrient-file-nutrient-rankings)
- [VS Code](https://spiral.ai/integrations/vscode/canadian-nutrient-file-nutrient-rankings)
- [Windsurf](https://spiral.ai/integrations/windsurf/canadian-nutrient-file-nutrient-rankings)
- [Zapier](https://spiral.ai/integrations/zapier/canadian-nutrient-file-nutrient-rankings)

## More n8n guides

- [Canadian Nutrient File nutrient dictionary](https://spiral.ai/integrations/n8n/canadian-nutrient-file-nutrient-dictionary)
- [Free Use Bible commentary](https://spiral.ai/integrations/n8n/free-use-bible-commentary)
- [Canadian Nutrient File food search](https://spiral.ai/integrations/n8n/canadian-nutrient-file-food-search)
- [Free Use Bible commentary catalog](https://spiral.ai/integrations/n8n/free-use-bible-commentary-catalog)
- [Canadian Nutrient File food groups](https://spiral.ai/integrations/n8n/canadian-nutrient-file-food-groups)
- [Free Use Bible passage](https://spiral.ai/integrations/n8n/free-use-bible-passage)

## Questions about Canadian Nutrient File nutrient rankings in n8n

**Can n8n use Canadian Nutrient File nutrient rankings?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run Canadian Nutrient File nutrient rankings like any built-in tool.

**How much does Canadian Nutrient File nutrient rankings cost in n8n?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

**Do I need an Alexandria account to use Canadian Nutrient File nutrient rankings in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs Canadian Nutrient File nutrient rankings on its own Alexandria account.

**How long does it take to set up Canadian Nutrient File nutrient rankings in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while Canadian Nutrient File nutrient rankings runs?**

Canadian Nutrient File nutrient rankings runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**Does the online CNF contain the latest Canadian nutrient dataset?**

The online CNF still serves the 2015 edition, and Health Canada says those pages will not be updated. The 2026 dataset is available separately, so an online lookup does not establish a food's current formulation.

**How much food and nutrient coverage does the online edition have?**

The 2015 CNF contains 5,690 foods with up to 152 food components. Coverage varies by food and nutrient; an unavailable nutrient value is not a measured zero.

**Where do the Canadian food values come from?**

The 2015 CNF incorporates USDA reference data through SR27 for foods corresponding to the Canadian market. Health Canada adjusts values for Canadian fortification and regulatory standards and adds Canadian food data.

**Are nutrient amounts based on a serving or on food weight?**

The underlying CNF values are recorded per 100 grams of edible food. Food-specific conversion factors translate those values into household measures, so a volume measure needs the weight associated with that food.

**Can CNF values replace a packaged product's nutrition label?**

CNF values generally represent averages across products, with brand-specific information only where the description identifies it. Health Canada says the generic information is not specific enough to produce a product's Nutrition Facts table.

