# DigiCrem B2B Catalog Delta Intelligence (`digicrem/digicrem-catalog-delta-intelligence`) Actor

Compare customer-supplied product JSON snapshots to detect new products, price, stock-status and specification changes. No Shopify account required; authorized Shopify inputs optional.

- **URL**: https://apify.com/digicrem/digicrem-catalog-delta-intelligence.md
- **Developed by:** [Rajesh Joshi](https://apify.com/digicrem) (community)
- **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 verified product changes

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

## DigiCrem B2B Catalog Delta Intelligence

**Track changes in product catalogs using JSON data you already own or are authorized to use. No Shopify account or website is required.**

### What it does

Send the same catalog's complete product snapshot on two separate runs. The first run safely creates a baseline. The next complete run identifies new products, price changes, availability changes and supported specification changes. A product is only confirmed removed after **two** complete scans in which it is absent. Partial feeds do not overwrite the last good baseline. Outputs are JSON/CSV change rows and a `RUN_SUMMARY` record. On baseline or unchanged scans, the dataset also contains one `recordType=run-summary` informational row (with `changeType=null`), not a detected product change. The RapidAPI GET endpoint excludes this informational row from its `changes` array.

This is a **customer-supplied snapshot comparator**, not an open-web crawler, bulk scraping service, scheduled feed fetcher, guaranteed inventory API or source of other merchants' catalogs. The data owner (or its software/agent) must send each new complete snapshot.

### Start without Shopify (recommended)

In the Actor Input form select **Catalog input method: snapshot**. Replace the demonstration catalogId and two demo records with your own. Provide a stable `catalogId` on every run and declare `catalogComplete=true` only for a complete upload. Select `previewOnly=true` if you want to test without custom scan/change-event billing (Apify runtime costs may still apply); otherwise use normal paid mode.

First input example:

```json
{
  "sourceType": "snapshot",
  "catalogId": "your-catalog-01",
  "catalogComplete": true,
  "previewOnly": false,
  "catalogProducts": [
    {"id": "SKU-001", "title": "Cotton Shirt", "price": "499.00", "available": true, "sku": "SKU-001"},
    {"id": "SKU-002", "title": "Canvas Bag", "price": "699.00", "available": true, "sku": "SKU-002"}
  ]
}
```

Run again with the **same** `catalogId` and product IDs, but `SKU-001` price `549.00` and `available=false`. The second complete run returns `PRICE_CHANGED` and `STOCK_CHANGED` (and other supported deltas). Never change stable IDs merely because prices or titles change.

Limits: up to **500 product records** and **150 KB JSON product array** per run. Product ID and catalogId are scope identifiers, not contact data. Do not upload sensitive customer details. The engine neither guesses a currency nor verifies a supplier's stock quantity.

### Billing

Apify's Pay-Per-Event prices are configured in the Actor's **Monetization** panel. At publication the configured events were **Actor start $0.00005, successful catalog scan $0.01, verified product change $0.001**; check the current Apify pricing display before use. A first complete baseline is a paid scan but does not create false new-product events. Incomplete scans do not incur custom scan/change events. `previewOnly=true` disables these custom events, but Apify platform runtime costs may remain.

The Actor's public run route and the separate DigiCrem RapidAPI gateway are **separate billing channels**. RapidAPI requests use `previewOnly=true` downstream, to avoid charging both a RapidAPI subscriber and Apify PPE events for the same gateway operation. RapidAPI subscription charges, if any, are handled by RapidAPI.

### Optional Shopify input

For an authorized Shopify public product feed, select `sourceType=shopify` and provide exactly one HTTPS root in `storeUrls`. The owner must have consented and the domain must be explicitly allowlisted in the Actor's operator configuration. **No Shopify site is required for the direct JSON mode.** Unknown domains and private/internal network destinations are not accepted.

### Output and reliability

- `RUN_SUMMARY.status`: `BASELINE_INDEXED`, `DELTA`, `INCOMPLETE` or a reconciliation/error status.
- Dataset rows: supported NEW, PRICE_CHANGED, STOCK_CHANGED, SPEC_UPDATED and confirmed REMOVED changes.
- `snapshotPersisted=true` indicates last-good state was saved after successful processing.
- Use distinct catalog identifiers for separate tenants or feeds and do not start overlapping runs on the same catalog; the underlying key-value store has no atomic cross-run compare-and-swap.
- Only use data that belongs to you or that you have permission to process.

### Development and verification

Run `py -3 -m pytest -q tests` and `apify validate-schema`. Product code is under `catalog_delta/`. Private test fixtures used during development are **disabled in public builds**. Build 0.1.3 preview was cloud-tested using two direct snapshots and found two actual changes. Public paid event and external subscriber receipts must be checked separately.

DigiCrem — production-oriented product data comparison, no login to Shopify required for JSON submissions.

# Actor input Schema

## `storeUrls` (type: `array`):

Only for explicitly authorized Shopify input. Leave omitted for direct JSON snapshot input.

## `sourceType` (type: `string`):

snapshot = compare data you supply; no Shopify website needed. Shopify is only for an explicitly authorized catalog.

## `maxProductsPerStore` (type: `integer`):

Capped scans are incomplete and never used to confirm removals.

## `confirmRemovalsAfterMisses` (type: `integer`):

Product removal is confirmed only after repeated full successful same-scope scans.

## `scope` (type: `string`):

Reserved for a verified stable collection scope; empty means full catalog.

## `region` (type: `string`):

Optional explicit market or region. Different regions never share a baseline.

## `currency` (type: `string`):

Optional currency confirmed by the storefront owner. Never inferred.

## `stateKeyPrefix` (type: `string`):

Optional private namespace for separate watchlists.

## `previewOnly` (type: `boolean`):

False: paid Apify scan/change events per published price. True: preview without custom scan/change events (Apify platform costs may remain).

## `catalogId` (type: `string`):

Required for snapshot input. Stable identifier of the customer's own catalog across calls (3-64 ASCII letters/numbers/.\_-).

## `catalogProducts` (type: `array`):

Required for snapshot input. List of 1-500 objects with stable id, title, price, available, sku, vendor. Send the full same-scope list on each run. No external fetch.

## `catalogComplete` (type: `boolean`):

Required for snapshot input. True only if this is a complete, same-scope catalog; false preserves existing baseline and never claims removals.

## Actor input object example

```json
{
  "sourceType": "snapshot",
  "maxProductsPerStore": 250,
  "confirmRemovalsAfterMisses": 2,
  "scope": "",
  "region": "",
  "currency": "",
  "stateKeyPrefix": "default",
  "previewOnly": false,
  "catalogId": "demo-catalog-001",
  "catalogProducts": [
    {
      "id": "SKU-001",
      "title": "Example Cotton Shirt",
      "price": "499.00",
      "available": true,
      "sku": "SKU-001"
    },
    {
      "id": "SKU-002",
      "title": "Example Canvas Bag",
      "price": "699.00",
      "available": true,
      "sku": "SKU-002"
    }
  ],
  "catalogComplete": true
}
```

# Actor output Schema

## `changes` (type: `string`):

No description

## `summary` (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 = {
    "catalogId": "demo-catalog-001",
    "catalogProducts": [
        {
            "id": "SKU-001",
            "title": "Example Cotton Shirt",
            "price": "499.00",
            "available": true,
            "sku": "SKU-001"
        },
        {
            "id": "SKU-002",
            "title": "Example Canvas Bag",
            "price": "699.00",
            "available": true,
            "sku": "SKU-002"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("digicrem/digicrem-catalog-delta-intelligence").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 = {
    "catalogId": "demo-catalog-001",
    "catalogProducts": [
        {
            "id": "SKU-001",
            "title": "Example Cotton Shirt",
            "price": "499.00",
            "available": True,
            "sku": "SKU-001",
        },
        {
            "id": "SKU-002",
            "title": "Example Canvas Bag",
            "price": "699.00",
            "available": True,
            "sku": "SKU-002",
        },
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("digicrem/digicrem-catalog-delta-intelligence").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 '{
  "catalogId": "demo-catalog-001",
  "catalogProducts": [
    {
      "id": "SKU-001",
      "title": "Example Cotton Shirt",
      "price": "499.00",
      "available": true,
      "sku": "SKU-001"
    },
    {
      "id": "SKU-002",
      "title": "Example Canvas Bag",
      "price": "699.00",
      "available": true,
      "sku": "SKU-002"
    }
  ]
}' |
apify call digicrem/digicrem-catalog-delta-intelligence --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,digicrem/digicrem-catalog-delta-intelligence"
        }
    }
}
```

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/YU0dxmwcIChR7JfaP/builds/A5MIwhfjPVz3QORDq/openapi.json
