Spiral gives your agent every tool with one account. Browse the tools →

AlexandriaIndustry DataAvailable now

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

food-nutrition-canada-ca/foods/get_food

Get industry and reference data with Canadian Nutrient File, Health Canada (food-nutrition.canada.ca) · Get food from Alexandria through one Spiral API key. After search_foods or search_foods_by_nutrient returned a food code, or when the user pastes a food-nutrition.canada.ca serving-portion or nutrientReport URL. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

Pricing

$0.00873 per call.

Limits

Runs
In the background
Returns
json
Longest queue wait
1 hour
Run deadline
5 minutes
Longest run, end to end
225 minutes
Largest inline input
1 MB
Largest input file
2 GB
Largest output
5 GB

Input

FieldKindDefaultDescription
urltext—

A CNF page URL carrying the food code: https://food-nutrition.canada.ca/cnf-fce/serving-portion?id={food_code} or .../nutrientReport-rapportAliment?food-aliment-id={food_code}&id=...

langone of
en, fr
en

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

measuretext—

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.

food_codenumber
1 to 99999999
—

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

nutrient_idslist—

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.

Same request in code

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/get_food",
    "input": {
      "url": "<url>"
    }
  }'

Frequently asked questions

How much does Canadian Nutrient File, Health Canada (food-nutrition.canada.ca) · Get food cost?

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

How do I use Canadian Nutrient File, Health Canada (food-nutrition.canada.ca) · Get food through an API?

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "food-nutrition-canada-ca/foods/get_food"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

Do I need an account with Alexandria to use Canadian Nutrient File, Health Canada (food-nutrition.canada.ca) · Get food?

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

Can my AI agent use Canadian Nutrient File, Health Canada (food-nutrition.canada.ca) · Get food?

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.