# Match products by barcode (UPC, EAN)

**Use case:** 

Matches two catalogues on the barcodes of every variant: the surest match, with each pair's price gap.

## Input

```json
{
  "yourItems": [
    {
      "title": "Intraknit Thermal Merino Base Layer Colorblock Crew — Men's",
      "brand": "Smartwool",
      "price": 150,
      "currency": "USD",
      "url": "https://www.outdoorsports.com/products/smartwool-intraknit_thermal_merino_base_layer_colorblock_crew-baselayers-2026",
      "store": "outdoorsports.com",
      "variants": [
        {
          "sku": "20997002",
          "gtin": "198268466932",
          "price": 150
        },
        {
          "sku": "20997003",
          "gtin": "198268466918",
          "price": 150
        },
        {
          "sku": "20997004",
          "gtin": "198268466697",
          "price": 150
        },
        {
          "sku": "20997005",
          "gtin": "198268466956",
          "price": 150
        }
      ]
    },
    {
      "title": "Montana Ski Mitt — Women's",
      "brand": "The North Face",
      "price": 70,
      "currency": "USD",
      "url": "https://www.outdoorsports.com/products/the_north_face-montana_mitt-gloves_-_mittens-womens-2026",
      "store": "outdoorsports.com",
      "variants": [
        {
          "sku": "20998401",
          "gtin": "198269055739",
          "price": 70
        },
        {
          "sku": "20998402",
          "gtin": "198269055524",
          "price": 70
        },
        {
          "sku": "20998403",
          "gtin": "198269055364",
          "price": 70
        },
        {
          "sku": "20998404",
          "gtin": "198269055173",
          "price": 70
        },
        {
          "sku": "20998405",
          "gtin": "198269055579",
          "price": 70
        },
        {
          "sku": "20998396",
          "gtin": "198269089826",
          "price": 70
        }
      ]
    },
    {
      "title": "Montana Glove — Unisex",
      "brand": "The North Face",
      "price": 70,
      "currency": "USD",
      "url": "https://www.outdoorsports.com/products/the_north_face-montana_glove-gloves_-_mittens-2026",
      "store": "outdoorsports.com",
      "variants": [
        {
          "sku": "20998326",
          "gtin": "198269055555",
          "price": 70
        },
        {
          "sku": "20998327",
          "gtin": "198269055319",
          "price": 70
        },
        {
          "sku": "20998328",
          "gtin": "198269054954",
          "price": 70
        },
        {
          "sku": "20998329",
          "gtin": "198269054916",
          "price": 70
        },
        {
          "sku": "20998330",
          "gtin": "198269054671",
          "price": 70
        },
        {
          "sku": "20998331",
          "gtin": "198269055128",
          "price": 70
        }
      ]
    },
    {
      "title": "Shelbe Raschel Hoodie — Women's",
      "brand": "The North Face",
      "price": 170,
      "currency": "USD",
      "url": "https://www.outdoorsports.com/products/the_north_face-shelbe_raschel_hoodie-jackets-womens-2026",
      "store": "outdoorsports.com",
      "variants": [
        {
          "sku": "20997801",
          "gtin": "198269097999",
          "price": 170
        },
        {
          "sku": "20997802",
          "gtin": "198269097470",
          "price": 170
        },
        {
          "sku": "20997803",
          "gtin": "198269097401",
          "price": 170
        },
        {
          "sku": "20997804",
          "gtin": "198269097159",
          "price": 170
        },
        {
          "sku": "20997805",
          "gtin": "198269097692",
          "price": 170
        },
        {
          "sku": "21007555",
          "gtin": "197641099859",
          "price": 170
        }
      ]
    },
    {
      "title": "TNF Performance Fleece ¼ Zip — Men's",
      "brand": "The North Face",
      "price": 90,
      "currency": "USD",
      "url": "https://www.outdoorsports.com/products/the_north_face-tnf_performance_fleece_quarter_zip-jackets-2026",
      "store": "outdoorsports.com",
      "variants": [
        {
          "sku": "20998106",
          "gtin": "197804167999",
          "price": 90
        },
        {
          "sku": "20998107",
          "gtin": "197804167920",
          "price": 90
        },
        {
          "sku": "20998108",
          "gtin": "197804167869",
          "price": 90
        },
        {
          "sku": "20998109",
          "gtin": "197804168149",
          "price": 90
        },
        {
          "sku": "20998110",
          "gtin": "197804168217",
          "price": 90
        },
        {
          "sku": "20998101",
          "gtin": "198268873013",
          "price": 90
        }
      ]
    }
  ],
  "competitorItems": [
    {
      "title": "Smartwool - Intraknit Thermal Merino Base Layer Colorblock Crew - Men's - Dark Mink Burnt Sienna",
      "brand": "Smartwool",
      "price": 150,
      "currency": "USD",
      "url": "https://www.gearx.com/products/smartwool-intraknit-thermal-merino-base-layer-colorblock-crew-mens-bs4rh-dark-mink-burnt-sienna",
      "store": "gearx.com",
      "variants": [
        {
          "sku": "BS4RH-04-SM",
          "gtin": "198268466932",
          "price": 150
        },
        {
          "sku": "BS4RH-04-MD",
          "gtin": "198268466918",
          "price": 150
        },
        {
          "sku": "BS4RH-04-LG",
          "gtin": "198268466697",
          "price": 150
        },
        {
          "sku": "BS4RH-04-XL",
          "gtin": "198268466956",
          "price": 150
        },
        {
          "sku": "BS4RH-04-XXL",
          "gtin": "198268466963",
          "price": 150
        }
      ]
    },
    {
      "title": "The North Face - Women's Montana Mitt - Garnet",
      "brand": "The North Face",
      "price": 70,
      "currency": "USD",
      "url": "https://www.gearx.com/products/the-north-face-womens-montana-mitt-la7me-garnet",
      "store": "gearx.com",
      "variants": [
        {
          "sku": "LA7ME-01-XS",
          "gtin": "198269089826",
          "price": 70
        },
        {
          "sku": "LA7ME-01-SM",
          "gtin": "198269089697",
          "price": 70
        },
        {
          "sku": "LA7ME-01-MD",
          "gtin": "198269089673",
          "price": 70
        },
        {
          "sku": "LA7ME-01-LG",
          "gtin": "198269089628",
          "price": 70
        },
        {
          "sku": "LA7ME-01-XL",
          "gtin": "198269089819",
          "price": 70
        }
      ]
    },
    {
      "title": "The North Face - Montana Glove - Utility Brown/Dark Chestnut",
      "brand": "The North Face",
      "price": 70,
      "currency": "USD",
      "url": "https://www.gearx.com/products/the-north-face-montana-glove-gj2fv-utility-brown_dark-chestnut",
      "store": "gearx.com",
      "variants": [
        {
          "sku": "GJ2FV-02-SM",
          "gtin": "198269055135",
          "price": 70
        },
        {
          "sku": "GJ2FV-02-MD",
          "gtin": "198269054961",
          "price": 70
        },
        {
          "sku": "GJ2FV-02-LG",
          "gtin": "198269054909",
          "price": 70
        },
        {
          "sku": "GJ2FV-02-XL",
          "gtin": "198269055326",
          "price": 70
        },
        {
          "sku": "GJ2FV-02-XXL",
          "gtin": "198269055562",
          "price": 70
        }
      ]
    },
    {
      "title": "The North Face - Shelbe Raschel Hoodie - Women's - Garnet",
      "brand": "The North Face",
      "price": 170,
      "currency": "USD",
      "url": "https://www.gearx.com/products/the-north-face-womens-shelbe-raschel-hoodie-om2um-garnet",
      "store": "gearx.com",
      "variants": [
        {
          "sku": "OM2UM-06-XS",
          "gtin": "198269097999",
          "price": 170
        },
        {
          "sku": "OM2UM-06-SM",
          "gtin": "198269097470",
          "price": 170
        },
        {
          "sku": "OM2UM-06-MD",
          "gtin": "198269097401",
          "price": 170
        },
        {
          "sku": "OM2UM-06-LG",
          "gtin": "198269097159",
          "price": 170
        },
        {
          "sku": "OM2UM-06-XL",
          "gtin": "198269097692",
          "price": 170
        },
        {
          "sku": "OM2UM-06-XXL",
          "gtin": "198269098620",
          "price": 170
        }
      ]
    },
    {
      "title": "The North Face - Men's TNF Performance Fleece 1/4 Zip - TNF Black",
      "brand": "The North Face",
      "price": 90,
      "currency": "USD",
      "url": "https://www.gearx.com/products/the-north-face-mens-tnf-performance-fleece-1-4-zip-gh6ls-tnf-black",
      "store": "gearx.com",
      "variants": [
        {
          "sku": "GH6LS-02-SM",
          "gtin": "197804167999",
          "price": 90
        },
        {
          "sku": "GH6LS-02-MD",
          "gtin": "197804167920",
          "price": 90
        },
        {
          "sku": "GH6LS-02-LG",
          "gtin": "197804167869",
          "price": 90
        },
        {
          "sku": "GH6LS-02-XL",
          "gtin": "197804168149",
          "price": 90
        },
        {
          "sku": "GH6LS-02-XXL",
          "gtin": "197804168217",
          "price": 90
        }
      ]
    }
  ],
  "titleMatching": true,
  "minTitleScore": 90,
  "titleWithoutBrand": false,
  "minConfidence": 0.6,
  "gaps": "both",
  "gapsInYourBrandsOnly": true,
  "changesOnly": false,
  "minPriceChangePercent": 0,
  "maxItemsPerCatalogue": 50000
}
```

## Output

```json
{
  "catalogue": {
    "label": "Competitor",
    "format": "text"
  },
  "matchMethod": {
    "label": "Method",
    "format": "text"
  },
  "confidence": {
    "label": "Confidence",
    "format": "number"
  },
  "yourTitle": {
    "label": "Your product",
    "format": "text"
  },
  "yourPrice": {
    "label": "Your price",
    "format": "number"
  },
  "theirTitle": {
    "label": "Their product",
    "format": "text"
  },
  "theirPrice": {
    "label": "Their price",
    "format": "number"
  },
  "priceGapPercent": {
    "label": "Price gap %",
    "format": "number"
  },
  "cheaper": {
    "label": "Cheaper",
    "format": "text"
  },
  "priceNote": {
    "label": "Price note",
    "format": "text"
  },
  "matchedOn": {
    "label": "Matched on",
    "format": "text"
  },
  "theirUrl": {
    "label": "Their page",
    "format": "link"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Catalog Matcher: Competitor Product Matching & Price Gaps Actor is ready to run with the inputs already set for "Match products by barcode (UPC, EAN)". [Sign up or log in](https://console.apify.com/create-task-from-example/oSOqTKPycrgbGtTg2) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Match products by barcode (UPC, EAN)" task

The Catalog Matcher: Competitor Product Matching & Price Gaps Actor will start running based on the input automatically. You can also change all the input fields, like your products (rows), competitor products (rows), and more, to match your specific use case.

### 3. Receive the "Match products by barcode (UPC, EAN)" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as competitor, method, confidence, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Match products by barcode (UPC, EAN)" task via API](https://apify.com/cleanpull/catalog-matcher.md).

## About this Actor

This example demonstrates how to use [Catalog Matcher: Competitor Product Matching & Price Gaps](https://apify.com/cleanpull/catalog-matcher.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/cleanpull/catalog-matcher.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/cleanpull/catalog-matcher.md

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`).
