Open Food Facts API
by openfoodfacts.github.io
Food and drink
Added on October 31st, 2026
Checked and working on November 1st, 2026
Visit openfoodfacts.github.io →
What it does
Open Food Facts is a collaborative, open database of food products from around the world. Look up a product by its barcode and get its name, brand, ingredients, allergens, additives, nutrition facts and scores such as Nutri-Score, NOVA and Eco-Score, plus product photos. Responses are JSON. Free, open data, no key needed; send a User-Agent that identifies your app.
At a glance
- API key
- Not needed · More APIs with no key
- Pricing
- Free, open data, no key needed; send a User-Agent that identifies your app.
- From the browser
- Yes (CORS)
- Formats
- JSON
- Interface
- REST, HTTP-GET
- Provider
- openfoodfacts.github.io
- Last checked
- Working on November 1st, 2026
More information: https://openfoodfacts.github.io/openfoodfacts-server/api/
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://world.openfoodfacts.org/api/v2/product/3017624010701.json?fields=product_name,brands'
JavaScript
const response = await fetch("https://world.openfoodfacts.org/api/v2/product/3017624010701.json?fields=product_name,brands");
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
"https://world.openfoodfacts.org/api/v2/product/3017624010701.json?fields=product_name,brands",
timeout=30,
)
print(response.json())
The JavaScript works in a web page as well as in Node.js 18 or newer.