Open Food Facts
Barcode food data — Nutri-Score, allergens
Global open food database. Query by category or barcode for nutrition and ingredients; ODbL data, no read key.
GET https://world.openfoodfacts.org/api/v2/search?categories_tags_en=chocolate&page_size=1
{
"count": 31475,
"page": 1,
"page_count": 1,
"page_size": 1,
"products": [
{
"_id": "3046920029759",
"_keywords": [
"afgeleide",
"bar"
],
"added_countries_tags": [],
"additives_n": 0,
"additives_original_tags": [],
"additives_tags": [],
"allergens": "",
"allergens_from_user": "(en) "
}
],
"skip": 0
}curl "https://world.openfoodfacts.org/api/v2/search?categories_tags_en=chocolate&page_size=1"const res = await fetch("https://world.openfoodfacts.org/api/v2/search?categories_tags_en=chocolate&page_size=1");
const data = await res.json();
console.log(data);import requests
res = requests.get("https://world.openfoodfacts.org/api/v2/search?categories_tags_en=chocolate&page_size=1")
print(res.json())/api/v2/search?categories_tags_en=chocolate&page_size=1PROBEDBarcode food data — Nutri-Score, allergens
/apiApi — documented GET route.
/api/1Api details by ID (example: 1).
/api?limit=10Api — documented GET route.
/api/search?q=testSearch by query parameters.
/api/v2/search?limit=5Search by query parameters.
We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.
Stable. No schema drift observed since monitoring began — the response shape has not changed under our checks.
Open Food Facts: common questions
Is Open Food Facts free to use?
Yes — Open Food Facts is a free health & food API. Free tier: Free — limits not published. Whether the free tier allows commercial use is unclear — check the provider docs.
Does Open Food Facts need an API key?
No — Open Food Facts needs no API key or signup. You can call it straight away; rate limits still apply (Unpublished).
Can I call Open Food Facts from the browser?
Yes — Open Food Facts returns CORS headers over HTTPS, so front-end code can fetch it directly with no backend proxy. Use the fetch snippet on this page, or hit "Run live" to try it now.
Is Open Food Facts up right now?
As of our last scheduled check, Open Food Facts is unmonitored. We re-probe it every sweep — the status badge and uptime chart above always show the latest.