Food and drink

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.
  • API
  • HTTP-GET
  • JSON
  • REST

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

Listed on Free Web Services

openfoodfacts.github.io
Open Food Facts API

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.

Did it work for you?

Tell us what you found when you tried Open Food Facts API.