# Compare two product catalog snapshots by SKU

**Use case:** 

Compare two fictional catalogs by SKU: one added, one removed, one changed item. USD0.05 per completed comparison, even with no changes. Max run charge USD0.05; timeout 60s. Dataset shows summary counts; full field-level changes are in run storage OUTPUT. Copy into your own account and review live pricing before starting. Use only authorized catalog data.

## Input

```json
{
  "before": [
    {
      "sku": "00123",
      "price": 19.9
    },
    {
      "sku": "00124",
      "price": 24
    }
  ],
  "after": [
    {
      "sku": "00123",
      "price": 21
    },
    {
      "sku": "00125",
      "price": 15
    }
  ],
  "key": "sku",
  "before_complete": true,
  "after_complete": true,
  "allow_empty_after": false
}
```

## Output

```json
{
  "recordType": {
    "label": "Record",
    "format": "text"
  },
  "status": {
    "label": "Status",
    "format": "text"
  },
  "added": {
    "label": "Added",
    "format": "number"
  },
  "removed": {
    "label": "Removed",
    "format": "number"
  },
  "changed": {
    "label": "Changed",
    "format": "number"
  },
  "rowsBefore": {
    "label": "Rows before",
    "format": "number"
  },
  "rowsAfter": {
    "label": "Rows after",
    "format": "number"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Product Catalog Diff by SKU | Revenue Pilot Actor is ready to run with the inputs already set for "Compare two product catalog snapshots by SKU". [Sign up or log in](https://console.apify.com/create-task-from-example/UbIn0wcLpPieRtAIb) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Compare two product catalog snapshots by SKU" task

The Product Catalog Diff by SKU | Revenue Pilot Actor will start running based on the input automatically. You can also change all the input fields, like earlier snapshot, later snapshot, and more, to match your specific use case.

### 3. Receive the "Compare two product catalog snapshots by SKU" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as record, status, added, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Compare two product catalog snapshots by SKU" task via API](https://apify.com/logical_resourcefulnes/revenue-pilot.md).

## FAQ

### What does this task cost?

One completed comparison costs USD 0.05, including comparisons with no changes. The example keeps a USD 0.05 run limit. Apify platform storage and later exports can have separate usage costs.

### Where do I get the field-level changes?

The dataset contains one summary row. Open the run's default key-value store and read OUTPUT for the complete added, removed and changed records as JSON.

### Do I need approval before running?

No individual approval is required. Copy this task, review the input and pricing, and start. The operator can pause processing; requests sent before a pause cannot always be cancelled.

## About this Actor

This example demonstrates how to use [Product Catalog Diff by SKU | Revenue Pilot](https://apify.com/logical_resourcefulnes/revenue-pilot.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/logical_resourcefulnes/revenue-pilot.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/logical_resourcefulnes/revenue-pilot.md

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`).
