# Supplier Price Comparison API for SKU CSVs (`merciful_goldenlarch/sku-price-comparison-catalog-matcher`) Actor

Compare a supplier quote CSV against your product catalog by exact MPN, variant, pack size, and condition. See price gaps and flag currency or price-basis mismatches.

- **URL**: https://apify.com/merciful_goldenlarch/sku-price-comparison-catalog-matcher.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 $1.00 / 1,000 report rows

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Compare supplier CSV prices without mixing up pack sizes

Compare a supplier quote with your product catalog by exact manufacturer, part number, variant, pack quantity and condition. You get a price gap where the terms agree, alongside exception rows for the offers that need review.

[Run the prefilled supplier CSV sample](https://apify.com/merciful_goldenlarch/sku-price-comparison-catalog-matcher/examples/compare-supplier-quote-and-catalog-csv-prices)

Sign in to Apify, click Start with the prefilled CSVs and historical evaluation date, then open the Dataset. This fictional sample returns two rows:

| Offer | Recorded result |
| --- | --- |
| USD 10.00 quote against USD 12.50 catalog price | Match with a USD 2.50 gap |
| EUR 9.00 quote for the same item | Exception: currency or price basis mismatch |

The gap is catalog price minus supplier price. It does not include shipping, tax conversion, order quantity or delivery dates, and the Actor does not choose a supplier for you.

### Try the mistakes that a price-only comparison can miss

| Example | What to look for | Run it |
| --- | --- | --- |
| Case-pack mismatch | USD 3.00 gap between two 12-packs, with the 6-pack quote held for review | [Prefilled case-pack check](https://apify.com/merciful_goldenlarch/sku-price-comparison-catalog-matcher/examples/catch-a-supplier-case-pack-mismatch-in-two-csvs) |
| Tax-basis mismatch | USD 2.50 gap between tax-exclusive prices, with a tax-inclusive quote held for review | [Prefilled tax-basis check](https://apify.com/merciful_goldenlarch/sku-price-comparison-catalog-matcher/examples/flag-tax-inclusive-and-tax-exclusive-supplier-prices) |

All three examples use fictional CSV rows and a fixed evaluation date so the same sample observations remain eligible when you run them later.

### Run the SKU comparison by API

Set `APIFY_TOKEN` in your environment using an [Apify API token](https://console.apify.com/settings/integrations), then paste this block into a terminal from any folder. It downloads the request before making one live call with a $0.02 maximum total charge. Apify may charge your account.

```sh
curl --fail --silent --show-error https://toolshed-guides.vercel.app/examples/sku/input.json -o toolshed-sku-input.json &&
curl --fail-with-body --silent --show-error --max-time 110 \
  'https://api.apify.com/v2/actors/J7Rh4G3MAG4MeFaaW/run-sync-get-dataset-items?maxTotalChargeUsd=0.02&timeout=90&format=json' \
  -H "Authorization: Bearer $APIFY_TOKEN" -H 'Content-Type: application/json' \
  --data-binary @toolshed-sku-input.json
```

[Download the request](https://toolshed-guides.vercel.app/examples/sku/input.json), [inspect the recorded result](https://toolshed-guides.vercel.app/examples/sku/expected.json), or [check current pricing](https://apify.com/merciful_goldenlarch/sku-price-comparison-catalog-matcher/pricing). Charges include report rows, including review exceptions, plus a small start event and platform usage. A request timeout may leave a run active, so check [Apify Runs](https://console.apify.com/actors/runs) before retrying.

For Python, [download the source ZIP](https://toolshed-guides.vercel.app/source.zip), unzip it, and run `python3 run_demo.py sku --live`. The other cases are `sku-pack` and `sku-tax`. Python 3.8+ is enough, with no packages to install. Leaving off `--live` shows a recorded preview without a network request.

### Use your own catalog and supplier observations

Paste each complete CSV, including its headers, into the [Actor input](https://apify.com/merciful_goldenlarch/sku-price-comparison-catalog-matcher/input), or send the two CSV strings as `catalogCsv` and `observationsCsv`. If your exports have different columns, use the formatting prompts below first.

For current prices, clear **Historical evaluation time** and set **Maximum observation age** to your freshness requirement; the default is 24 hours. For a past comparison, provide the actual evaluation time. Each CSV supports up to 1,000 data rows and 256 KiB.

Supplier rows need a public HTTPS evidence URL, a timezone-qualified observation timestamp, and confirmed `in_stock` availability. The Actor compares the values you submit and records their source URLs; it does not fetch fresh prices or accept a private quote as a substitute for the required public evidence link. Keep confidential quotes out of this public workflow, and do not invent a URL to make a row pass.

Open **Exact matches CSV** for comparable price gaps and **Exceptions CSV** for rows to resolve. Both are also in the run's key-value store, along with the summary and comparison JSON. Before a recurring catalog update, compare the new observations against the current catalog and review exceptions before changing prices; the Actor does not write back to your catalog.

For coding agents, use stable Actor ID `J7Rh4G3MAG4MeFaaW` and read the [current OpenAPI schema](https://api.apify.com/v2/actors/J7Rh4G3MAG4MeFaaW/builds/default/openapi.json). The complete sample input and output are linked above.

### Format existing exports

The [supplier CSV guide](https://toolshed-guides.vercel.app/sku/#format-your-own-csvs) includes two copyable prompts that turn your exports into the required CSVs, keep missing data in a review file, and account for all source rows. Use only files you are authorized to share with the chat service.

Maintained by Toolshed. [Guide](https://toolshed-guides.vercel.app/sku/) · [Support](mailto:toolshedsupport@gmail.com).

### 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.

Named comparison reports are published after complete Dataset delivery is verified. An insufficient-budget or incomplete-delivery run does not publish a new complete-looking report; start a new run or resolve the delivery issue before using results.

# Actor input Schema

## `catalogCsv` (type: `string`):

Paste CSV with manufacturer, mpn, variant, pack_quantity, condition, price, currency, and price_basis. Optional catalog_sku appears in the report.

## `observationsCsv` (type: `string`):

Paste CSV with the same required catalog fields plus source_url, observed_at, and availability. Use an ISO 8601 timestamp with a timezone and in_stock for an eligible observation.

## `maxAgeHours` (type: `integer`):

Exclude older supplier observations.

## `observedAsOf` (type: `string`):

The historical example fills this in. Clear it when comparing current observations. To replay a past comparison, use an ISO 8601 time with timezone.

## Actor input object example

```json
{
  "catalogCsv": "catalog_sku,manufacturer,mpn,variant,pack_quantity,condition,price,currency,price_basis\nADAFRUIT-6538,Adafruit,6538,RV-8803 breakout board,1,new,10.95,USD,single item listed price\n",
  "observationsCsv": "manufacturer,mpn,variant,pack_quantity,condition,price,currency,price_basis,source_url,observed_at,availability\nAdafruit,6538,RV-8803 breakout board,1,new,10.95,USD,single item listed price,https://www.adafruit.com/product/6538,2026-10-27T18:42:40.786926+00:00,in_stock\n",
  "maxAgeHours": 24,
  "observedAsOf": "2026-10-27T18:43:31Z"
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `matches` (type: `string`):

No description

## `exceptions` (type: `string`):

No description

## `json` (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 = {
    "catalogCsv": `catalog_sku,manufacturer,mpn,variant,pack_quantity,condition,price,currency,price_basis
ADAFRUIT-6538,Adafruit,6538,RV-8803 breakout board,1,new,10.95,USD,single item listed price`,
    "observationsCsv": `manufacturer,mpn,variant,pack_quantity,condition,price,currency,price_basis,source_url,observed_at,availability
Adafruit,6538,RV-8803 breakout board,1,new,10.95,USD,single item listed price,https://www.adafruit.com/product/6538,2026-10-27T18:42:40.786926+00:00,in_stock`,
    "maxAgeHours": 24,
    "observedAsOf": "2026-10-27T18:43:31Z"
};

// Run the Actor and wait for it to finish
const run = await client.actor("merciful_goldenlarch/sku-price-comparison-catalog-matcher").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 = {
    "catalogCsv": """catalog_sku,manufacturer,mpn,variant,pack_quantity,condition,price,currency,price_basis
ADAFRUIT-6538,Adafruit,6538,RV-8803 breakout board,1,new,10.95,USD,single item listed price
""",
    "observationsCsv": """manufacturer,mpn,variant,pack_quantity,condition,price,currency,price_basis,source_url,observed_at,availability
Adafruit,6538,RV-8803 breakout board,1,new,10.95,USD,single item listed price,https://www.adafruit.com/product/6538,2026-10-27T18:42:40.786926+00:00,in_stock
""",
    "maxAgeHours": 24,
    "observedAsOf": "2026-10-27T18:43:31Z",
}

# Run the Actor and wait for it to finish
run = client.actor("merciful_goldenlarch/sku-price-comparison-catalog-matcher").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 '{
  "catalogCsv": "catalog_sku,manufacturer,mpn,variant,pack_quantity,condition,price,currency,price_basis\\nADAFRUIT-6538,Adafruit,6538,RV-8803 breakout board,1,new,10.95,USD,single item listed price\\n",
  "observationsCsv": "manufacturer,mpn,variant,pack_quantity,condition,price,currency,price_basis,source_url,observed_at,availability\\nAdafruit,6538,RV-8803 breakout board,1,new,10.95,USD,single item listed price,https://www.adafruit.com/product/6538,2026-10-27T18:42:40.786926+00:00,in_stock\\n",
  "maxAgeHours": 24,
  "observedAsOf": "2026-10-27T18:43:31Z"
}' |
apify call merciful_goldenlarch/sku-price-comparison-catalog-matcher --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,merciful_goldenlarch/sku-price-comparison-catalog-matcher"
        }
    }
}
```

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/J7Rh4G3MAG4MeFaaW/builds/ypnPKN8AH7hOtaBxw/openapi.json
