Swedish Food Composition Database API
by livsmedelsverket.se
Food and drink
Added on December 1st, 2026
Visit livsmedelsverket.se →
What it does
The Swedish Food Agency's API gives its food composition database, with values for over 50 nutrients per food, plus classifications, ingredients and raw commodities, for example to calculate the nutrition of a meal. Page through the food list with offset and limit, then fetch the details of one food by its number; add sprak=2 for English. Responses are JSON. Free, no key needed, under the CC BY 4.0 licence with the Swedish Food Agency named as the source.
At a glance
- API key
- Not needed · More APIs with no key
- Pricing
- Free, no key needed, under the CC BY 4.0 licence with the Swedish Food Agency named as the source.
- Commercial use
- Allowed on the free plan
- From the browser
- Yes (CORS)
- Formats
- JSON
- Interface
- REST, HTTP-GET
- Provider
- livsmedelsverket.se
More information: https://www.livsmedelsverket.se/en/about-us/open-data/food-composition-data/
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://dataportal.livsmedelsverket.se/livsmedel/api/v1/livsmedel?offset=0&limit=5&sprak=2'
JavaScript
const response = await fetch("https://dataportal.livsmedelsverket.se/livsmedel/api/v1/livsmedel?offset=0&limit=5&sprak=2");
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
"https://dataportal.livsmedelsverket.se/livsmedel/api/v1/livsmedel?offset=0&limit=5&sprak=2",
timeout=30,
)
print(response.json())
The JavaScript works in a web page as well as in Node.js 18 or newer.