zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
On this page
  • Playground
  • Code examples
  • Full reference
  • Related APIs
Food & Drink/Open Food Facts
Logo Open Food Facts

Open Food Facts

Retrieve product information, ingredients, and nutritional data from packaged foods.

Endpoints
1
Requests
11
Updated
3 months ago
For LLMs
llms.txt
Endpoint healthyesterday
  • productpassing, 1.4s
1/1 passingdaily 01:00 WIB

Playground

1 endpoint
GET/v1/food:openfoodfacts/product5m cache1 paramchecking key…
Parameters
barcodestringrequired

Product barcode (EAN/UPC), 8-13 digits

·
Response
EXAMPLE
{
  "ok": true,
  "product": {
    "name": "Nutella",
    "brands": "Nutella",
    "labels": "Sans gluten, Triman, en:Sans colorants, en:Sans conservateurs, en:Sans gluten, en:Sans matière grasse hydrogénée, en:Végétarien",
    "barcode": "3017620422003",
    "quantity": "",
    "allergens": "lait, fruits à coque, soja",
    "countries": "France, Italie, Luxembourg, Philippines, en:Allemagne, en:Belgique, en:Espagne, en:Inde, en:Maroc, en:Pays-Bas, en:Pologne, en:Roumanie, en:Royaume-Uni, en:Suisse, en:Turquie, en:États-Unis",
    "image_url": "https://images.openfoodfacts.org/images/products/301/762/042/2003/front_en.820.400.jpg",
    "categories": "en:Petit-déjeuners, en:Produits à tartiner, en:Produits à tartiner sucrés, en:Pâtes à tartiner",
    "nutriments": {
      "fat_100g": 30.9,
      "salt_100g": 0.107,
      "sugars_100g": 56.3,
      "proteins_100g": 6.3,
      "energy_kcal_100g": 539,
      "carbohydrates_100g": 57.5
    },
    "ecoscore_grade": "unknown",
    "ingredients_text": "Sucre, huile de palme, NOISETTES 13%, cacao maigre 7,4%, LAIT écrémé en poudre 6,6%, LACTOSERUM en poudre, émulsifiants: lécithines [SOJA), vanilline. Sans gluten.",
    "nutriscore_grade": "e"
  }
}

Code examples

Product
zpi-sdkrecommended
// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";

const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });

const data = await client.run("food:openfoodfacts", "product", {
  "barcode": "3017620422003"
});
console.log(data);
Full SDK reference →
request.sh
curl -X GET "https://api.zpi.web.id/v1/food:openfoodfacts/product?barcode=3017620422003" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Full reference

1 endpoint · plain text
GETProduct/v1/food:openfoodfacts/productGet product details by barcode.

Parameters

barcodestringrequired
Product barcode (EAN/UPC), 8-13 digits

Request

curl -X GET "https://api.zpi.web.id/v1/food:openfoodfacts/product?barcode=3017620422003" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "ok": true,
  "product": {
    "name": "Nutella",
    "brands": "Nutella",
    "labels": "Sans gluten, Triman, en:Sans colorants, en:Sans conservateurs, en:Sans gluten, en:Sans matière grasse hydrogénée, en:Végétarien",
    "barcode": "3017620422003",
    "quantity": "",
    "allergens": "lait, fruits à coque, soja",
    "countries": "France, Italie, Luxembourg, Philippines, en:Allemagne, en:Belgique, en:Espagne, en:Inde, en:Maroc, en:Pays-Bas, en:Pologne, en:Roumanie, en:Royaume-Uni, en:Suisse, en:Turquie, en:États-Unis",
    "image_url": "https://images.openfoodfacts.org/images/products/301/762/042/2003/front_en.820.400.jpg",
    "categories": "en:Petit-déjeuners, en:Produits à tartiner, en:Produits à tartiner sucrés, en:Pâtes à tartiner",
    "nutriments": {
      "fat_100g": 30.9,
      "salt_100g": 0.107,
      "sugars_100g": 56.3,
      "proteins_100g": 6.3,
      "energy_kcal_100g": 539,
      "carbohydrates_100g": 57.5
    },
    "ecoscore_grade": "unknown",
    "ingredients_text": "Sucre, huile de palme, NOISETTES 13%, cacao maigre 7,4%, LAIT écrémé en poudre 6,6%, LACTOSERUM en poudre, émulsifiants: lécithines [SOJA), vanilline. Sans gluten.",
    "nutriscore_grade": "e"
  }
}

Related APIs

More in food

GoFood

food/gofood

Cari restoran GoFood per kota/area & kategori masakan (data SSR). Catatan: detail menu per-resto tidak tersedia (di-gate WAF upstream).

162 calls·5m cache

Punch Drink

food/punchdrink

Cocktail & drink recipe scraper untuk Punch Drink — cari resep cocktail, ambil detail (bahan, cara, garnish), dan koleksi terbaru.

6 calls·10m cache

Resep Koki

food/resepkoki

Scraper resep masakan Indonesia dari Resep Koki — pencarian, detail resep lengkap (bahan, langkah, durasi), dan resep terbaru.

7 calls·10m cache

Dapur Umami

food/dapurumami

Scraper resep Dapur Umami — kumpulan resep masakan Indonesia, pencarian by keyword, detail resep (bahan, langkah, durasi, porsi).

6 calls·10m cache

Cookpad

food/cookpad

Cookpad recipe scraper — cari resep berdasarkan kata kunci, ambil detail resep, bahan, langkah dan waktu.

6 calls·1h cache

Zomato

food/zomato

Data restoran Zomato: pencarian per kota/cuisine, detail restoran, menu, dan ulasan. Catatan: Zomato tidak beroperasi di Indonesia — gunakan kota pasar aktif (mis. bangalore, dubai).

4 calls·10m cache
Browse APIsPricingDocsMCP serverGet an API key
zapi.One key, one response shape.
TermsPrivacyCookiesAUPRefunds© 2026