# GTIN / EAN / UPC Barcode Validator (bulk) (`signalone-emetzor/gtin-ean-upc-validator`) Actor

Validate thousands of barcodes at once: check digit, GTIN-8/12/13/14 type, ISBN/ISSN detection, restricted in-store and coupon prefixes, issuing GS1 organisation, UPC-A to EAN-13 and GTIN-14 conversion, and corrected codes. For Google Shopping, Amazon and marketplace catalogs.

- **URL**: https://apify.com/signalone-emetzor/gtin-ean-upc-validator.md
- **Developed by:** [SignalOne by EMETZOR](https://apify.com/signalone-emetzor) (community)
- **Categories:** E-commerce, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 barcode checked

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/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

## GTIN / EAN / UPC Barcode Validator (bulk)

Check thousands of product barcodes in seconds before they get your listings rejected by Google Shopping, Amazon or other marketplaces.

### What you get for every code

| Field | Meaning |
|---|---|
| `valid` / `checkDigitOk` | Correct length and GS1 check digit |
| `type` | GTIN-8 (EAN-8), GTIN-12 (UPC-A), GTIN-13 (EAN-13), GTIN-14, ISBN-13, ISSN |
| `usableAsProductGtin` | Valid **and** not a restricted, in-store, coupon or refund prefix |
| `problem` | Plain-language reason when it is not usable |
| `correctedCode` | The code with the right check digit (typo hint, verify before use) |
| `prefixClass` | Company prefix (normal trade item) or a special-purpose range: restricted/in-store, coupon, ISBN, ISSN, refund receipt |
| `gtin14`, `ean13`, `upcA` | Normalised forms for feeds and databases |

### Input

- `codes`: a list of barcodes, or
- `text`: paste any text or CSV export; every 8–14 digit number is checked.

```json
{ "codes": ["4006381333931", "036000291452", "2000000000008"], "onlyProblems": true }
```

A summary (checked, valid, invalid, restricted, usable) is saved in the key-value store as `OUTPUT`.

### Integrations: Zapier, Make, n8n, Google Sheets, AI agents

- **No-code automation**: use this Actor in **Zapier**, **Make** and **n8n** through the official Apify app/node, e.g. check new rows from a Google Sheet or CRM every day and send problems to Slack or email.
- **Schedules**: run it daily or weekly in Apify Schedules to monitor the same list and catch changes.
- **Exports**: results download as Excel, CSV, JSON or XML, or go straight to Google Sheets, Airtable or a webhook.
- **API**: start runs and read results from any language with the Apify API or client libraries (JavaScript, Python).
- **AI agents (MCP)**: available as a tool through the Apify MCP server (mcp.apify.com) for Claude, ChatGPT, Cursor and other MCP clients.

### Pricing

Pay per code: $0.50 per 1,000 codes checked ($0.0005 per code). No subscription, no platform fees on top.

### For AI agents

Simple typed input and flat JSON output: use it as an MCP tool to clean product identifiers before creating listings.

### Notes

The check is offline and deterministic (standard modulo-10 check-digit algorithm and the special-purpose prefix ranges). A valid code is not proof that it belongs to your product: GS1 registration lookups are a separate service.

Made by SignalOne / EMETZOR (Luxembourg) — https://emetzor.com/signalone/

### Legal notice

Independent tool by SignalOne / EMETZOR (Luxembourg), not affiliated with or endorsed by GS1. GS1, EAN and UPC are referred to only to describe the barcode formats; GS1 is a trademark of GS1 AISBL. A valid check digit does not prove that a code is licensed to a brand. Use GS1's own services to verify ownership.

# Actor input Schema

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

List of GTIN / EAN / UPC codes. Spaces and hyphens are ignored.

## `text` (type: `string`):

Any text or CSV export; every 8–14 digit number in it is checked.

## `onlyProblems` (type: `boolean`):

Skip codes that are valid and usable as product GTINs.

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

Stop after this many codes (billed per code checked).

## Actor input object example

```json
{
  "codes": [
    "4006381333931",
    "036000291452",
    "4006381333932",
    "2000000000008",
    "9780306406157",
    "12345"
  ],
  "onlyProblems": false,
  "maxCodes": 1000000
}
```

# Actor output Schema

## `results` (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 = {
    "codes": [
        "4006381333931",
        "036000291452",
        "4006381333932",
        "2000000000008",
        "9780306406157",
        "12345"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("signalone-emetzor/gtin-ean-upc-validator").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": [
        "4006381333931",
        "036000291452",
        "4006381333932",
        "2000000000008",
        "9780306406157",
        "12345",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("signalone-emetzor/gtin-ean-upc-validator").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": [
    "4006381333931",
    "036000291452",
    "4006381333932",
    "2000000000008",
    "9780306406157",
    "12345"
  ]
}' |
apify call signalone-emetzor/gtin-ean-upc-validator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,signalone-emetzor/gtin-ean-upc-validator"
        }
    }
}
```

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/dezbRJsXg1X3PaRg8/builds/bwo8q55lxN24RSXAd/openapi.json
