# Product Feed Price & Stock Delta Monitor (`collinjreynolds/product-feed-price-stock-delta-monitor`) Actor

Monitors user-supplied public product feeds (Google Merchant CSV/TSV/JSON) for price and availability changes. Silent first-run baseline; PPE events: product-delta and optional price-drop.

- **URL**: https://apify.com/collinjreynolds/product-feed-price-stock-delta-monitor.md
- **Developed by:** [Collin Reynolds](https://apify.com/collinjreynolds) (community)
- **Categories:** Developer tools, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 product price / stock deltas

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

## Product Feed Price & Stock Delta Monitor

Watch **user-supplied public product feeds** (Google Merchant **CSV / TSV / JSON**) for **price and availability changes**. Only **deltas** since the last run are written to the dataset — ideal for affiliate ops, merchant CI, and scheduled commerce agents.

**Status:** **LIVE** on Apify Store — https://apify.com/collinjreynolds/product-feed-price-stock-delta-monitor

**Pricing (pay per event — suggested Console values, comps-anchored):**

| Event | Price | Comp anchors (verified 2026-09-14) |
|-------|-------|-------------------------------------|
| `product-delta` (primary) | **`$0.002`** per changed product | stellar\_ballet delta **$0.002**; fourwake Shopify change **$0.001** |
| `price-drop` (optional flag) | **`$0.005`** when price decreases | stellar\_ballet price-drop alert **$0.005** |
| Actor start | platform small event (~`$0.00005`) | — |

Change-only charging (no expensive per-check if avoidable). First run baselines quietly (**0** dataset items / **0** delta charges).

### Why use this (vs comps)

- **Simpler Merchant UX** — clear Google Merchant CSV/TSV/JSON column aliases (`id`/`sku`, `title`, `price`, `availability`)
- **Silent first-run baseline** — empty `LAST_SEEN` → seed only
- **Change-only PPE** — undercut / match stellar at `$0.001`–`$0.002` for `product-delta`
- **Optional price-drop event** — document + flag (`enablePriceDropEvent`); not mandatory complexity
- **Feed-first ToS** — public URLs / local fixtures only; **no** HTML storefront scrape in v0
- Honest comps: [stellar\_ballet\_0bu/product-feed-delta-monitor](https://apify.com/stellar_ballet_0bu/product-feed-delta-monitor)

### Input

| Field | Required | Description |
|-------|----------|-------------|
| `feeds` | yes | List of `{url, label?, format?}` or URL strings. `url` may be `https://…` or a **local fixture path** |
| `includeTitleInFingerprint` | no | Also treat title changes as deltas (default false) |
| `enablePriceDropEvent` | no | Also charge `price-drop` when numeric price decreases (default false) |
| `resetState` | no | Clear `LAST_SEEN` and re-baseline (0 emits that run) |

#### Example

```json
{
  "feeds": [
    {
      "url": "https://api.apify.com/v2/key-value-stores/mMgO4ptHbjmpSq1bg/records/google_merchant_sample.csv",
      "label": "demo-merchant-csv",
      "format": "csv"
    },
    {
      "url": "https://fakestoreapi.com/products",
      "label": "fakestore-demo-json",
      "format": "json"
    }
  ],
  "includeTitleInFingerprint": false,
  "enablePriceDropEvent": false,
  "resetState": false
}
```

Offline fixture example:

```json
{
  "feeds": [
    {
      "url": "./fixtures/products_baseline.csv",
      "label": "fixture-merchant",
      "format": "csv"
    }
  ]
}
```

### Output

Each dataset item is a **changed** product (never the full catalog after baseline), for example:

- `feed_key`, `product_id`, `product_title`, `price`, `price_value`, `previous_price`, `availability`, `previous_availability`, `change_types`, `is_price_drop`, `fingerprint`, `link`

`change_types` is a subset of: `new`, `price`, `availability`, `title`, `price_drop`.

### First-run behavior

| Situation | Dataset items | `product-delta` charges |
|-----------|---------------|-------------------------|
| Empty `LAST_SEEN` | **0** | **0** (baseline only) |
| Later run, unchanged catalog | **0** | **0** |
| Later run, price/stock/(optional title) change or new SKU | 1 per changed product | 1 per item |
| Price decrease + `enablePriceDropEvent` | same item | +1 `price-drop` |

### Local development

```bash
cd /workspace/revenue-ops/apify-actors/product-feed-price-stock-delta-monitor
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt pytest
pytest -q
python scripts/run_offline_demo.py
```

### ToS / scope

User-supplied **public** feeds only. Feed-first (no HTML scrape of storefronts in v0). No inventing prices. No LinkedIn/Meta/X. See [AGREEMENT.md](./AGREEMENT.md).

### Store

- **Store:** https://apify.com/collinjreynolds/product-feed-price-stock-delta-monitor
- **Console:** https://console.apify.com/actors/ (see LEDGER for Actor ID)
- Published under Collin standing Apify PPE auth (B). Pure PPE + LIMITED\_PERMISSIONS.

# Actor input Schema

## `feeds` (type: `array`):

User-supplied public product feed URL(s) or local fixture paths. Google Merchant CSV/TSV/JSON shapes (id/sku, title, price, availability).

## `includeTitleInFingerprint` (type: `boolean`):

If true, title changes also count as deltas (in addition to price + availability).

## `enablePriceDropEvent` (type: `boolean`):

If true, also charge named event price-drop (~$0.005) when a product's numeric price decreases (in addition to product-delta).

## `resetState` (type: `boolean`):

If true, ignore and clear the stored LAST\_SEEN fingerprint map before this run (re-baseline; 0 emits).

## Actor input object example

```json
{
  "feeds": [
    {
      "url": "https://api.apify.com/v2/key-value-stores/mMgO4ptHbjmpSq1bg/records/google_merchant_sample.csv",
      "label": "demo-merchant-csv",
      "format": "csv"
    },
    {
      "url": "https://fakestoreapi.com/products",
      "label": "fakestore-demo-json",
      "format": "json"
    }
  ],
  "includeTitleInFingerprint": false,
  "enablePriceDropEvent": false,
  "resetState": false
}
```

# Actor output Schema

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

Dataset items for changed products (product\_id, price, availability, change\_types, etc.). First run baselines with 0 items.

# 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 = {
    "feeds": [
        {
            "url": "https://api.apify.com/v2/key-value-stores/mMgO4ptHbjmpSq1bg/records/google_merchant_sample.csv",
            "label": "demo-merchant-csv",
            "format": "csv"
        },
        {
            "url": "https://fakestoreapi.com/products",
            "label": "fakestore-demo-json",
            "format": "json"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("collinjreynolds/product-feed-price-stock-delta-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 = { "feeds": [
        {
            "url": "https://api.apify.com/v2/key-value-stores/mMgO4ptHbjmpSq1bg/records/google_merchant_sample.csv",
            "label": "demo-merchant-csv",
            "format": "csv",
        },
        {
            "url": "https://fakestoreapi.com/products",
            "label": "fakestore-demo-json",
            "format": "json",
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("collinjreynolds/product-feed-price-stock-delta-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 '{
  "feeds": [
    {
      "url": "https://api.apify.com/v2/key-value-stores/mMgO4ptHbjmpSq1bg/records/google_merchant_sample.csv",
      "label": "demo-merchant-csv",
      "format": "csv"
    },
    {
      "url": "https://fakestoreapi.com/products",
      "label": "fakestore-demo-json",
      "format": "json"
    }
  ]
}' |
apify call collinjreynolds/product-feed-price-stock-delta-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,collinjreynolds/product-feed-price-stock-delta-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/FWY4nv456YSmRhszB/builds/zPCtfg5Wmmbe4pYgd/openapi.json
