Nordic Food Composition API

Official Swedish and Norwegian food composition tables in one schema with English names: energy, protein, fat, carbohydrate, fibre, sugar, salt, vitamins and minerals per 100 g.

$2 per 1,000 records

You pay only for the records you get. Zero records cost zero. 2,500 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usRecords, 14 fieldsv1.0

Data from dataportal.livsmedelsverket.se/livsmedel/api/v1/livsmedel

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Countryoptional
SE for Sweden or NO for Norway; empty for both.
Searchoptional
Words that must all appear in the food name.
Example: salmon
Maximum resultsoptional
Most foods to return.
Example: 100

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 2,500 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/nordic-food-composition/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
2,500 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/nordic-food-composition/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"country":"SE"},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

countrytext
SE for Sweden or NO for Norway; empty for both.
example: SEone of: SE, NO
searchtext
Words that must all appear in the food name.
example: salmon
max_resultsnumber
Most foods to return.
example: 100

What's in each record

14 fields: 12 here, 2 technical ones under Technical details.

Basics

  • SE (Livsmedelsverket) or NO

    Example NO

  • Name

    Food name in English.

    Example Baby food, in jars, couscous and salmon, from 15 months

  • Food group

    Example Infant food

  • Energy kcal

    Energy in kcal per 100 g.

    Example 68

  • Protein g

    Protein in grams per 100 g.

    Example 2.9

  • Fat g

    Total fat in grams per 100 g.

    Example 2.3

  • Carbohydrate g

    Available carbohydrate in grams per 100 g (Norway: total carbohydrate).

    Example 8.5

  • Fibre g

    Dietary fibre in grams per 100 g.

    Example 1

  • Sugar g

    Total sugar in grams per 100 g.

    Example 2.1

  • Salt g

    Salt (NaCl) in grams per 100 g.

    Example 0.2

  • Vitamins

    Vitamins as {name: {value, unit}}, such as vitamin_c, vitamin_d, folate.

    Example {"vitamin_a_rae":{"value":92,"unit":"RAE"},"vitamin_a_re":{"value":181,"unit":"RE"},"vitamin_d":{"value":0.5,"unit":"µg"},"vitamin_e":{"value":0.6,"unit":"mg-ATE"},"thiamin_b1":{"value":0.04,"unit":"mg"},"riboflavin_b2":{"value":0.03,"unit":"mg"},"niacin_b3":{"value":0.9,"unit":"mg"},"vitamin_b6":{"value":0.08,"unit":"mg"},"folate":{"value":7,"unit":"µg"},"vitamin_b12":{"value":0.4,"unit":"µg"},"vitamin_c":{"value":1,"unit":"mg"}}

  • Minerals

    Minerals as {name: {value, unit}}, such as calcium, iron, sodium.

    Example {"calcium":{"value":12,"unit":"mg"},"iron":{"value":0.3,"unit":"mg"},"sodium":{"value":87,"unit":"mg"},"potassium":{"value":113,"unit":"mg"},"magnesium":{"value":12,"unit":"mg"},"zinc":{"value":0.2,"unit":"mg"},"selenium":{"value":2,"unit":"µg"},"copper":{"value":0.05,"unit":"mg"},"phosphorus":{"value":45,"unit":"mg"},"iodine":{"value":0.8,"unit":"µg"}}

Technical detailsField names and types for developers, and the 2 fields hidden above

Hidden by default

These 2 fields come with each record too. They are internal codes, notes about how the record was read or a copy of what was searched for, so the lists above leave them out.

  • ID idCountry code and food id, such as SE:100.
  • Food ID food_idThe table's own food number.

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
sourcetextSE (Livsmedelsverket) or NO3 of 3
food_idtextFood ID (hidden)3 of 3
nametextName3 of 3
food_grouptextFood group3 of 3
energy_kcalnumberEnergy kcal3 of 3
protein_gnumberProtein g3 of 3
fat_gnumberFat g3 of 3
carbohydrate_gnumberCarbohydrate g3 of 3
fibre_gnumberFibre g3 of 3
sugar_gnumberSugar g3 of 3
salt_gnumberSalt g3 of 3
vitaminsgroup of valuesVitamins3 of 3
mineralsgroup of valuesMinerals3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordNameSE (Livsmedelsverket) or NOFood groupEnergy kcalProtein gFat gCarbohydrate gFibre gSugar gSalt gVitaminsMinerals
1Baby food, in jars, couscous and salmon, from 15 monthsNOInfant food682.92.38.512.10.2{"vitamin_a_rae":{"value":92,"unit":"RAE"},"vitamin_a_re":{"value":181,"unit":"RE"},"vitamin_d":{"value":0.5,"unit":"µg"},"vitamin_e":{"value":0.6,"unit":"mg-ATE"},"thiamin_b1":{"value":0.04,"unit":"mg"},"riboflavin_b2":{"value":0.03,"unit":"mg"},"niacin_b3":{"value":0.9,"unit":"mg"},"vitamin_b6":{"value":0.08,"unit":"mg"},"folate":{"value":7,"unit":"µg"},"vitamin_b12":{"value":0.4,"unit":"µg"},"vitamin_c":{"value":1,"unit":"mg"}}{"calcium":{"value":12,"unit":"mg"},"iron":{"value":0.3,"unit":"mg"},"sodium":{"value":87,"unit":"mg"},"potassium":{"value":113,"unit":"mg"},"magnesium":{"value":12,"unit":"mg"},"zinc":{"value":0.2,"unit":"mg"},"selenium":{"value":2,"unit":"µg"},"copper":{"value":0.05,"unit":"mg"},"phosphorus":{"value":45,"unit":"mg"},"iodine":{"value":0.8,"unit":"µg"}}
2Ceviche, with salmon, mango and avocadoNOFish and shellfishes dishes1466.711.23.823.80.4{"vitamin_a_rae":{"value":19,"unit":"RAE"},"vitamin_a_re":{"value":30,"unit":"RE"},"vitamin_d":{"value":2.1,"unit":"µg"},"vitamin_e":{"value":1.5,"unit":"mg-ATE"},"thiamin_b1":{"value":0.07,"unit":"mg"},"riboflavin_b2":{"value":0.08,"unit":"mg"},"niacin_b3":{"value":3,"unit":"mg"},"vitamin_b6":{"value":0.26,"unit":"mg"},"folate":{"value":21,"unit":"µg"},"vitamin_b12":{"value":1.6,"unit":"µg"},"vitamin_c":{"value":9,"unit":"mg"}}{"calcium":{"value":14,"unit":"mg"},"iron":{"value":0.3,"unit":"mg"},"sodium":{"value":147,"unit":"mg"},"potassium":{"value":362,"unit":"mg"},"magnesium":{"value":19,"unit":"mg"},"zinc":{"value":0.3,"unit":"mg"},"selenium":{"value":6,"unit":"µg"},"copper":{"value":0.11,"unit":"mg"},"phosphorus":{"value":91,"unit":"mg"},"iodine":{"value":3,"unit":"µg"}}
3Fish burger, salmonNOFish products20916.514.92.4010.7{"vitamin_a_rae":{"value":32,"unit":"RAE"},"vitamin_a_re":{"value":33,"unit":"RE"},"vitamin_d":{"value":5,"unit":"µg"},"vitamin_e":{"value":1.1,"unit":"mg-ATE"},"thiamin_b1":{"value":0.08,"unit":"mg"},"riboflavin_b2":{"value":0.11,"unit":"mg"},"niacin_b3":{"value":5.5,"unit":"mg"},"vitamin_b6":{"value":0.34,"unit":"mg"},"folate":{"value":5,"unit":"µg"},"vitamin_b12":{"value":4.1,"unit":"µg"},"vitamin_c":{"value":0,"unit":"mg"}}{"calcium":{"value":34,"unit":"mg"},"iron":{"value":0.2,"unit":"mg"},"sodium":{"value":292,"unit":"mg"},"potassium":{"value":356,"unit":"mg"},"magnesium":{"value":20,"unit":"mg"},"zinc":{"value":0.3,"unit":"mg"},"selenium":{"value":16,"unit":"µg"},"copper":{"value":0.03,"unit":"mg"},"phosphorus":{"value":195,"unit":"mg"},"iodine":{"value":7,"unit":"µg"}}

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • Covers Sweden (about 2,600 foods) and Norway (about 2,100 foods) only; Finland's table answered a bot check and is left out.
  • Search matches every word against the English food name (Norway also its search keywords); the Swedish service has no search, so a Swedish search reads the whole list and fetches nutrients only for matches.
  • All values are per 100 g edible portion. Swedish foods have no food group (food_group is empty) and Swedish and Norwegian vitamin A are on different scales (vitamin_a_re versus vitamin_a_rae).
  • Nutrients a table did not measure are left out of vitamins and minerals rather than set to zero.
  • Swedish runs pause 0.3 seconds between requests, so 100 Swedish foods take about a minute; a Norwegian run downloads one 13 MB table, which usually takes 10 to 80 seconds.
  • Licence CC BY 4.0: credit the Swedish Food Agency (Livsmedelsverket) and the Norwegian Food Safety Authority (Matvaretabellen).

Version history

A run uses the live version unless the request names another one with version.