# ASIN to GTIN Converter (`igview-owner/asin-to-gtin-converter`) Actor

Transform Amazon ASINs into universal barcodes (EAN-13, UPC, GTIN) for seamless inventory management. Works across 24 marketplaces. Bulk convert 100+ products. Save hours on product cataloging!

- **URL**: https://apify.com/igview-owner/asin-to-gtin-converter.md
- **Developed by:** [Sachin Kumar Yadav](https://apify.com/igview-owner) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 70 total users, 5 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

## 🔄 ASIN to GTIN Converter

**⚡ Convert Amazon ASINs to GTINs (EAN-13, UPC) instantly! Get accurate barcode identifiers for your Amazon products across all global marketplaces. Perfect for inventory management, product cataloging, and e-commerce operations. Built with Apify best practices for reliability and speed.**

### 📋 Table of Contents

- [✨ Features](#-features)
- [⚡ Quick Start](#-quick-start)
- [📊 Input Parameters](#-input-parameters)
- [📤 Output Format](#-output-format)
- [🔍 What is ASIN and GTIN?](#-what-is-asin-and-gtin)
- [🌐 Supported Marketplaces](#-supported-marketplaces)
- [❓ FAQ](#-faq)
- [🛠️ Troubleshooting](#️-troubleshooting)
- [🏷️ Tags](#️-tags)

***

### ✨ Features

- **🔄 Instant ASIN to GTIN Conversion** – Convert Amazon ASINs to EAN-13, UPC, and other barcode formats
- **📊 Complete Barcode Data** – Get all available GTIN types for each product
- **🌍 Multi-Marketplace Support** – Works across 24+ Amazon marketplaces worldwide
- **🚀 Bulk Processing** – Convert up to 100 ASINs in a single run
- **💪 Resilient & Reliable** – Automatic retries, rate-limit handling, and clear error messages
- **⚡ Fast & Efficient** – Optimized API calls with intelligent key rotation
- **📥 Multiple Export Formats** – Download data in JSON, CSV, Excel, or HTML
- **✅ ASIN Validation** – Automatic validation of ASIN format before processing

***

### ⚡ Quick Start

#### 1️⃣ Single ASIN Conversion

```json
{
  "asins": ["B0CHWWNKS6"],
  "country": "US"
}
```

#### 2️⃣ Multiple ASINs – Bulk Conversion

```json
{
  "asins": [
    "B0CHWWNKS6",
    "B08N5WRWNW",
    "B09G9FPHY6"
  ],
  "country": "US"
}
```

#### 3️⃣ International Marketplace

```json
{
  "asins": ["B0CHWWNKS6"],
  "country": "IN"
}
```

#### 4️⃣ Bulk Processing for E-commerce

```json
{
  "asins": [
    "B0CHWWNKS6",
    "B08N5WRWNW",
    "B09G9FPHY6",
    "B07XJ8C8F5",
    "B08L5VFJ2R"
  ],
  "country": "GB"
}
```

***

### 📊 Input Parameters

| Parameter | Type | Required | Description | Default | Example |
|-----------|------|----------|-------------|---------|------|
| `asins` | Array | ✅ **Yes** | List of Amazon ASINs (10-character codes starting with 'B') | - | `["B0CHWWNKS6", "B08N5WRWNW"]` |
| `country` | String | ❌ No | Amazon marketplace country code | `US` | `US`, `GB`, `DE`, `IN`, `JP`, etc. |

***

### 📤 Output Format

#### 📦 Conversion Data Structure

```json
{
  "asin": "B0CHWWNKS6",
  "country": "IN",
  "total_gtins": 2,
  "gtins": [
    {
      "value": "0195949037917",
      "type": "EAN-13"
    },
    {
      "value": "195949036118",
      "type": "UPC"
    }
  ],
  "ean_13": "0195949037917",
  "upc": "195949036118",
  "request_id": "e0cdb6ea-6d4d-42ab-bf95-07cdd1b35e8f",
  "converted_at": "2024-12-05T03:04:00.000Z"
}
```

#### 📋 Output Fields Explained

| Field | Type | Description |
|-------|------|-------------|
| `asin` | String | Amazon ASIN (from input) |
| `country` | String | Country code of the marketplace |
| `total_gtins` | Integer | Total number of GTINs found for this ASIN |
| `gtins` | Array | Array of all GTIN objects with value and type |
| `ean_13` | String | EAN-13 barcode (if available) |
| `upc` | String | UPC barcode (if available) |
| `request_id` | String | Unique request identifier from API |
| `converted_at` | String | ISO timestamp of when conversion was performed |

***

### 🔍 What is ASIN and GTIN?

#### 💻 What is an ASIN?

**ASIN** (Amazon Standard Identification Number) is a unique 10-character alphanumeric identifier assigned by Amazon to products in their catalog.

- **Format**: 10 characters, always starts with 'B'
- **Example**: `B0CHWWNKS6`
- **Where to find**: Product detail page URL or product information section

#### 🏷️ What is a GTIN?

**GTIN** (Global Trade Item Number) is an internationally recognized barcode identifier used for product identification.

**Common GTIN Types**:

- **EAN-13**: 13-digit European Article Number (e.g., `0195949037917`)
- **UPC**: 12-digit Universal Product Code (e.g., `195949036118`)
- **ISBN**: For books
- **EAN-8**: 8-digit short version

#### 🔍 How to Find ASINs

**Method 1: From Product URL**

1. Visit any Amazon product page
2. Look at the URL: `https://www.amazon.com/dp/B0CHWWNKS6`
3. The ASIN is after `/dp/` or `/product/`
4. **Example**: `amazon.com/dp/B0CHWWNKS6` → ASIN: `B0CHWWNKS6`

**Method 2: From Product Details**

1. Scroll to "Product Information" section
2. Find "ASIN" field
3. Copy the 10-character code

**Method 3: From Amazon Seller Central**

- If you're a seller, ASINs are listed in your inventory

#### ✅ Valid ASIN Formats

- ✅ `B0CHWWNKS6` (starts with B, 10 characters)
- ✅ `B08N5WRWNW`
- ✅ `B09G9FPHY6`
- ❌ `0195949037917` (this is a GTIN, not an ASIN)
- ❌ `B0CHW` (too short, must be 10 characters)

***

### 🌐 Supported Marketplaces

#### 🌎 Americas

| Country | Code | Domain |
|---------|------|--------|
| 🇺🇸 United States | `US` | amazon.com |
| 🇨🇦 Canada | `CA` | amazon.ca |
| 🇧🇷 Brazil | `BR` | amazon.com.br |
| 🇲🇽 Mexico | `MX` | amazon.com.mx |

#### 🌍 Europe

| Country | Code | Domain |
|---------|------|--------|
| 🇬🇧 United Kingdom | `GB` | amazon.co.uk |
| 🇩🇪 Germany | `DE` | amazon.de |
| 🇫🇷 France | `FR` | amazon.fr |
| 🇮🇹 Italy | `IT` | amazon.it |
| 🇪🇸 Spain | `ES` | amazon.es |
| 🇳🇱 Netherlands | `NL` | amazon.nl |
| 🇵🇱 Poland | `PL` | amazon.pl |
| 🇸🇪 Sweden | `SE` | amazon.se |
| 🇧🇪 Belgium | `BE` | amazon.com.be |
| 🇮🇪 Ireland | `IE` | amazon.ie |

#### 🌏 Asia & Pacific

| Country | Code | Domain |
|---------|------|--------|
| 🇯🇵 Japan | `JP` | amazon.co.jp |
| 🇮🇳 India | `IN` | amazon.in |
| 🇦🇺 Australia | `AU` | amazon.com.au |
| 🇸🇬 Singapore | `SG` | amazon.sg |
| 🇨🇳 China | `CN` | amazon.cn |

#### 🌍 Middle East & Africa

| Country | Code | Domain |
|---------|------|--------|
| 🇦🇪 UAE | `AE` | amazon.ae |
| 🇸🇦 Saudi Arabia | `SA` | amazon.sa |
| 🇹🇷 Türkiye | `TR` | amazon.com.tr |
| 🇪🇬 Egypt | `EG` | amazon.eg |
| 🇿🇦 South Africa | `ZA` | amazon.co.za |

***

#### ⚠️ Common Mistakes to Avoid

- ❌ Using GTINs instead of ASINs
- ❌ Including extra characters or spaces
- ❌ Wrong marketplace selection
- ❌ Typos in ASIN codes
- ❌ Processing more than 100 ASINs at once
- ❌ Using lowercase letters (ASINs should be uppercase)

***

### ❓ FAQ

#### General Questions

**Q: What is ASIN to GTIN conversion?**

- It's the process of converting Amazon's internal product identifier (ASIN) to universal barcode identifiers (GTINs) like EAN-13 and UPC that are used globally.

**Q: Why do I need to convert ASIN to GTIN?**

- GTINs are required for inventory management, product catalogs, price comparison tools, shipping labels, and integration with other e-commerce platforms.

**Q: What data will I get?**

- You'll get all available GTIN types for each ASIN including EAN-13, UPC, and other barcode formats specific to the product.

**Q: Can I convert multiple ASINs at once?**

- Yes! You can convert up to 100 ASINs in a single run for efficient bulk processing.

#### Technical Questions

**Q: Which marketplaces are supported?**

- 24+ marketplaces including US, GB, DE, JP, IN, FR, IT, ES, CA, BR, AU, MX, NL, SE, PL, BE, SA, AE, ZA, IE, EG, SG, TR, CN.

**Q: Do different marketplaces return different GTINs for the same ASIN?**

- Sometimes yes. The same product may have different GTIN associations in different regions, which is why marketplace selection is important.

**Q: What if an ASIN doesn't have a GTIN?**

- The actor will log an error for that specific ASIN and continue processing others. Some products (especially books) may not have standard GTINs.

**Q: How long does it take to convert ASINs?**

- Approximately 1-2 seconds per ASIN. 50 ASINs take about 1-2 minutes.

**Q: What output formats are available?**

- JSON, CSV, Excel (XLSX), and HTML table formats.

#### Data & Privacy

**Q: Is this data publicly available?**

- Yes, all GTIN data is publicly available on Amazon product pages.

**Q: Can I use this data commercially?**

- Yes, for legitimate business purposes like inventory management, product cataloging, and e-commerce operations.

**Q: How often should I update the data?**

- GTINs rarely change, but you may want to re-convert if Amazon updates product information or if you're expanding to new marketplaces.

***

### 🛠️ Troubleshooting

| Issue | Cause | Solution |
|-------|-------|----------|
| ❌ "No ASINs provided" | Empty or missing `asins` array | Add at least one valid ASIN |
| ❌ "Invalid ASIN format" | ASIN doesn't match B\[0-9A-Z]{9} pattern | Ensure ASIN is 10 characters, starts with 'B', and is uppercase |
| ❌ "ASIN not found" | Invalid ASIN or product doesn't exist | Verify the ASIN is correct and exists on Amazon |
| ⚠️ "Invalid response format" | API or network issue | Try again in a few moments |
| 🌍 Wrong marketplace data | Incorrect country code | Ensure you're using the right marketplace code (US, GB, etc.) |
| 📄 No GTINs found | Product doesn't have GTINs | Some products (especially private label) may not have GTINs |
| 🔄 Rate limit errors | Too many requests | Actor handles this automatically with retries |
| ⏱️ Slow performance | Large batch size | Reduce batch size to 50 ASINs per run |

***

### 🏷️ Tags

`asin to gtin`, `asin converter`, `gtin converter`, `amazon barcode`, `ean-13 converter`, `upc converter`, `amazon product identifier`, `barcode lookup`, `asin to ean`, `asin to upc`, `product catalog`, `inventory management`, `amazon api`, `product data extraction`, `e-commerce tools`, `amazon marketplace`, `product identification`, `barcode generator`, `amazon seller tools`, `product database`, `apify actor`, `web scraping`, `data extraction`, `amazon data`, `gtin lookup`

***

### 🚀 Get Started Now

**Ready to convert ASINs to GTINs?**

1. � Enter the **Amazon ASINs** (e.g., `B0CHWWNKS6`, `B08N5WRWNW`)
2. 🌍 Select the **Amazon marketplace** (e.g., `US`, `GB`, `IN`)
3. ▶️ Click **Start** to run the actor
4. 📥 Download your data in **JSON, CSV, Excel, or HTML** format
5. Click ["Try for free"](https://apify.com?fpr=ykgg9c) to test the actor

**⭐ If this actor helps your workflow, please give it a star!**

***

### 📚 Related Actors

Looking for more Amazon data? Check out these complementary actors:

- **[Amazon Search Scraper](https://apify.com/igview-owner/amazon-search-scraper)**
- **[Amazon Product Review Extractor](https://apify.com/igview-owner/amazon-review-scraper)**
- **[Amazon Seller Review Scraper](https://apify.com/igview-owner/amazon-seller-review-scraper)**
- **[Amazon Product Details Scraper](https://apify.com/igview-owner/amazon-product-data-scraper)**
- **[Amazon Sellers Products Scraper](https://apify.com/igview-owner/amazon-seller-products-scraper)**
- **[Amazon Best Sellers Products Scraper](https://apify.com/igview-owner/amazon-best-sellers-products-scraper)**
- **[Amazon Influencers Profile Scraper](https://apify.com/igview-owner/amazon-influencers-profile-scraper)**

***

*Built with ❤️ using Apify Platform | Optimized for Performance & Reliability*

# Actor input Schema

## `asins` (type: `array`):

📝 Enter one or more Amazon ASINs (Amazon Standard Identification Numbers) to convert to GTINs. ASINs are 10-character alphanumeric codes that start with 'B' (e.g., B0CHWWNKS6). You can find ASINs in product URLs or product detail pages.

## `country` (type: `string`):

🗺️ Select the Amazon marketplace/country for ASIN conversion. Different marketplaces may have different GTIN associations for the same ASIN. Choose the marketplace that matches your product's primary selling region (e.g., US = amazon.com, IN = amazon.in).

## Actor input object example

```json
{
  "asins": [
    "B0CFGYFCYL"
  ],
  "country": "US"
}
```

# Actor output Schema

## `overview` (type: `string`):

Open the dataset view with an overview of all ASIN to GTIN conversions including EAN-13 and UPC equivalents.

# 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 = {
    "asins": [
        "B0CFGYFCYL"
    ],
    "country": "US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("igview-owner/asin-to-gtin-converter").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 = {
    "asins": ["B0CFGYFCYL"],
    "country": "US",
}

# Run the Actor and wait for it to finish
run = client.actor("igview-owner/asin-to-gtin-converter").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 '{
  "asins": [
    "B0CFGYFCYL"
  ],
  "country": "US"
}' |
apify call igview-owner/asin-to-gtin-converter --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,igview-owner/asin-to-gtin-converter"
        }
    }
}
```

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/AcXYpw4helAO9aKGN/builds/OEeo1RLuI6W5gYt4X/openapi.json
