# Product Price Tracker with Price-Drop Alerts, Any Store (`opstoolkit/product-price-monitor`) Actor

Give it product page URLs from independent online shops, get price, currency, stock, SKU and rating, plus change since the last run and price-drop and back-in-stock flags. Reads schema.org data, respects robots.txt. $0.002 per product.

- **URL**: https://apify.com/opstoolkit/product-price-monitor.md
- **Developed by:** [Elio Saliba](https://apify.com/opstoolkit) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 products 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

## Product Price Tracker with Price-Drop Alerts, Any Online Store URL

Give it product page links from independent online shops. For each one you get the price, currency, stock status, brand, SKU or GTIN, image and rating, plus what changed since the last run: previous price, percent change, and flags for price drops, price rises and back-in-stock. It is for small sellers watching competitors, dropshippers, buying teams tracking suppliers, deal sites and AI agents that need "what does this page cost today".

**$0.002 per product with a price.** 1,000 products checked every day cost $2 a day. Pages that fail are free.

**Read this first.** The Actor reads the product data that shops publish for Google (schema.org JSON-LD, Microdata, Open Graph). It does not use proxies, does not run a browser and does not try to get past bot protection. So it works on shops that publish that data and let plain requests through, which is most independent shops on Shopify, WooCommerce, Magento, BigCommerce and similar. It does not work on pages that need JavaScript to show the price, or on shops behind a challenge page. Those rows come back free with a `status` that says why. Marketplaces such as Amazon, eBay and Walmart are refused on purpose, see [What it will not read](#what-it-will-not-read).

### What you get

One row per product link. Rows with `status: "ok"` have a price. Every other row is free and says why in `reason`.

| Column | Example | Notes |
|---|---|---|
| `url`, `canonicalUrl` | `https://web-scraping.dev/product/1` | `canonicalUrl` drops tracking parameters and the #fragment. It is the key for price history |
| `name`, `brand`, `sku`, `gtin` | `Box of Chocolate Candy` | Empty when the page does not say |
| `price`, `priceHigh` | `9.99`, `19.99` | `price` is the lowest buyable price. When a product has several variants with different prices, `priceHigh` is the highest and `price` the lowest, or the price of the variant named in the link |
| `currency` | `USD` | From the page. Filled from `currencyHint` only when the page gives a price without a currency |
| `availability` | `in_stock` | `in_stock`, `out_of_stock`, `preorder`, `backorder`, `discontinued` or `unknown` |
| `previousPrice`, `changePercent` | `100`, `-20` | From the last successful run on the same history store. Empty on the first run |
| `priceDrop`, `priceRise` | `true` | A change of at least `dropThresholdPercent` (default 5) |
| `backInStock` | `true` | Was out of stock, preorder, backorder or discontinued last run, is in stock now |
| `alert` | `price_drop` | One value to route on: `price_drop`, `back_in_stock`, `price_rise`, `out_of_stock` or empty |
| `firstSeen`, `lastChecked` | `2026-11-24T10:23:07Z` | |
| `image`, `rating`, `reviewCount` | | From the page's data |
| `source` | `jsonld` | `jsonld`, `microdata`, `og` or `ai` |
| `status`, `reason` | `ok` | See the status list below |
| `charged` | `product-checked` | The event billed for this row. Empty on free rows |

A run also writes a summary to the `OUTPUT` record of its default key-value store: counts of new, changed and unchanged products, the number of drops, rises and back-in-stock events, a list of those alerts, what was charged, and whether the run stopped at your max cost.

#### Statuses

| `status` | Meaning | Charged |
|---|---|---|
| `ok` | Price found | yes |
| `refused_marketplace` | A marketplace or large retailer whose terms restrict automated access | free |
| `robots` | The shop's robots.txt disallows the page, or could not be read | free |
| `blocked` | The shop answered with bot protection, a login wall or a rate limit (HTTP 401, 403, 429, or a challenge page). Nothing is done to get around it | free |
| `needs_browser` | The HTML has no product data because JavaScript builds the page | free |
| `no_price` | The page has product data but no price in it | free |
| `no_product_data` | No schema.org, Microdata or Open Graph price. Not a product page, or the shop publishes no structured data. Try `useAI` | free |
| `not_found` | HTTP 404 or 410 | free |
| `redirected_off_site` | The link redirects to a different website. Add the final link instead | free |
| `private_address`, `invalid_url`, `not_html`, `server_error`, `network_error`, `skipped_max_cost`, `error` | Bad link, a private network address, a file that is not a web page, a shop error, or your max cost per run was reached | free |

### Price history and alerts

Each run reads the history store you name in `historyStore`, compares every product with its last recorded price and stock, then writes the new values back. The store is a named key-value store in your own account, so it survives between runs and you can read it yourself. Records are grouped by a hash of the canonical link, so a run reads and writes at most 256 records. Each product keeps its last price, its stock, when it was first seen, and up to 60 past price changes.

Rules worth knowing:

- Only successful checks update the history. A blocked or failed page leaves it as it was, so the next good run still compares with the last known price.
- The first time a link is seen there is nothing to compare, so the flags stay empty.
- If the currency changes between runs the price is not compared. It becomes the new baseline.
- Use the same `historyStore` name for the same watch list. Two runs of the same store at the same time overwrite each other's records, so schedule them one after another.
- `changedOnly: true` writes only new products, changed products and failed rows to the dataset. You are still charged for every product checked, because every product was fetched and read. It only keeps the dataset short.

For notifications, schedule the Actor and add an Apify webhook or integration on "run succeeded" (Slack, email, Zapier, Make). The summary record lists the alerts, so the message can be built from one small request. The Actor does not send messages itself.

### Pricing

Pay per event. You are charged only when a price was found.

| Event | Price | When |
|---|---|---|
| `product-checked` | **$0.002** | One product link with a price found |
| `ai-price-fallback` | **$0.002** | Extra, only when `useAI` is on and the AI read the price from a page without structured data |

Starting a run has the usual small Apify start charge. Blocked, empty, refused and failed rows are free. The max cost per run you set stops the run cleanly. Links that were not checked get a `skipped_max_cost` row, and the history for products already checked is saved.

The AI model usage for `useAI` is billed separately by Apify, about $0.0005 per page on the cheap default model. Free-plan accounts pay more for model usage, see Apify's pricing. Your max cost per run does not cover the model usage.

### What it will not read

- **Marketplaces and large retail chains whose terms restrict automated access**, for example Amazon, eBay, Walmart, Target, AliExpress, Etsy, Temu, Best Buy and Home Depot. Their links return `refused_marketplace` and nothing is requested. The list is built in and is not complete. For these sites, use their official API or affiliate feed.
- **Pages that robots.txt disallows.** robots.txt is read once per site, including wildcard rules and `Crawl-delay`. Disallowed pages are not requested.
- **Private addresses.** Links that resolve to localhost or a private network are refused.
- **Category pages and search results.** It reads single product pages, one request each. It does not crawl a shop. To get product links from a shop's sitemap, use Sitemap URL Extractor first.
- **Logins and bot protection.** There are no proxies, no browser, no cookies and no fingerprint tricks. The Actor sends a plain, identified user agent (`PriceMonitorBot`). If a shop blocks that, you get `blocked`.

Requests to one site run at most once a second, or slower if its robots.txt asks for a longer `Crawl-delay`. Redirects are followed only inside the same website. You are responsible for checking that the shops you monitor allow it under their own terms.

### AI fallback

Some shops show a price in the page text but publish no structured data. With `useAI: true`, those pages go to an AI model (GPT-4.1 nano through Apify's OpenRouter proxy) that returns the product name, price, currency and stock. The price is accepted only if the same number appears in the page text, so the model cannot invent one. Rows read this way have `source: "ai"` and cost $0.002 more. Pages that need JavaScript are not sent, because their HTML has no text to read. It is off by default.

### Input example

```json
{
  "urls": [
    "https://web-scraping.dev/product/1",
    "https://web-scraping.dev/product/2"
  ],
  "historyStore": "my-competitor-prices",
  "dropThresholdPercent": 5,
  "changedOnly": false,
  "useAI": false
}
```

Instead of `urls` you can give `datasetId` (and `field` if the link column is not called `url`) to read links from another dataset.

### Output example

Second run, after a competitor lowered a price:

```json
{
  "url": "https://yourcompetitor.example/products/blue-mug",
  "canonicalUrl": "https://yourcompetitor.example/products/blue-mug",
  "name": "Blue mug",
  "brand": "Kiln",
  "sku": "MUG-1",
  "gtin": "0123456789012",
  "price": 15.0,
  "priceHigh": null,
  "currency": "USD",
  "availability": "in_stock",
  "previousPrice": 18.5,
  "changePercent": -18.92,
  "priceDrop": true,
  "priceRise": false,
  "backInStock": false,
  "alert": "price_drop",
  "firstSeen": "2026-11-20T08:00:03Z",
  "lastChecked": "2026-11-24T08:00:05Z",
  "image": "https://yourcompetitor.example/cdn/blue-mug.jpg",
  "rating": 4.6,
  "reviewCount": 31,
  "source": "jsonld",
  "status": "ok",
  "reason": null,
  "charged": "product-checked"
}
```

A row for a link that could not be read:

```json
{
  "url": "https://www.amazon.com/dp/B08N5WRWNW",
  "price": null,
  "status": "refused_marketplace",
  "reason": "Amazon is a marketplace or large retailer whose terms of use restrict automated access, so this Actor does not read it. ...",
  "charged": null
}
```

### Use it from an AI agent

In Claude, ChatGPT or Cursor, add the Apify MCP server (https://mcp.apify.com) and ask the agent to run this Actor. It takes product page links and returns price, stock and the change since the last run, so an agent can answer "what does this page cost today" or "did anything drop".

Example prompt: "Use the Apify Actor opstoolkit/product-price-monitor on https://web-scraping.dev/product/1 and https://web-scraping.dev/product/2 and tell me the price and whether each is in stock."

### Limits

- 20,000 links per run (default 500). One shop is read at one page a second, so 500 pages from one shop take about 9 minutes. Raise the run timeout for long lists, or split the list by shop.
- Pages larger than 3 MB are read only up to 3 MB.
- Price history is per link. If a shop changes its product URLs, the new links start a new history.
- Prices are the ones shown to an anonymous visitor in the shop's default region and currency. Shops that show a price only after choosing a variant or a country may return the lowest variant price, or none.
- The Actor reads what the shop publishes. If a shop's structured data is wrong, so is the row. Use Structured Data Checker to see what a page publishes.

### Works well with

- **Sitemap URL Extractor** to get a shop's product links from its sitemap, then feed them in here. https://apify.com/opstoolkit/sitemap-url-extractor
- **Structured Data Checker** when a page returns `no_price`: it shows which schema.org fields the page publishes and which are broken. https://apify.com/opstoolkit/structured-data-checker
- **AI Structured Data Extractor** when you need other fields from the same pages (shipping, size, description) that a price monitor does not return. https://apify.com/opstoolkit/ai-structured-extractor
- **Dataset Cleaner** to merge runs from several stores into one table with consistent columns. https://apify.com/opstoolkit/dataset-cleaner

Typical chain: Sitemap URL Extractor, then Product Price Monitor on a daily schedule with `changedOnly`, then a webhook to Slack or email.

# Actor input Schema

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

Links to single product pages on independent online shops, one per entry. Example: \["https://web-scraping.dev/product/1", "https://yourshop.example/products/blue-mug"]. Category pages, search pages and marketplace links (Amazon, eBay, Walmart and similar) are not read. Links that differ only by tracking parameters or a #fragment count once. Up to 20,000 per run. Required unless you give a dataset ID.

## `datasetId` (type: `string`):

ID of an Apify dataset that holds product links, for example the output of a sitemap extractor, so you do not have to paste them. Example: "aBcDeFgHiJkLmNoPq". The links are added to the ones in 'urls'. Default: empty.

## `field` (type: `string`):

The dataset column that holds the product link. Example: "url". Default: empty, which tries url, productUrl, link and href in that order.

## `historyStore` (type: `string`):

Name of the key-value store that keeps each product's last price and stock between runs. Use the same name on every run of the same watch list, and a different name for a different list. 3 to 63 lower-case letters, digits and hyphens. Default: "product-price-history". The form is prefilled with a demo store so the example does not mix with your real history.

## `dropThresholdPercent` (type: `number`):

A price drop or rise of at least this many percent against the last run sets priceDrop or priceRise and the alert field. Example: 5 means a drop from 100 to 95 or lower. Default 5. Range 0 to 100. Use 0 to flag any change.

## `changedOnly` (type: `boolean`):

true writes only products that are new or whose price or stock changed since the last run, plus rows that failed. Default false (every product gets a row). Products are still checked and charged the same, this only keeps the dataset short for a daily schedule.

## `useAI` (type: `boolean`):

true asks an AI model to read the price from pages that show a price in their text but have no schema.org, microdata or Open Graph data. The price must appear in the page text or it is rejected. Costs an extra $0.002 per page it reads, plus model usage billed by Apify (about $0.0005). Default false.

## `maxUrls` (type: `integer`):

The most product pages to check in one run, from 1 to 20,000. Extra links are not checked. Default 500 (the form is prefilled with 10). Requests to one shop run at one per second, so 500 pages from one shop take about 9 minutes.

## `currencyHint` (type: `string`):

A 3-letter currency code used only when a page shows a price but no currency. Example: "EUR". Default: empty, so the currency stays empty in that case.

## Actor input object example

```json
{
  "urls": [
    "https://web-scraping.dev/product/1",
    "https://web-scraping.dev/product/2"
  ],
  "historyStore": "product-price-history-demo",
  "dropThresholdPercent": 5,
  "changedOnly": false,
  "useAI": false,
  "maxUrls": 10
}
```

# Actor output Schema

## `products` (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 = {
    "urls": [
        "https://web-scraping.dev/product/1",
        "https://web-scraping.dev/product/2"
    ],
    "historyStore": "product-price-history-demo",
    "maxUrls": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("opstoolkit/product-price-monitor").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://web-scraping.dev/product/1",
        "https://web-scraping.dev/product/2",
    ],
    "historyStore": "product-price-history-demo",
    "maxUrls": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("opstoolkit/product-price-monitor").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://web-scraping.dev/product/1",
    "https://web-scraping.dev/product/2"
  ],
  "historyStore": "product-price-history-demo",
  "maxUrls": 10
}' |
apify call opstoolkit/product-price-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,opstoolkit/product-price-monitor"
        }
    }
}
```

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/Ueplc7Z7CEoD3Cveo/builds/o2X1kY9RSGdWrperU/openapi.json
