# Product Price and Stock Change Check (`merciful_goldenlarch/supplier-price-stock-diff`) Actor

Check approved product URLs for declared price and availability. Reuse the first run’s baseline to see price changes, restocks and stock loss.

- **URL**: https://apify.com/merciful_goldenlarch/supplier-price-stock-diff.md
- **Developed by:** [Toolshed](https://apify.com/merciful_goldenlarch) (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 $2.00 / 1,000 product checks

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 Price and Stock Change Check

Click Start with no links to try two pages from Books to Scrape. The demo uses real public page responses from a practice store with demonstration prices. To try one practice page in the URL field, use [A Light in the Attic](https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html) and confirm permission.

For your own check, add up to eight approved HTTPS product links and confirm you have permission to retrieve them. Use each page's final URL and choose pages that declare one offer in Product structured data. Pages that block the request, need JavaScript, present more than one offer, or contain oversized offer fields get a check status for review.

The first run records the declared price and availability. Copy its Baseline for next run JSON into the next run with the same links to see price changes, restocks, or stock loss. Failed checks keep the last usable record. The result applies to the supported declared offer and does not include checkout discounts, delivery, tax, or independently verified inventory.

[Practice source](https://toscrape.com/)
Currency codes must appear in the bundled dated ISO 4217 monetary reference. Unsupported codes cannot create a usable baseline. Baseline timestamps use a calendar date, `T`, seconds, optional fractional seconds up to six digits, and `Z` or an offset such as `+01:00`; copy the generated BASELINE rather than rewriting its timestamps.

### Read the findings

The default result view shows a readable finding, the affected item, what the evidence means and what to do next. Switch to **Evidence and source fields** for the underlying records. Download **REVIEW.csv** to work in a spreadsheet, or **REVIEW.html** for a plain report. Suggested actions are checks for you to perform; the Actor has not executed them. Existing API evidence fields are retained alongside the reading layer.

If the run budget cannot deliver every result row, the run fails rather than silently returning a complete-looking partial dataset. Check **Dataset delivery status** in Output, reduce the input or increase the run budget, and start a new run. A successful dataset-delivery check confirms storage, not source accuracy or full workflow compatibility.

# Actor input Schema

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

Enter up to eight authorized HTTPS product pages. Leave empty for the live Books to Scrape demo.

## `permissionConfirmed` (type: `boolean`):

Required for your own links. The public demonstration can run without it.

## `previousBaseline` (type: `object`):

Optional. Paste BASELINE JSON from a prior run with the same product URLs.

## Actor input object example

```json
{
  "productUrls": [],
  "permissionConfirmed": false
}
```

# Actor output Schema

## `checks` (type: `string`):

No description

## `baseline` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `reviewCsv` (type: `string`):

No description

## `reviewHtml` (type: `string`):

No description

## `deliveryStatus` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("merciful_goldenlarch/supplier-price-stock-diff").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("merciful_goldenlarch/supplier-price-stock-diff").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 '{}' |
apify call merciful_goldenlarch/supplier-price-stock-diff --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,merciful_goldenlarch/supplier-price-stock-diff"
        }
    }
}
```

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/mckpSInhbyoJ2yslJ/builds/88lFA5YlM7MxLIyrv/openapi.json
