# Open Food Facts Scraper – $2/1K (`fluyeporlaweb/open-food-facts-scraper`) Actor

Look up food products by barcode (EAN/UPC): name, brand, Nutri-Score, NOVA, Eco-Score, allergens, nutrients per 100 g. Open data (ODbL), commercial use OK.

- **URL**: https://apify.com/fluyeporlaweb/open-food-facts-scraper.md
- **Developed by:** [Pablo Navarro](https://apify.com/fluyeporlaweb) (community)
- **Categories:** Automation, AI, Lead generation
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Scraper – Nutri-Score by Barcode

**Open Food Facts scraper** that looks up **food products by barcode** in the world's largest open food database and returns **Nutri-Score, NOVA group, Eco-Score, allergens, ingredients and nutrients per 100 g** as clean JSON. Commercial use is allowed under the ODbL with attribution.

### What does it do?

- Name, brand, quantity, categories, labels and countries.
- Nutri-Score, NOVA and Eco-Score grades.
- Allergens and ingredient text.
- kcal, fat, saturated fat, carbs, sugars, fiber, protein and salt per 100 g.
- Product image and page URL. Unknown barcodes come back as `found: false`.

### Use cases

- **E-commerce and dropshipping**: enrich food catalogs with nutrition and allergens.
- **Health and fitness apps or coaches**: score clients' shopping lists.
- **Content**: "Nutri-Score of the 10 best-selling cereals" posts for X and Telegram.
- **AI agents**: barcode → nutrition lookup in automations.

### Input

| Field | Description |
|---|---|
| `barcodes` | EAN-13 / UPC codes. Example: 3017624010701 |

Example input:

```json
{
  "barcodes": [
    "3017624010701",
    "5449000000996",
    "8000500310427",
    "7622210449283"
  ]
}
```

### Output

Real output (first items of a run on 26 Oct 2026):

```json
[
  {
    "barcode": "3017624010701",
    "found": true,
    "name": "Nutella",
    "brands": "Ferrero",
    "quantity": "400.0 g",
    "nutriScore": "e",
    "novaGroup": null,
    "ecoScore": "d",
    "categories": [
      "breakfasts",
      "spreads",
      "sweet-spreads",
      "pates-a-tartiner",
      "hazelnut-spreads",
      "chocolate-spreads",
      "cocoa-and-hazelnuts-spreads",
      "Other"
    ],
    "allergens": [
      "nuts"
    ],
    "labels": [
      "no-gluten"
    ],
    "countries": [
      "france",
      "united-kingdom"
    ],
    "ingredients": "sugar, palm oil, hazelnuts, skimmed milk powder, fat reduced cocoa, emulsifier, vanillin",
    "imageUrl": "https://images.openfoodfacts.org/images/products/301/762/401/0701/front_en.100.400.jpg",
    "url": "https://world.openfoodfacts.org/product/3017624010701",
    "license": "ODbL 1.0 / DbCL 1.0 – © Open Food Facts contributors",
    "energyKcal100g": 539,
    "fat100g": 30.9,
    "saturatedFat100g": 10.6,
    "carbs100g": 57.5,
    "sugars100g": 56.3,
    "fiber100g": null,
    "proteins100g": 6.3,
    "salt100g": 0.1075
  },
  {
    "barcode": "5449000000996",
    "found": true,
    "name": "Coca-Cola Original",
    "brands": "COCA-COLA SERVICES SA/NV",
    "quantity": "330 ml",
    "nutriScore": "e",
    "novaGroup": 4,
    "ecoScore": "not-applicable",
    "categories": [
      "beverages-and-beverages-preparations",
      "beverages",
      "non-alcoholic-beverages",
      "carbonated-drinks",
      "soft-drinks",
      "sodas",
      "colas",
      "bebidas cafeína"
    ],
    "allergens": [],
    "labels": [
      "made-in-the-eu",
      "triman"
    ],
    "countries": [
      "albania",
      "austria",
      "belgium",
      "bulgaria",
      "canada",
      "czech-republic",
      "france",
      "georgia",
      "germany",
      "ghana",
      "iceland",
      "india",
      "italy",
      "latvia",
      "lithuania",
      "mexico",
      "morocco",
      "poland",
      "romania",
      "senegal",
      "spain",
      "switzerland",
      "turkey",
      "ukraine",
      "united-kingdom",
      "united-states"
    ],
    "ingredients": "Agua carbonatada, azúcar, colorante (E-150d), acidulante (ácido fosfórico), aromas naturales (contiene cafeína).",
    "imageUrl": "https://images.openfoodfacts.org/images/products/544/900/000/0996/front_en.1129.400.jpg",
    "url": "https://world.openfoodfacts.org/product/5449000000996",
    "license": "ODbL 1.0 / DbCL 1.0 – © Open Food Facts contributors",
    "energyKcal100g": 42.4,
    "fat100g": 0,
    "saturatedFat100g": 0,
    "carbs100g": 10.6,
    "sugars100g": 10.6,
    "fiber100g": null,
    "proteins100g": 0,
    "salt100g": 0
  }
]
```

Export the results as JSON, CSV or Excel, read them through the API, or send them to Google Sheets, Make, Zapier, n8n or webhooks. You can also run this Actor from AI agents through the Apify MCP server.

### Pricing

Pay per event: **$2.00 per 1,000 products** plus $0.00005 per run start. There is no extra platform usage charge.

### FAQ

**Can I search by name?** This version looks up by barcode, which is the most reliable Open Food Facts endpoint.

**What must I do to reuse the data?** Credit Open Food Facts with a link and share derived databases under the ODbL (see below).

**How fast is it?** About 1 product per second, respecting Open Food Facts rate limits.

**Do I need a login or API key?** No. It uses the source's public API; you only need an Apify account.

**Can AI agents use it?** Yes. Call it through the Apify API, or from Claude, Cursor or any MCP client via the Apify MCP server.

### Data source and license

Source: [Open Food Facts](https://world.openfoodfacts.org/), © Open Food Facts contributors. Database under the [Open Database License (ODbL)](https://opendatacommons.org/licenses/odbl/1-0/), contents under DbCL, images under CC BY-SA. [Terms of use](https://world.openfoodfacts.org/terms-of-use): "The licences are free licences that authorize the use and reproduction of the content for all purposes, including commercial use, under certain conditions, especially the attribution and the sharing under the same condition of derivative works." Each item includes a `license` field and a link to the product page. The Actor sends a custom User-Agent as Open Food Facts requests.

This Actor is not affiliated with or endorsed by the data source. You are responsible for using the data in line with the source's license and terms.

# Actor input Schema

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

EAN-13 / UPC codes. Example: 3017624010701

## Actor input object example

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

# Actor output Schema

## `items` (type: `string`):

No description

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

No description

# 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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fluyeporlaweb/open-food-facts-scraper").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",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("fluyeporlaweb/open-food-facts-scraper").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"
  ]
}' |
apify call fluyeporlaweb/open-food-facts-scraper --silent --output-dataset

```

## MCP server setup

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

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/PdErzi7HvNo9UEzbc/builds/1oHpd3Xjt8lLenmUr/openapi.json
