# Barcode & ISBN Product Lookup — Open Data, EAN, UPC, GTIN (`nezucloud/barcode-isbn-product-lookup`) Actor

Look up product names, brands and book details from barcodes (EAN, UPC, GTIN) and ISBNs using open databases. Codes are validated first. Pay only for products found: $4 per 1,000.

- **URL**: https://apify.com/nezucloud/barcode-isbn-product-lookup.md
- **Developed by:** [NEZU SAS](https://apify.com/nezucloud) (community)
- **Categories:** E-commerce, Developer tools, Integrations
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 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.

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

## Barcode & ISBN Product Lookup — Open Data, EAN, UPC, GTIN

**Turn barcodes into product names, brands and book details — and pay only for what is found.** Paste your EAN, UPC, GTIN or ISBN codes (or a CSV). Each code is **validated first** (and repaired when the fix is safe), then looked up in **open databases**: Open Food Facts, Open Beauty Facts, Open Pet Food Facts, Open Products Facts and Open Library. Every result tells you **which database it came from** and carries the license and attribution.

![Product lookup results: product name, brand or source, duplicates and invalid codes](https://api.apify.com/v2/key-value-stores/E38MAT6DtK9ddzgPL/records/lookup-results.png)

| You give | You get |
|---|---|
| `3017620422003` | **Nutella** · Ferrero, Nutella · Hazelnut spreads · found in Open Food Facts |
| `9780306406157` (ISBN-13) | The book title, authors, publisher and cover · found in Open Library |
| `3017620422004` (typo) | ❌ `invalid_check_digit` — nothing searched, nothing charged |
| `36000291452` (lost leading zero) | repaired to `036000291452`, then looked up · `fixedFrom` shows the original |
| a code nobody has catalogued | `not_found` — free |

### Why you'll like it

- 💸 **Pay only for products found.** Invalid, not found, duplicate and failed rows are free.
- 🛡️ **No wasted searches:** codes are validated (check digit and length) before any request, and a lost leading zero is repaired for you.
- 🔎 **Several open databases in order,** food, cosmetics, pet food, general products and books, until one has the code.
- 🧾 **Source and license on every row** (`source`, `sourceUrl`, `license`), so you know what you can reuse and whom to credit.
- 🔁 **Duplicates detected:** the same code twice is looked up once and not charged twice.
- 🔒 **No scraping, no proxies:** it uses the public APIs of the open projects, identifies itself and keeps a polite request rate.

### Honest coverage

These databases are community projects. They are strong for **groceries, cosmetics, pet food and books**, and weak for electronics, hardware or industrial items. A `not_found` means "not in these databases", not "the code does not exist". Check your first batch to see the hit rate for your own catalog before processing a large list.

### Input

| Field | What it is |
|---|---|
| `codes` | EAN-13, UPC-A, EAN-8, GTIN-14 or ISBN-10/13, even with spaces, hyphens or a lost leading zero. |
| `fileUrl` / `column` | Optional public https CSV and the column to use (detected from names like barcode, ean, upc, gtin, isbn, code). |
| `sources` | Optional. Leave empty to use all: `openfoodfacts`, `openbeautyfacts`, `openpetfoodfacts`, `openproductsfacts`, `openlibrary`. |
| `onlyFound` | Return only the products found. |
| `maxCodes` | Safety limit (default 300, up to 3,000). |

Speed: the open services allow roughly 60–80 lookups per minute. A code that is found takes about **1 second**; a code that is not found takes **4–5 seconds** because every database is tried. So 300 codes take between 5 and 30 minutes. If the databases keep failing or rate-limiting, the Actor stops early and marks the run as `partial`.

Example:

```json
{ "codes": ["3017620422003", "9780306406157"] }
```

### Output

One dataset row per code: `status` (`found`, `not_found`, `invalid`, `duplicate`, `error`), the `code` searched, `fixedFrom`, and when found: `productName`, `brands`, `categories`, `quantity`, `countries`, `ingredients`, `allergens`, `nutriScore`, `authors`, `publishers`, `publishDate`, `pages`, `imageUrl`, `source`, `sourceUrl`, `license`. In the key-value store: `SUMMARY` and `results.csv`.

```json
{
  "row": 1,
  "input": "3017620422003",
  "code": "3017620422003",
  "status": "found",
  "productName": "Nutella",
  "brands": "Ferrero, Nutella",
  "source": "openfoodfacts",
  "sourceUrl": "https://world.openfoodfacts.org/product/3017620422003",
  "license": "ODbL — Open Food Facts contributors"
}
```

### Use it from code

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("nezucloud/barcode-isbn-product-lookup").call(
    run_input={"codes": ["3017620422003", "9780306406157"]}
)
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["input"], row["status"], row["productName"])
```

Every field is documented in the Actor's output schema, so AI agents (through the Apify API or MCP server) can use the results without guessing.

### Pricing

**Pay per event: $4.00 per 1,000 products found** ($0.004 per product), plus a tiny start fee of $0.00005 per run (Apify covers the compute of the first 5 seconds).

- Invalid, not found, duplicate and failed rows are free. The small start fee applies to every run. Only what was charged is delivered if you set a maximum cost per run.
- 100 products found = $0.40.
- You can set a maximum cost per run; the Actor stops cleanly when it is reached and marks the result as `partial`.

### Using the data

The product data comes from open projects. Open Food Facts, Open Beauty Facts, Open Pet Food Facts and Open Products Facts publish under the Open Database License (ODbL): credit the source and keep the license when you reuse or redistribute the data. The `license` and `sourceUrl` fields are there for that. Product images are published under CC BY-SA 3.0 (credit and share-alike) and a found record can be wrong: it is community-edited, so check anything critical. Open Library data comes from its public API; check openlibrary.org for the reuse terms of covers and text. `results.csv` includes `sourceUrl` and `license` for each row. This Actor is not affiliated with those projects.

### FAQ

**How do I look up a barcode in bulk?** Paste the list in `codes` or give a CSV in `fileUrl`; every row comes back with its product when it exists in the open databases.

**Why is my product "not found"?** The open databases do not contain every product. Electronics, hardware and local brands are the most often missing.

**Can it fix a code with a missing zero?** Yes: a safe correction is applied before the search and the original is kept in `fixedFrom`.

**Is my data stored or sent anywhere?** Only the validated codes are sent to the open databases to search them, over HTTPS. Nothing else leaves the run.

### Support

Found a bug or need another source? Open an issue on the Actor page: reports are answered quickly.

# Actor input Schema

## `codes` (type: `array`):

EAN-13, UPC-A, EAN-8, GTIN-14 or ISBN-10/13, even with spaces, hyphens or a lost leading zero.

## `fileUrl` (type: `string`):

Public https URL of a CSV. The code column is detected automatically (barcode, ean, upc, gtin, isbn, code) or set it below.

## `column` (type: `string`):

Exact header of the column with the codes. Leave empty to auto-detect.

## `sources` (type: `array`):

Leave empty to use all. Allowed values: openfoodfacts, openbeautyfacts, openpetfoodfacts, openproductsfacts, openlibrary. They are tried in this order until one has the code.

## `onlyFound` (type: `boolean`):

Skip rows for codes that were invalid, not found or duplicated. The summary still counts everything.

## `maxCodes` (type: `integer`):

Safety limit. The open services allow roughly 60–80 lookups per minute: about 1 second per code when it is found, and 4–5 seconds when it is not found (every database is tried). 300 codes can take from 5 to 30 minutes.

## Actor input object example

```json
{
  "codes": [
    "3017620422003",
    "9780306406157",
    "3017620422004"
  ],
  "onlyFound": false,
  "maxCodes": 300
}
```

# Actor output Schema

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

One row per code: status, product data, source and license.

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

Counts by status and source, requests made and whether the run was partial.

## `resultsCsv` (type: `string`):

Compact CSV with row, code, status, product, brand, category and source.

# 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 = {
    "codes": [
        "3017620422003",
        "9780306406157",
        "3017620422004"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("nezucloud/barcode-isbn-product-lookup").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 = { "codes": [
        "3017620422003",
        "9780306406157",
        "3017620422004",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("nezucloud/barcode-isbn-product-lookup").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 '{
  "codes": [
    "3017620422003",
    "9780306406157",
    "3017620422004"
  ]
}' |
apify call nezucloud/barcode-isbn-product-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nezucloud/barcode-isbn-product-lookup"
        }
    }
}
```

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/XGejb1HOiYI7QYzJi/builds/XMXtHIUcc66iakthC/openapi.json
