# Open Food Facts Barcode Lookup: Nutri-Score, Nutrition (`arnaud437/open-food-facts-ean`) Actor

Look up food products by EAN barcode in Open Food Facts: name, brand, ingredients, allergens, Nutri-Score, NOVA, Eco-Score and nutrition per 100 g, in bulk.

- **URL**: https://apify.com/arnaud437/open-food-facts-ean.md
- **Developed by:** [Open Data Tools](https://apify.com/arnaud437) (community)
- **Categories:** E-commerce, Business, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 product founds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Open Food Facts Barcode Lookup: Nutri-Score, Nutrition

Look up **food products by barcode** (EAN-13, EAN-8, UPC) in **Open Food Facts**, the free database of over 3 million food products from 150+ countries: **name**, **brands**, **quantity**, **categories**, **ingredients**, **allergens**, **additives**, **Nutri-Score**, **NOVA group**, **Eco-Score** and **nutrition per 100 g**, with the product **image**. In bulk, as clean **JSON**. **$1.00 per 1,000 products found**; barcodes not found are free.

### What you get

One row per barcode:

- **Product name**, generic name, **brands**, **quantity**, serving size.
- **Categories**, **labels** (organic, gluten-free…), **countries** where sold, **origins** and **manufacturing places**.
- **Ingredients text**, **allergens**, **traces** and **additives** (E numbers).
- **Nutri-Score** (a to e), **NOVA** group (1 to 4, food processing) and **Eco-Score** (a to e).
- **Nutrition per 100 g**: energy (kcal), fat, saturated fat, carbohydrates, sugars, fiber, proteins, salt.
- **Front image** link and **last update** date.

### Use cases

- **E-commerce and retail**: enrich product sheets with ingredients, allergens and Nutri-Score.
- **Food and health apps**: show scores and nutrition from a scanned barcode.
- **Category and private-label analysis**: compare the Nutri-Score of a shelf or a brand.
- **Allergen and additive checks**: flag products with nuts, gluten or E numbers in a catalogue.

### How to use

- **Without changing anything**: three known products.
- **Barcodes**: one per line, up to 10,000. Spaces are fine; a 12-digit UPC is read as its EAN-13. A wrong check digit gives a free error row.
- **Language**: names and ingredients in this language when the product has them.

The tool reads 100 barcodes per request and waits between requests, as Open Food Facts asks: about 1,000 barcodes a minute.

### Input example

```json
{
  "barcodes": ["3017624010701", "5449000000996", "3274080005003"],
  "language": "en"
}
```

### Output example

```json
{
  "recordType": "product",
  "id": "3017624010701",
  "barcode": "3017624010701",
  "url": "https://world.openfoodfacts.org/product/3017624010701",
  "productName": "Nutella",
  "genericName": null,
  "brands": ["Ferrero"],
  "quantity": "400.0 g",
  "categories": ["breakfasts", "spreads", "sweet-spreads", "hazelnut-spreads", "chocolate-spreads"],
  "labels": ["no-gluten"],
  "countries": ["france", "united-kingdom"],
  "origins": null,
  "manufacturingPlaces": null,
  "ingredientsText": "sugar, palm oil, hazelnuts, skimmed milk powder, fat reduced cocoa, emulsifier, vanillin",
  "allergens": ["nuts"],
  "traces": ["milk", "nuts", "soybeans"],
  "additives": [],
  "nutriScore": "e",
  "novaGroup": null,
  "ecoScore": "d",
  "nutrimentsPer100g": {
    "energyKcal": 539,
    "fat": 30.9,
    "saturatedFat": 10.6,
    "carbohydrates": 57.5,
    "sugars": 56.3,
    "fiber": null,
    "proteins": 6.3,
    "salt": 0.1075
  },
  "servingSize": null,
  "imageUrl": "https://images.openfoodfacts.org/images/products/301/762/401/0701/front_en.100.400.jpg",
  "lastModifiedAt": "2026-10-02T17:52:32.000Z",
  "status": "ok",
  "sourceName": "Open Food Facts",
  "sourceUrl": "https://world.openfoodfacts.org/product/3017624010701",
  "licence": "Open Database License (ODbL) 1.0, Open Food Facts contributors; images CC BY-SA",
  "sourceUpdatedAt": "2026-10-02T17:52:32.000Z",
  "actorVersion": "0.1.1",
  "retrievedAt": "2026-11-20T13:01:51.886Z"
}
```

### Pricing

Pay per event: **$1.00 per 1,000 products found** (`product-extracted`, $0.001 each), plus Apify's start fee of $0.00005 per run. Barcodes not in Open Food Facts and wrong barcodes give **free** error rows.

| Products found | Price |
| -------------- | ----- |
| 100            | $0.10 |
| 1,000          | $1    |
| 10,000         | $10   |

### Data source

**Open Food Facts**, the collaborative, non-profit food product database, through its documented public API. Data is entered by contributors and producers: it can be incomplete.

### Is it legal?

Yes. The database is open under the **Open Database License (ODbL)**: free reuse, including commercial, with attribution to Open Food Facts, and a database you build from it must stay under the ODbL. Images are under CC BY-SA. Every row names the source and licence. Contributors' names are never written.

### FAQ

- **Why is a score null?** The product lacks the data needed to compute it (or it does not apply, such as water).
- **Why is a barcode not found?** Nobody has added the product yet; you can add it on openfoodfacts.org.
- **Does it read the product page?** No, only the public API, 100 barcodes per request.

### Related Actors

- [ECB Exchange Rates](https://apify.com/arnaud437/exchange-rates-ecb): Official Euro FX Rates & History
- [French Property Prices (DVF)](https://apify.com/arnaud437/france-property-sales): Sales & Price per m²
- [npm and PyPI Package Stats](https://apify.com/arnaud437/package-registry-stats): Downloads, Versions
- [Wikipedia Pageviews](https://apify.com/arnaud437/wikipedia-pageviews): Article Views and Top Articles
- [France Fuel Prices](https://apify.com/arnaud437/france-fuel-prices): Every Station, Live Feed

Every Actor here also works as a tool for AI agents (Claude, ChatGPT, Cursor…) through [Apify’s MCP server](https://mcp.apify.com).

### Changelog

See [CHANGELOG.md](CHANGELOG.md).

### En français

#### Fiches produits alimentaires par code-barres

Nom, marque, ingrédients, allergènes, Nutri-Score, NOVA, Eco-Score et valeurs nutritionnelles pour 100 g, d'après Open Food Facts, pour des milliers de codes-barres EAN à la fois.

#### Prix

1 $ les 1 000 produits trouvés ; les codes introuvables sont gratuits.

#### Source et légalité

Open Food Facts, base ouverte sous licence ODbL (citer la source, garder la même licence pour une base dérivée).

# Changelog

This Actor's version history is a separate document: https://apify.com/arnaud437/open-food-facts-ean/changelog.md

# Actor input Schema

## `barcodes` (type: `array`):

One EAN-13, EAN-8 or UPC barcode per line. Up to 10,000 per run.

## `language` (type: `string`):

Two-letter code of the language to prefer for names and ingredients (en, fr, de, es, it…), when the product has them.

## Actor input object example

```json
{
  "barcodes": [
    "3017624010701",
    "5449000000996",
    "3274080005003"
  ],
  "language": "en"
}
```

# Actor output Schema

## `results` (type: `string`):

One row per barcode: product, brand, ingredients, allergens, scores and nutrition.

## `summary` (type: `string`):

Products found, error rows, and dates of the run.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "barcodes": [
        "3017624010701",
        "5449000000996",
        "3274080005003"
    ],
    "language": "en"
};

// Run the Actor and wait for it to finish
const run = await client.actor("arnaud437/open-food-facts-ean").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "barcodes": [
        "3017624010701",
        "5449000000996",
        "3274080005003",
    ],
    "language": "en",
}

# Run the Actor and wait for it to finish
run = client.actor("arnaud437/open-food-facts-ean").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "barcodes": [
    "3017624010701",
    "5449000000996",
    "3274080005003"
  ],
  "language": "en"
}' |
apify call arnaud437/open-food-facts-ean --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,arnaud437/open-food-facts-ean"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/bSactDGmmXDFkrSZk/builds/4PDTKYQXRxppg24Oh/openapi.json
