# E-commerce Product Scraper: Price Monitoring & Comparison (`pikoulas/ecommerce-products`) Actor

Monitor competitors' prices in any online shop (Shopify, WooCommerce, Magento and the rest): only the price drops, rises and stock changes since the last run, with the price before, and the same product's price compared across shops by GTIN. Name, SKU, GTIN, price, stock, variants. $1 per 1,000.

- **URL**: https://apify.com/pikoulas/ecommerce-products.md
- **Developed by:** [Spyridon Pikoulas](https://apify.com/pikoulas) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 product reads

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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

## E-commerce Product Scraper: Price Monitoring & Comparison

Watch your competitors' prices, and compare one product's price from shop to shop. Product data
from any online shop, whatever it runs on: Shopify, WooCommerce, Magento, Shopware, BigCommerce or
its own code. Give it product pages, category pages or just a shop's domain, and get
each product's name, brand, SKU, GTIN, price, currency, stock, rating, images and variants.

- **Price monitoring:** with **Only changed products** on and a schedule, each run gives only the
  products whose price or stock moved since the last run, a variant's too, with the price and stock
  before and the change in percent: price drops, rises, sell-outs and restocks, and new products.
- **Price comparison:** with **Compare prices across shops**, the products several shops sell come
  matched by their GTIN (the barcode) in one row each: every shop's price, the cheapest first, and
  the spread between them, free.

It reads the product data shops publish for search engines (schema.org JSON-LD, else microdata),
else a WooCommerce product page's own markup, else Open Graph's product tags, and a WooCommerce
product's variations from its product form. One Actor, one output format, for every shop on your
list.

It costs **$1 per 1,000 products**. A page without product data is free.

### What people use it for

- **Price monitoring:** competitors' prices and stock, run on a schedule, with only the changes given
  and the price before, to a sheet or Slack through Make, Zapier or n8n.
- **Catalogue building:** a brand's or supplier's products with SKUs, GTINs, images and descriptions.
- **Market research:** what a set of shops sells in a category, at what prices, and how it's rated.
- **MAP and reseller checks:** the price each reseller shows for the same GTIN, the cheapest first:
  a brand's resellers under its minimum advertised price, at a glance.

### How to scrape products

1. Click **Try for free**; Apify's free plan covers a first run.
2. Add **Product, category or shop URLs**, from as many shops as you like:
   - a **product page** gives its product;
   - a **category, collection or search page** gives the products it links to, following its next
     pages;
   - a **shop's home page or domain**, such as `example.com`, gives the products its sitemaps list.
3. Set **Most products per URL** (100 unless you change it).
4. For price monitoring, turn on **Only changed products** and schedule the run (Apify's
   **Schedules**, daily for example); to compare shops, turn on **Compare prices across shops**.
5. Click **Start**, then download the results as JSON, CSV, Excel or HTML, or read them through the
   API.

To watch two competitors' shops every day:

```json
{"urls": ["competitor-one.com", "https://competitor-two.com/collections/kettles"], "maxProducts": 500,
 "onlyChanged": true, "memory": "competitors"}
```

To compare one product in five shops:

```json
{
  "urls": [
    "https://www.bergfreunde.de/edelrid-hmpe-cord-sling-6mm-rundschlinge/",
    "https://www.bergzeit.de/p/edelrid-hmpe-cord-schlinge-6mm/5056034/",
    "https://www.bike24.com/p2803655.html",
    "https://varuste.net/en/p127116/edelrid-hmpe-cord-sling-6mm",
    "https://www.sportokay.com/cz_en/edelrid-hmpe-cord-6mm-bandschlinge.html"
  ],
  "compareShops": true
}
```

### Output

```json
{
  "url": "https://bloomscape.com/product/bamboo-palm/",
  "name": "Bamboo Palm",
  "brand": "Bloomscape",
  "sku": "9194375643432",
  "gtin": null,
  "mpn": null,
  "price": 229.0,
  "highPrice": null,
  "currency": "USD",
  "availability": "InStock",
  "condition": "New",
  "seller": null,
  "rating": 4.8,
  "reviewCount": 53,
  "category": null,
  "image": "https://cdn.shopify.com/s/files/1/0852/6482/6664/files/BloomscapeBambooPalmClay_1_580x696_crop_center@2x.jpg?v=1715291957",
  "images": ["https://cdn.shopify.com/s/files/1/0852/6482/6664/files/BloomscapeBambooPalmClay_1_580x696_crop_center@2x.jpg?v=1715291957"],
  "description": "Shop the stately Bamboo Palm indoor plant—pet friendly, air-purifying, and easy care. Delivered nationwide with free shipping and a 30-Day Guarantee.",
  "variants": [
    {
      "name": "EcoPot / Indigo",
      "sku": "50290707530024",
      "gtin": null,
      "price": 229.0,
      "currency": "USD",
      "availability": "OutOfStock",
      "url": "https://bloomscape.com/product/bamboo-palm/?variant=50290707530024"
    }
  ],
  "source": "json-ld",
  "shop": "bloomscape.com",
  "foundOn": "https://bloomscape.com/product-sitemap.xml",
  "readAt": "2026-11-09T18:18:59Z"
}
```

- `price` is the lowest price offered, `highPrice` the highest where variants or offers differ.
- `availability` is in schema.org's words: `InStock`, `OutOfStock`, `PreOrder`, `BackOrder`,
  `Discontinued` and the rest.
- `source` says where the data was read: `json-ld`, `microdata`, `woocommerce` or `open-graph`.
- `foundOn` is the page or sitemap the product was found on, and `change` (`new` or `changed`) is
  there with **Only changed products**. A changed product has `previousPrice`, `previousAvailability`
  and `priceChangePercent` too, `null` where the memory is from before they were kept.

A product compared across shops, from the five pages above: two of them publish the sling's GTIN
(one refused, two gave none):

```json
{
  "type": "price-comparison",
  "gtin": "4028545177595",
  "name": "Edelrid - HMPE Cord Sling 6mm - Rundschlinge - Night | 30 cm",
  "currency": "EUR",
  "shops": 2,
  "lowestPrice": 13.56,
  "highestPrice": 14.39,
  "priceSpreadPercent": 6.1,
  "cheapestShop": "bergfreunde.de",
  "offers": [
    {"shop": "bergfreunde.de", "price": 13.56, "availability": "InStock", "url": "https://www.bergfreunde.de/edelrid-hmpe-cord-sling-6mm-rundschlinge/?aid=1c41eeb3e3cbb3ee036fd1c88d1d577f&"},
    {"shop": "sportokay.com", "price": 14.39, "availability": "InStock", "url": "https://www.sportokay.com/cz_en/edelrid-hmpe-cord-6mm-bandschlinge.html"}
  ]
}
```

- Fields are as the shop gives them, and `null` where it doesn't. A URL that gave no product has
  only `url`, `errorType` and `error`, which says why.

### Use it as an API

One call runs it and returns the results as JSON (for runs under 5 minutes; longer ones start a
run and read its dataset). Apify's Python and JavaScript clients, and its Make, Zapier and n8n
integrations, work the same way.

```bash
curl -X POST "https://api.apify.com/v2/acts/pikoulas~ecommerce-products/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://bloomscape.com/"], "maxProducts": 20}'
```

AI agents can call it as a tool through Apify's MCP server: `https://mcp.apify.com?tools=pikoulas/ecommerce-products`.

### How much does it cost to scrape products?

You pay **$0.001 per product**, which is $1 per 1,000, on Apify's paid plans, and $1.50 per 1,000
on the free plan. A page without product data, and a page a shop refuses or its robots.txt keeps
out, is free. With **Only changed products**, every product read is charged, also those that
didn't change and so aren't given. A product reached twice in a run is charged once. The rows
comparing shops are free. There are no
monthly fees. Set a spending limit on a run and it stops there with what it has.

### Good to know

- **It reads each shop politely:** about one request a second, or the crawl delay its robots.txt
  asks for (up to 10 seconds), and shops on one server, as many Shopify shops are, share that pace.
  Many shops are read at once.
- **A shop that refuses is left alone:** a 401, 402, 403, 429 or 451 answer, or a check page, and
  that shop's other pages aren't read in the run (free, with `errorType: "refused"` or
  `"check-page"`). It names itself in its User-Agent, uses no proxy and doesn't try to get past a
  refusal, so shops that turn away automated visitors, many large ones among them, give nothing.
- **It keeps to robots.txt,** on every site a redirect leads to as well.
- **It reads the HTML the server sends,** without running JavaScript: a shop that builds its product
  data only in the browser gives nothing.
- From a shop's domain it reads the sitemaps its robots.txt names, or else those at the usual
  addresses (`/sitemap.xml`, `/sitemap_index.xml`, `/wp-sitemap.xml`), and the products in the ones
  named for products, in the order they list them. A shop without such a
  sitemap gives the products its home page links to, and a WooCommerce shop those its `/shop/` page
  lists.
- A search for products stops after 10 pages in a row without product data.
- **Comparing shops** matches products only by the GTIN shops publish, 8 to 14 digits, leading zeros
  aside; a shop that publishes none, or only its own SKU, isn't compared. Each shop's cheapest offer
  of a GTIN counts, in each currency apart, and a price of 0, which some shops show for a sold-out
  product, is left out. After a migration it compares what was read from there on.
- Ratings are the product's overall rating and count; reviews and reviewers aren't read. A
  description is cut at 2,000 characters.
- **Contact.** The Actor keeps nothing itself: results and its memory sit in the storage of whoever
  ran it. Questions or requests go to spyridwn.pd@gmail.com.

### FAQ

#### Which shops does it work with?

Any shop whose pages carry schema.org product data, which most do so that search engines show their
prices: Shopify, WooCommerce, Magento, Shopware, BigCommerce, PrestaShop and custom shops alike. A
shop that refuses automated visitors, or builds its pages in the browser, gives nothing, and that
costs nothing.

#### Is it legal to scrape product data?

It reads only public product pages and sitemaps of the shops you give it, as a visitor who isn't
logged in, and keeps to their robots.txt. Many shops' terms prohibit automated reading; each shop's
terms are its own, and you answer for the shops you give it and for your use of what it finds. If
you're unsure, ask a lawyer; Apify's [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)
is a good start. This Actor isn't affiliated with or endorsed by any of the shops it reads, or by
Shopify, WooCommerce or the other platforms named here.

#### Something missing or not working?

Open an issue on the **Issues** tab with the input you used, or ask there for a field you need.

# Actor input Schema

## `urls` (type: `array`):

Any number, from any shops. A product page gives its product. A category, collection or search page gives the products it links to, page after page. A shop's home page or domain, such as example.com, gives the products in its sitemaps.

## `maxProducts` (type: `integer`):

The most products read from each category page or shop. A product page gives its one product.

## `compareShops` (type: `boolean`):

A row more for each product two shops or more sell, matched by GTIN (the barcode), the product's or a variant's: every shop's price, the cheapest first, and the spread between them. Free; give the same product's pages from several shops, or the shops' categories.

## `onlyChanged` (type: `boolean`):

Give only the products that are new to the memory or changed since the last run with the same memory name, with their price and stock before and the price change in percent. Run it on a schedule to watch prices. Every product read is still charged.

## `changesOf` (type: `string`):

With only changed products, which changes give a product again.

## `memory` (type: `string`):

Runs with the same memory name compare against each other. Use another name for each list you watch. The memory is a key-value store named ecommerce-products-memory in your account.

## Actor input object example

```json
{
  "urls": [
    "https://www.bergfreunde.de/",
    "https://www.ecoffeecup.com/",
    "https://bloomscape.com/"
  ],
  "maxProducts": 20,
  "compareShops": false,
  "onlyChanged": false,
  "changesOf": "priceAndStock",
  "memory": "default"
}
```

# Actor output Schema

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

No description

## `changes` (type: `string`):

No description

## `comparison` (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 = {
    "urls": [
        "https://www.bergfreunde.de/",
        "https://www.ecoffeecup.com/",
        "https://bloomscape.com/"
    ],
    "maxProducts": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("pikoulas/ecommerce-products").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 = {
    "urls": [
        "https://www.bergfreunde.de/",
        "https://www.ecoffeecup.com/",
        "https://bloomscape.com/",
    ],
    "maxProducts": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("pikoulas/ecommerce-products").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 '{
  "urls": [
    "https://www.bergfreunde.de/",
    "https://www.ecoffeecup.com/",
    "https://bloomscape.com/"
  ],
  "maxProducts": 20
}' |
apify call pikoulas/ecommerce-products --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pikoulas/ecommerce-products"
        }
    }
}
```

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/gcuZHnS1cRJaq5zA9/builds/gFNrdeUZquGbf3xte/openapi.json
