# Price & Stock Monitor — Price Drop & Restock Alerts, Any Store (`xtracto/price-stock-monitor`) Actor

Watch product pages on Shopify stores, Amazon, Newegg, IKEA, Nike and most online shops. Each scheduled run reports price drops, price rises, back-in-stock and sold-out changes since the last run, per variant.

- **URL**: https://apify.com/xtracto/price-stock-monitor.md
- **Developed by:** [Farhan Febrian Nauval](https://apify.com/xtracto) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.33 / 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

## Price & Stock Monitor — Price Drop and Restock Alerts for Any Store

Watch product pages from Shopify stores, Amazon, Newegg, IKEA, Nike and most online shops. Schedule it and every run tells you what changed since the last one: price drops, price rises, back in stock, sold out, per size and colour where the store publishes them.

### Why use this actor

- **Change alerts, not just prices**: every row says what happened since the previous run (`price_drop`, `price_increase`, `back_in_stock`, `out_of_stock`, variant restocks and sell-outs), with the old and new values.
- **Works across stores**: Shopify stores (every variant with its own price and stock), Amazon, Newegg, and any shop that publishes standard product data: IKEA, Nike, B\&H and most WooCommerce and Magento shops.
- **Per-variant tracking**: know the moment size 9 comes back, not just that "the product" is in stock.
- **Pay for what matters**: turn on *Only report changes* and a scheduled run that finds nothing new outputs nothing.
- **No false alarms by design**: the first run is a quiet baseline; a page that fails to load keeps its last good snapshot instead of triggering a fake change; prices in different currencies are never compared.
- No account, no login, no API key.

### How it works

1. Add the product URLs you care about and schedule the actor (hourly or daily is typical).
2. Each run reads the current price, currency and stock of every product and variant.
3. It compares them with what it saw on the previous run, then saves the new state.
4. You get one row per product with the events that happened. Connect a webhook or integration to get alerted.

You don't manage scrapers, browsers or a database; the history is kept for you between runs.

### Input

```json
{
  "productUrls": [
    { "url": "https://www.allbirds.com/products/mens-tree-runners" },
    { "url": "https://www.ikea.com/us/en/p/billy-bookcase-white-00263850/" },
    { "url": "https://www.nike.com/t/air-force-1-07-mens-shoes-jBrhbr/CW2288-111" }
  ],
  "onlyReportChanges": false,
  "minPriceDropPercent": 0,
  "includeVariants": true,
  "maxConcurrency": 4,
  "timeoutSecs": 45
}
```

| Field | Type | Description |
|---|---|---|
| `productUrls` | array | Product pages to watch, from any supported store |
| `onlyReportChanges` | boolean | Output only products with an event (plus first-run baselines). Recommended for schedules |
| `minPriceDropPercent` | integer | Ignore drops smaller than this percentage. `0` = report every drop |
| `includeVariants` | boolean | Include every variant with its own price and stock |
| `maxConcurrency` | integer | Products checked in parallel (1–10) |
| `timeoutSecs` | integer | How long to keep trying one product before skipping it for this run |
| `proxyConfiguration` | object | Optional residential proxy support. For Amazon, use the store's country (US for amazon.com) and keep it the same between runs: Amazon shows prices in the visitor's local currency |

### Output

Example change row. The previous snapshot was edited to $115 to demonstrate a drop; every other value is live output from allbirds.com (variants shortened):

```json
{
  "_source": "S1-shopify",
  "_scrapedAt": "2026-10-22T09:28:50Z",
  "url": "https://www.allbirds.com/products/mens-tree-runners",
  "title": "Men's Tree Runner - Jet Black (White Sole)",
  "currency": "USD",
  "price": 100.0,
  "priceMax": 100.0,
  "availability": "in_stock",
  "firstRun": false,
  "events": ["price_drop", "variant_back_in_stock"],
  "changed": true,
  "previousPrice": 115.0,
  "priceChange": -15.0,
  "priceChangePercent": -13.04,
  "previousAvailability": "in_stock",
  "previousCheckedAt": "2026-10-22T09:27:47Z",
  "variantsRestocked": ["8"],
  "variantsSoldOut": [],
  "variantPriceChanges": [{ "variant": "8", "from": 115.0, "to": 100.0 }],
  "variantCount": 7,
  "variants": [
    { "id": "33179624669264", "name": "8", "price": 100.0, "currency": "USD", "availability": "in_stock" },
    { "id": "33179624702032", "name": "9", "price": 100.0, "currency": "USD", "availability": "out_of_stock" },
    "… 5 more"
  ]
}
```

| Field | Type | Description |
|---|---|---|
| `events` | array | What happened since the last run: `price_drop`, `price_increase`, `back_in_stock`, `out_of_stock`, `variant_back_in_stock`, `variant_sold_out`, `variant_price_changed`, `currency_changed`. Empty = unchanged |
| `changed` / `firstRun` | boolean | Any event happened / this run stored the first baseline |
| `price`, `priceMax`, `currency` | number, number, string | Lowest and highest current price across variants |
| `previousPrice`, `priceChange`, `priceChangePercent` | number | Compared with the previous run, same currency only |
| `availability`, `previousAvailability` | string | `in_stock`, `out_of_stock`, `preorder`, `backorder` or `unknown` (the store does not publish stock) |
| `variantsRestocked`, `variantsSoldOut`, `variantPriceChanges` | array | Variant-level changes |
| `variants` | array | Every variant with id, name, price, currency and stock (when `includeVariants` is on) |
| `availabilityText` | string | Amazon's own stock wording, e.g. "Currently unavailable" |
| `_source` | string | Where the data came from: `S1-shopify`, `S2-amazon`, `S3-structured`, `S4-microdata`, `S5-meta`, `S6-newegg` |

### Notes and limits

- **First run = baseline.** Events start from the second run, so schedule the actor right after creating it.
- **Unreadable products are skipped, not reported as changes.** They are listed in the run's status message and in the `FAILURES` record of the run's key-value store, and their last good snapshot is kept. A run where no product could be read is marked failed.
- Stores whose prices only appear after scripts run in the browser (e.g. Uniqlo) and stores that refuse automated visitors (e.g. Walmart, Home Depot) cannot be read. They are reported as unreadable, never guessed.
- Some stores publish price but not stock (IKEA, Nike): `availability` is then `unknown`, and no stock alerts are raised for them.
- History is shared by URL across all runs of this actor in your account. The same URL in two tasks shares one history.

### Related actors

| Actor | Use it for |
|---|---|
| Shopify Trend Tracker | Best sellers, new arrivals and on-sale items across a whole Shopify store |
| Amazon Products Scraper | Full Amazon product details |
| Website Change Monitor | Any page's text changes |
| Review Velocity Monitor | New reviews and rating trends per product |

# Actor input Schema

## `productUrls` (type: `array`):

Product pages to watch, from any store. Works best with Shopify stores, Amazon, Newegg and any shop that publishes standard product data (IKEA, Nike, B\&H and most WooCommerce/Magento shops). Each run compares every product with the previous run.

## `onlyReportChanges` (type: `boolean`):

Output only products that changed since the last run (plus first-run baselines). Recommended for scheduled runs: you pay only for what you are told about.

## `minPriceDropPercent` (type: `integer`):

Only call it a price_drop when the price fell by at least this percentage. 0 reports every drop. The new price is still stored either way.

## `includeVariants` (type: `boolean`):

List every size/colour variant with its own price and stock where the store publishes them.

## `maxConcurrency` (type: `integer`):

Products checked in parallel.

## `timeoutSecs` (type: `integer`):

How long to keep trying one product page before reporting it unreadable for this run. Its last good snapshot is kept.

## `proxyConfiguration` (type: `object`):

Optional. Amazon shows prices in the currency of the visitor's country, so for Amazon use RESIDENTIAL with the store's country (e.g. US for amazon.com). Keep the same country between runs.

## Actor input object example

```json
{
  "productUrls": [
    {
      "url": "https://www.allbirds.com/products/mens-tree-runners"
    },
    {
      "url": "https://www.ikea.com/us/en/p/billy-bookcase-white-00263850/"
    },
    {
      "url": "https://www.nike.com/t/air-force-1-07-mens-shoes-jBrhbr/CW2288-111"
    }
  ],
  "onlyReportChanges": false,
  "minPriceDropPercent": 0,
  "includeVariants": true,
  "maxConcurrency": 4,
  "timeoutSecs": 45,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

One row per product checked (or per changed product with onlyReportChanges), stored in the run's default dataset.

# 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 = {
    "productUrls": [
        {
            "url": "https://www.allbirds.com/products/mens-tree-runners"
        },
        {
            "url": "https://www.ikea.com/us/en/p/billy-bookcase-white-00263850/"
        },
        {
            "url": "https://www.nike.com/t/air-force-1-07-mens-shoes-jBrhbr/CW2288-111"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/price-stock-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 = {
    "productUrls": [
        { "url": "https://www.allbirds.com/products/mens-tree-runners" },
        { "url": "https://www.ikea.com/us/en/p/billy-bookcase-white-00263850/" },
        { "url": "https://www.nike.com/t/air-force-1-07-mens-shoes-jBrhbr/CW2288-111" },
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("xtracto/price-stock-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 '{
  "productUrls": [
    {
      "url": "https://www.allbirds.com/products/mens-tree-runners"
    },
    {
      "url": "https://www.ikea.com/us/en/p/billy-bookcase-white-00263850/"
    },
    {
      "url": "https://www.nike.com/t/air-force-1-07-mens-shoes-jBrhbr/CW2288-111"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call xtracto/price-stock-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xtracto/price-stock-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/NsDNuxTihcR7xs7hu/builds/bbbFc3GFkRbtt5nNy/openapi.json
