# Price scraper with offers from all merchants using EAN/GTIN (`s-r/price-scraper-with-offers-from-all-merchants-using-ean-gtin`) Actor

Get real-time product pricing and offer data from multiple merchants using EAN or GTIN codes. It scans e-commerce platforms, marketplaces and webshops to collect price, seller name, stock status, shipping details and product URLs. Ideal for building price comparison tools and monitoring competitors.

- **URL**: https://apify.com/s-r/price-scraper-with-offers-from-all-merchants-using-ean-gtin.md
- **Developed by:** [SR](https://apify.com/s-r) (community)
- **Categories:** AI, E-commerce
- **Features:** Full permissions
- **Stats:** 41 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 multi-merchant pricing scrapeds

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

## Price scraper with offers from all merchants using EAN/GTIN

Give it a list of EAN/GTIN barcodes. Get back every live merchant offer for each product: who sells it, a direct link to their listing, the price, the shipping cost, the total, the condition and whether it is in stock.

One barcode in, the whole competitive set out. Across 15+ country markets.

### What you get

One record per product lookup, with every offer nested under `offers`:

```json
{
  "ean": "8720938897238",
  "gl": "nl",
  "found": true,
  "status": "cached",
  "title": "Luminize Oplaadbare Wandlamp",
  "currency": "EUR",
  "offers_count": 2,
  "lowest_total_price": 34.95,
  "highest_total_price": 39.9,
  "offers": [
    {
      "sellerName": "bol.com",
      "sellerReference": "https://www.bol.com/nl/nl/p/...",
      "price": "34.95",
      "shippingPrice": "0.00",
      "totalPrice": "34.95",
      "condition": "New",
      "availability": "InStock"
    }
  ]
}
```

`sellerReference` is the direct product URL at that merchant, so every offer is checkable and clickable.

### Input

```json
{
  "products": ["8720938897238", "5702017829241"],
  "country": "nl"
}
```

One code per line. EAN-8, UPC-A (12), EAN-13, GTIN-14, or a numeric catalog id. The type is detected automatically; anything else comes back as an error record rather than a silent miss.

**Optional title injection.** Add the product name from your own feed after a pipe:

```
8720648364181 | RAU Werkbank Modell 8185
```

This verifies the match and can roughly double the hit rate. The part before the pipe still has to be a valid code.

### You pay for the scrape, once

This is worth understanding, because it is not how most scrapers bill.

- **First request for a product we do not hold yet** — a scrape is queued. **Charged, once.** You are paying for the work, and you get a `queued_for_scrape` record telling you to come back in about two hours.
- **Repeat request while that scrape is still running** — **free**. You already paid for it.
- **Collecting the result** — **free**, however many times you collect it, and whether it comes back with offers or with none.

So one product in one country costs you exactly one charge, no matter how many times you ask for it. A ledger keyed on country + product code enforces that across runs, not just within one.

The one case where you are charged again is a product you last requested **more than 48 hours ago**. At that point the cached result is stale, a re-request triggers genuinely new work, and charging for it is the same first-request rule applying again.

Only charged records go to the default dataset. Everything free goes to `not-charged-results`. The dataset you are billed on and the dataset you are not are physically separate, so the bill is auditable line by line, and every record carries a `charged` flag as well.

### Good for

- Competitive price monitoring from a barcode feed
- Finding every seller of a product in a market, with direct links
- Repricing and margin checks against the live floor
- Catalogue enrichment: barcode to title, currency, offer spread
- MAP compliance: spotting who is selling below your floor

### Notes

- `status` tells you what happened: `queued_for_scrape` (free, come back), `cached` (charged, offers attached), `scraped_no_offers` (charged, nobody is offering it there).
- `charged` is on every record, so the bill is reconcilable line by line.
- `lowest_total_price` and `highest_total_price` are price plus shipping, so they compare like for like.
- Country defaults to the Netherlands. Set `country` for any of the 15+ supported markets.

# Actor input Schema

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

Country for all products

## `products` (type: `string`):

Enter one code per line. EAN/GTIN: EAN-8 (8 digits), UPC-A (12 digits), EAN-13 (13 digits) or GTIN-14 (14 digits). Catalog id: a long numeric product id (15+ digits). The type is detected automatically. Entries that are neither produce an error record instead of results.

Optional title injection: add the product name from your feed after a pipe to help verify the match, e.g. `8720648364181 | RAU Werkbank Modell 8185`. Supplying a title can roughly double the match rate. The part before the pipe must still be a valid code.

## `force` (type: `boolean`):

Off (default): cached offers up to 24 hours old are served instantly. On: demand fresh data and trigger a new scrape when the cache is stale. Forcing runs a fresh scrape, so it may be billed and can take longer to return.

## Actor input object example

```json
{
  "country": "NL",
  "products": "8720648364181\n8720938897238\n5941000002074 | Masina de tuns MRD Smart Brain",
  "force": false
}
```

# Actor output Schema

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

Dataset rows produced by this run.

## `output` (type: `string`):

OUTPUT record with the run's counts and status flags.

## `errors` (type: `string`):

Failures with a code and a redacted message. Absent when the run had none.

# 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 = {
    "products": `8720648364181
8720938897238
5941000002074 | Masina de tuns MRD Smart Brain`
};

// Run the Actor and wait for it to finish
const run = await client.actor("s-r/price-scraper-with-offers-from-all-merchants-using-ean-gtin").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 = { "products": """8720648364181
8720938897238
5941000002074 | Masina de tuns MRD Smart Brain""" }

# Run the Actor and wait for it to finish
run = client.actor("s-r/price-scraper-with-offers-from-all-merchants-using-ean-gtin").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 '{
  "products": "8720648364181\\n8720938897238\\n5941000002074 | Masina de tuns MRD Smart Brain"
}' |
apify call s-r/price-scraper-with-offers-from-all-merchants-using-ean-gtin --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,s-r/price-scraper-with-offers-from-all-merchants-using-ean-gtin"
        }
    }
}
```

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/scbS4R4FvghyfUIzA/builds/AobKhQvp3TaQorDKR/openapi.json
