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.
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
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
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
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.
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 name | Type | Shown on this page as | Filled |
|---|---|---|---|
id | text | ID (hidden) | 3 of 3 |
source | text | SE (Livsmedelsverket) or NO | 3 of 3 |
food_id | text | Food ID (hidden) | 3 of 3 |
name | text | Name | 3 of 3 |
food_group | text | Food group | 3 of 3 |
energy_kcal | number | Energy kcal | 3 of 3 |
protein_g | number | Protein g | 3 of 3 |
fat_g | number | Fat g | 3 of 3 |
carbohydrate_g | number | Carbohydrate g | 3 of 3 |
fibre_g | number | Fibre g | 3 of 3 |
sugar_g | number | Sugar g | 3 of 3 |
salt_g | number | Salt g | 3 of 3 |
vitamins | group of values | Vitamins | 3 of 3 |
minerals | group of values | Minerals | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Name | SE (Livsmedelsverket) or NO | Food group | Energy kcal | Protein g | Fat g | Carbohydrate g | Fibre g | Sugar g | Salt g | Vitamins | Minerals |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Baby food, in jars, couscous and salmon, from 15 months | NO | Infant food | 68 | 2.9 | 2.3 | 8.5 | 1 | 2.1 | 0.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"}} |
| 2 | Ceviche, with salmon, mango and avocado | NO | Fish and shellfishes dishes | 146 | 6.7 | 11.2 | 3.8 | 2 | 3.8 | 0.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"}} |
| 3 | Fish burger, salmon | NO | Fish products | 209 | 16.5 | 14.9 | 2.4 | 0 | 1 | 0.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.
- 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.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.