# Shopify Variant Image Audit - Find Missing Images (`steadyworks/shopify-variant-image-audit`) Actor

Audit your Shopify catalog to find variants with missing or mismatched images and get a fix-ready CSV. One-run audit here; no weekly tracking in this Actor. Read-only — never writes to your store. Max $9.00/run for up to 12 rows — capped, lands clean.

- **URL**: https://apify.com/steadyworks/shopify-variant-image-audit.md
- **Developed by:** [steadyworks](https://apify.com/steadyworks) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.45 / mismatch row

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Shopify Variant Image Audit - Find Missing Images

Scrape-free audit that finds Shopify variants with missing or mismatched images and returns fix-ready data rows. Paste your Shopify product-CSV rows plus the recorded page data, get one row per variant-image mismatch with evidence. No API key needed, one run in, rows out. \[Click Try for free — input opens prefilled. Start as-is, check rows, then raise caps.]

### What it does / What you get — Shopify variant image audit data

Audit your Shopify catalog to find variants with **missing images** or **mismatched images** and get a **fix-ready CSV** draft plus evidence rows. This Shopify variant image audit compares your buyer product-CSV variant/image map against the page data you supply and lists only the mismatches.

- **One row per mismatch** — SKU, option key, mismatch class (`wrong-image`, `missing-image`, `stale-variant`), both image URLs side by side.
- **Evidence on every row** — `evidenceUrl` (the product page where it was seen) plus `checkedAt` timestamp and a verify-before-act notice.
- **Fix-CSV draft** — a ready-to-apply file draft you apply yourself; the actor never writes to your store.
- **Exact matches only** — SKUs compare exact-only; close names never flag.
- **Quiet when clean** — matching catalogs return 0 rows and bill $0 instead of flagging.
- **Shopify CSV in, scrape-style rows out** — works with variant-differentiated image galleries on standard Shopify themes.

### Quick start — Shopify image scrape in 5 steps

1. Click **Try for free** — the input opens with a small demo catalog prefilled ($0 demo data, no credentials).
2. Keep the demo rows (or replace `productCsv` with your own Shopify product-CSV rows, max 200).
3. Keep the demo `livePageUrls` + `pages` (or paste your own recorded page data for the same URLs).
4. Click **Save & Start**, then open the **Dataset** tab for mismatch rows and the **Key-Value Store** `OUTPUT` record for the summary.
5. Raise `productCsv` / `livePageUrls` toward the caps (200 rows / 5 URLs) once the row shape looks right.

### Input — Shopify CSV + pages contract

Minimal JSON (required-only). Prefill in the Console matches this example exactly (`scopeStore: "demo-store-01"`, `runId: "audit-001"`).

```json
{
  "productCsv": [
    {"title": "Demo Tee", "sku": "TEE-RED-S", "option1Name": "Color", "option1Value": "Red", "urlHandle": "demo-tee", "variantImageUrl": "https://cdn.example/p/tee-red-s-csv.jpg"}
  ],
  "livePageUrls": ["https://demo-store-01.example/products/tee"],
  "pages": {
    "pages": {
      "https://demo-store-01.example/products/tee": {
        "variants": [
          {"sku": "TEE-RED-S", "optionName": "Color", "optionValue": "Red", "imageUrl": "https://cdn.example/p/tee-red-s-live.jpg"}
        ]
      }
    }
  }
}
```

Full JSON (all defaults). Same prefill values as the schema:

```json
{
  "productCsv": [
    {"title": "Demo Tee", "sku": "TEE-RED-S", "option1Name": "Color", "option1Value": "Red", "urlHandle": "demo-tee", "variantImageUrl": "https://cdn.example/p/tee-red-s-csv.jpg"},
    {"title": "Demo Tee", "sku": "TEE-BLU-S", "option1Name": "Color", "option1Value": "Blue", "urlHandle": "demo-tee", "variantImageUrl": null},
    {"title": "Demo Tee", "sku": "TEE-GRN-S", "option1Name": "Color", "option1Value": "Green", "urlHandle": "demo-tee", "variantImageUrl": "https://cdn.example/p/tee-grn-same.jpg"},
    {"title": "Demo Mug", "sku": "MUG-OLD", "option1Name": "Size", "option1Value": "Old", "urlHandle": "demo-mug", "variantImageUrl": "https://cdn.example/p/mug-old-csv.jpg"}
  ],
  "livePageUrls": ["https://demo-store-01.example/products/tee"],
  "pages": {
    "pages": {
      "https://demo-store-01.example/products/tee": {
        "variants": [
          {"sku": "TEE-RED-S", "optionName": "Color", "optionValue": "Red", "imageUrl": "https://cdn.example/p/tee-red-s-live.jpg"},
          {"sku": "TEE-BLU-S", "optionName": "Color", "optionValue": "Blue", "imageUrl": "https://cdn.example/p/tee-blu-s-live.jpg"},
          {"sku": "TEE-GRN-S", "optionName": "Color", "optionValue": "Green", "imageUrl": "https://cdn.example/p/tee-grn-same.jpg"}
        ]
      }
    }
  },
  "scopeStore": "demo-store-01",
  "runId": "audit-001",
  "checkedAt": "2026-09-28T12:00:00Z"
}
```

| field | type | required | default | units | limits |
|---|---|---|---|---|---|
| `productCsv` | array of objects | yes | — | rows | 1–200 rows; each row needs `title`, `sku`, `option1Name`, `option1Value`; optional `urlHandle`, `productImageUrl`, `variantImageUrl` (null allowed), `imagePosition`, `costPerItem` |
| `livePageUrls` | array of strings (URLs) | yes | — | URLs | 1–5 public product page URLs; each URL is looked up once in `pages` |
| `pages` | object | yes | — | — | recorded page data shaped `{"pages": {"<url>": {"variants": [{"sku", "optionName", "optionValue", "imageUrl"}]}}}`; a bare `{"<url>": {"variants": [...]}}` map is accepted the same way |
| `scopeStore` | string | no | `demo-store-01` (prefill) | — | min length 1; same scope plus same inputs hits the same state; leave empty to use the actor default scope |
| `runId` | string | no | `audit-001` (prefill) | — | min length 1; doubles as the billing idempotency key — retrying with the same `runId` bills at most `max(0, rows minus already-charged)`; leave empty to stamp the platform run id |
| `checkedAt` | string | no | stamped at run time | ISO-8601 date-time | e.g. `2026-09-28T12:00:00Z`; every emitted row carries it back |

Behavior contract: a URL absent from `pages` is a typed per-URL miss (counted, never fetched live in this build) — never a guessed verdict. Missing core CSV columns reject the run before any other work. Same `runId` retried never double-bills. Quiet runs (0 mismatches) bill $0. Runs that exceed the 12-row Store cap publish counts only (dataset stays empty, identifiers withheld) and never charge over the cap.

Job recipes: `single-variant check` (1 SKU / 1 URL above) · `pre-launch apparel sweep` (4 SKUs / 1 URL, expects `wrong-image` + `missing-image` + `stale-variant`) · `quiet-path proof` (1 SKU whose CSV image equals the supplied page image, expects 0 rows) · `multi-page scope` (up to 5 URLs, one lookup each) · `re-run after CSV fix` (same `scopeStore`, corrected CSV, expect fewer rows).

### Output — mismatch data rows + summary record

Mismatch rows land in the run's **default dataset** (one row per variant-image mismatch); the run summary lands in the **key-value store** under the `OUTPUT` record. Failed or empty runs bill $0 and the dataset stays empty by design.

| field | type | notes |
|---|---|---|
| `sku` | string | exact-match key from the buyer CSV; near-matches never flag |
| `optionKey` | string | buyer option name plus value (`name=value`) the mismatch was graded on |
| `mismatchClass` | enum `wrong-image` / `missing-image` / `stale-variant` | `wrong-image` = both present, differ; `missing-image` = CSV null, page present; `stale-variant` = CSV SKU absent from the supplied page data |
| `csvRowNumber` | integer | 1-based row number in the buyer product CSV |
| `csvImageUrl` | string or null | CSV-side variant image; null feeds the `missing-image` class |
| `liveImageUrl` | string or null | supplied page-data image; null on the `stale-variant` class |
| `scopeStore` | string | stable store key the run was scoped to |
| `evidenceUrl` | string (URL) | buyer-named public product page URL where the mismatch was seen |
| `checkedAt` | string (date-time) | run timestamp the row was checked on |
| `notice` | string | verify-before-act notice |

Real example rows (shortened for viewing — URLs abridged):

```json
[
  {"sku": "TEE-RED-S", "optionKey": "Color=Red", "mismatchClass": "wrong-image", "csvRowNumber": 1, "csvImageUrl": "https://cdn.example/p/tee-red-s-csv.jpg", "liveImageUrl": "https://cdn.example/p/tee-red-s-live.jpg", "scopeStore": "demo-store-01", "evidenceUrl": "https://demo-store-01.example/products/tee", "checkedAt": "2026-09-28T12:00:00Z", "notice": "verify before act"},
  {"sku": "TEE-BLU-S", "optionKey": "Color=Blue", "mismatchClass": "missing-image", "csvRowNumber": 2, "csvImageUrl": null, "liveImageUrl": "https://cdn.example/p/tee-blu-s-live.jpg", "scopeStore": "demo-store-01", "evidenceUrl": "https://demo-store-01.example/products/tee", "checkedAt": "2026-09-28T12:00:00Z", "notice": "verify before act"}
]
```

<details>
<summary>Full OUTPUT summary record (key-value store, key <code>OUTPUT</code>)</summary>

```json
{
  "status": "ok",
  "runId": "audit-001",
  "scopeStore": "demo-store-01",
  "rowsEmitted": 3,
  "summary": {"skusChecked": 4, "urlsFetched": 1, "mismatchCount": 3, "fixCsvRows": 3},
  "ordering": {"charged": 3, "published": 3, "advanced": true, "frozen": false},
  "pricedEvent": "mismatch-row",
  "storeUnits": 3,
  "storeAmountUsd": 2.25,
  "capTrip": false,
  "chargeNote": "planned",
  "fixCsv": "sku,optionKey,mismatchClass,csvImageUrl,liveImageUrl\n...",
  "notice": "verify before act"
}
```

*Rows shortened for viewing. Cap-trip runs publish counts only (dataset empty, identifiers withheld). Export formats: JSON, CSV, XML, Excel via the dataset tab.*

</details>

### How much will it cost? Shopify audit cost per mismatch row

`from $450 / 1,000 mismatch rows` (GOLD tier — $750 / $675 / $562.50 / $450 per 1k rows by buyer tier). Billable event: `mismatch-row` — one charge per emitted mismatch row. Failed fetches, empty runs, and 0-row quiet runs are not billed.

| plan | $/1k mismatch rows |
|---|---|
| Free / Starter / Scale / Business | $750 / $675 / $562.50 / $450 ($0.75 / $0.675 / $0.5625 / $0.45 per row by buyer tier) |

Worked math (realistic mismatch counts, FREE-tier $0.75/row worst case — discounted tiers bill less; cap 12 rows / $9.00 max at FREE, floor $3.75):

- 1 mismatch row ≈ **$0.75** (single-variant check).
- 3 mismatch rows ≈ **$2.25** (small 4-SKU pre-launch sweep: `wrong-image` + `missing-image` + `stale-variant`).
- 5 mismatch rows ≈ **$3.75** (equals the floor — the minimum buyer max-cost pin per run).
- 12 mismatch rows ≈ **$9.00** (the cap — the most any single run can bill).
- 13+ mismatch rows ≈ still **$9.00** — row 13 and up are counted only, never charged (dataset stays empty, counts publish).
- 0 mismatch rows ≈ **$0.00** — quiet runs bill nothing.
- Monthly watch: 4 weekly sweeps × 3 rows ≈ **$9.00/mo**; 4 weekly sweeps × 12-row cap ≈ **$36.00/mo**.

Cap/floor/quiet: the 12-row cap is the cost ceiling per run; set Max total charge (`ACTOR_MAX_TOTAL_CHARGE_USD`) and the run stops on `eventChargeLimitReached`. The buyer max-cost pin cannot be set below the $3.75 floor (covers a minimal 5-row audit). Quiet-cost disclosure: each run also fires the platform `actor-start` event ($0.00005/start at default memory) — compute dust next to the row meter; no proxy, residential-proxy, or AI-summary multipliers; platform compute included in the row price.

Max $9.00/run for up to 12 rows — lands SUCCEEDED at the cap; you pay more only if you turn on Complete my input (worst case computed from your input, never above $150.00). Set `capMode: "complete-input"` to process your whole input (up to 200 rows) in one run: the run quotes your worst case (your input rows × $0.75) on its first log line and in OUTPUT before charging anything, never bills above $150.00, fails closed to capped when your input prices above it, and still lands SUCCEEDED counts-only at the ceiling. Schedules and saved-task runs always use capped, and your Max total charge pin still lowers any run.

`event:mismatch-row | $/1k 750.00/675.00/562.50/450.00 | includes_usage:false | billed_on_empty:false | caps:[12 mismatch rows, 200 CSV rows, 5 page URLs] | quiet:[actor-start]`

Console Pricing tab is authoritative; the figures above mirror it.

### Trial — free Shopify image check

$5 platform credit ≈ **6 mismatch rows** ($4.50) plus starts — enough for two full 3-row pre-launch sweeps, or six single-variant checks. No card is required for the trial.

- First run: keep the prefilled demo input (small, synthetic, $0 data cost beyond the row meter) — check the rows, then raise caps.
- Free trial instrument: sized to 10+ variants with no export, pre-limit warning, and an explicit upgrade path to the paid $0.75/row meter.
- Click Try for free — input opens prefilled. Start as-is, check rows, then raise cap.

### Compatibility — tested Shopify themes

Works with variant-differentiated image galleries on standard Shopify themes (per-variant images on the product page). Verified live:

- **MVMT** — Oct 2026 (caught a genuine `missing-image` variant: CSV null vs live variant image present; byte-equal control stayed quiet)
- **Brooklinen** — Oct 2026 (read clean across 2 SKUs with distinct per-variant gallery images — correctly 0 rows)

Not covered: pages where every variant image is null (product-level gallery only, no variant-level image); pages where all variants share one image (nothing per-variant to differentiate); single-variant bundles. A page URL you name but do not supply data for is reported per page as a typed miss — never a guessed verdict.

*Store names belong to their owners; no affiliation, endorsement, or sponsorship implied.*

### What people use it for + What it does NOT do

**What people use it for (Shopify seller jobs):**

- Pre-launch apparel image sweep — catch variants with no catalog image before going live.
- Post-import CSV check — verify a fresh product-CSV import against supplied page data.
- Wrong-image hunt — find variants whose CSV image differs from the page image.
- Dead-variant cleanup — surface CSV SKUs absent from the supplied pages (`stale-variant`).
- Weekly catalog watch — re-run on a schedule and act only when rows appear.
- Fix-CSV workflow — take the draft file, correct images, re-run to confirm silence.
- Agency QA pass — audit a client catalog and hand over evidence rows.

**What this Actor does NOT do:**

- Does not browse your live store itself — you supply the page data it compares against.
- Does not edit products, images, or prices — read-only; you apply the fix-CSV yourself.
- Does not guess — close SKU names never flag; missing page data is a typed miss, never a verdict.
- Does not render JavaScript image walls or read login-walled pages.

### Use with schedules / webhooks / API / MCP — Shopify audit automation

Schedule (alert only when rows appear): create a weekly schedule on the saved `single-variant check` task input; attach a webhook on `ACTOR.RUN.SUCCEEDED` that fetches the dataset `itemCount` and alerts only when `itemCount > 0`. Quiet weeks (0 rows, $0) stay silent.

Webhook receiver contract: accept 2xx idempotently, 2-minute timeout with retries expected; on success fetch mismatch rows plus the fix-CSV draft by dataset ID; on failure file one breakage-log row.

MCP (platform discovery — no hosted server): add the Apify MCP server, then find and run this actor by keyword:

```json
{
  "mcpServers": {
    "apify": {
      "command": "npx",
      "args": ["-y", "@apify/mcp-server"],
      "env": {"APIFY_TOKEN": "<your-apify-token>"}
    }
  }
}
```

Then: search actors for `shopify variant image audit` → `fetch-actor-details` → call-actor with the Input JSON above. Note: `call-actor` waits ≤45s — poll `get-actor-run` or use webhooks for longer runs, never block.

curl one-liner:

```bash
curl -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" -d '{"productCsv":[{"title":"Demo Tee","sku":"TEE-RED-S","option1Name":"Color","option1Value":"Red"}],"livePageUrls":["https://demo-store-01.example/products/tee"],"pages":{"pages":{"https://demo-store-01.example/products/tee":{"variants":[{"sku":"TEE-RED-S","optionName":"Color","optionValue":"Red","imageUrl":"https://cdn.example/p/tee-red-s-live.jpg"}]}}},"scopeStore":"demo-store-01","runId":"audit-001"}' "https://api.apify.com/v2/acts/steadyworks~shopify-variant-image-audit/runs"
```

JavaScript one-liner:

```js
await apifyClient.actor("steadyworks/shopify-variant-image-audit").call({productCsv: [{title: "Demo Tee", sku: "TEE-RED-S", option1Name: "Color", option1Value: "Red"}], livePageUrls: ["https://demo-store-01.example/products/tee"], pages: {pages: {}}, scopeStore: "demo-store-01", runId: "audit-001"});
```

Python one-liner:

```python
client.actor("steadyworks/shopify-variant-image-audit").call({"productCsv": [{"title": "Demo Tee", "sku": "TEE-RED-S", "option1Name": "Color", "option1Value": "Red"}], "livePageUrls": ["https://demo-store-01.example/products/tee"], "pages": {"pages": {}}, "scopeStore": "demo-store-01", "runId": "audit-001"})
```

### Troubleshooting — Shopify audit fixes

| symptom | cause | fix |
|---|---|---|
| 0 rows but you expected mismatches | CSV images already equal the supplied page images, or SKUs spelled differently (exact-only match) | check `sku` spelling byte-for-byte; confirm `csvImageUrl` really differs from the page `imageUrl` |
| Run rejects immediately (hard-fail) | `productCsv` empty / missing core columns (`title`, `sku`, `option1Name`, `option1Value`), or over caps (200 rows / 5 URLs) | restore the four core columns; split into ≤200 rows and ≤5 URLs per run |
| URL reported as per-page miss | URL in `livePageUrls` has no entry in `pages` | add the URL's `{"variants": [...]}` entry under `pages.pages`, or drop the URL |
| Counts publish but dataset empty | run exceeded the 12-row Store cap (counts-only mode) | narrow the CSV slice per run (e.g. one product handle at a time); re-run the remainder with a new `runId` — or set `capMode: "complete-input"` for the whole input in one run (quoted pre-charge, never above $150.00) |
| Billed more than expected | `runId` reused across different inputs, or multiple sweeps in one window | reuse the same `runId` only for retries of the same input; compare the OUTPUT record's `ordering.charged` against the billed units |
| `stale-variant` for a live SKU | SKU present in CSV but absent from the supplied page data for that URL | add the variant to that URL's page entry, or move it to the correct URL's entry |

### FAQ + legality — Shopify image audit questions

**Does this change my store data? No — read-only.** The actor compares data you paste in and returns rows plus a fix-CSV draft. It never writes to your store, never changes prices or images, and performs no live fetch of your shop in this build.

**How much will one audit cost?** $0.75 per mismatch row found: 1 row ≈ $0.75, 3 rows ≈ $2.25, 12 rows ≈ $9.00 max, 0 rows = $0. See the worked math above.

**What are the limits?** 200 CSV rows and 5 page URLs per run (schema-enforced); at most 12 billed rows per run ($9.00 max) — row 13+ counts only — unless you set `capMode: "complete-input"` (whole input up to 200 rows, worst case quoted pre-charge, never above $150.00).

**Do I need a Shopify API key or login?** No. Input is your own CSV rows plus recorded page data — no credentials, no login-walled pages.

**Does it handle personal data (GDPR)?** It processes only the catalog data you supply (SKUs, option names, public image and page URLs). Supply anonymized demo data for trials; do not paste buyer personal data — none is needed for an image audit.

**Is this affiliated with Shopify, MVMT, or Brooklinen?** No. Shopify is the platform your catalog runs on; MVMT and Brooklinen are stores whose page shapes were verified live (see Compatibility). No affiliation, endorsement, or sponsorship is implied. Findings are narrow reproducible facts about image URLs, never accusations.

**Which pages can it read?** Variant-differentiated galleries on standard Shopify themes. Pages where every variant image is null, all variants share one image, or single-variant bundles are outside the shape — reported as boundaries, never guessed.

### Other Actors you might need

| need | direction |
|---|---|
| Full Shopify catalog scrape (collect the CSV first) | use a Shopify product scraper, then feed its CSV rows into this audit's `productCsv` |
| Live price or availability monitoring | use a price/stock monitor — this actor checks images only |
| JavaScript-rendered or login-walled pages | use a browser-rendering scraper — this audit compares supplied page data as-is |
| No sibling image-audit actor is listed under this account yet | start from this actor's saved task inputs (single-variant check, apparel sweep, quiet-path proof) |

### Changelog + support — Shopify variant image audit updates

[Changelog](./CHANGELOG.md) — 0.2 (2026-10-02, cap trim to 12 rows / $9.00 max) · 0.1 (2026-10-02, adoption baseline). Support: the actor page **Issues tab**.

# Changelog

This Actor's version history is a separate document: https://apify.com/steadyworks/shopify-variant-image-audit/changelog.md

# Actor input Schema

## `productCsv` (type: `array`):

Buyer product-CSV rows, max 200. Required per row: title, sku, option1Name, option1Value. Optional: urlHandle, productImageUrl, variantImageUrl, imagePosition, costPerItem. Header variants are tolerated; missing core columns reject the run before any other work.

## `livePageUrls` (type: `array`):

Buyer-named public product page URLs, 1 to 5. Each URL is looked up once in `pages`; a URL absent from `pages` is a typed per-URL miss, never a live fetch.

## `pages` (type: `object`):

Saved product pages the audit compares against (no live fetch): {"pages": {"<url>": {"variants": \[{"sku": "...", "optionName": "...", "optionValue": "...", "imageUrl": "... or null"}]}}}. SKUs compare exact-only; near-matches never flag. A bare {"<url>": {"variants": \[...]}} map is accepted the same way.

## `scopeStore` (type: `string`):

Stable store key. Same scope plus same inputs hits the same state. Leave empty to use the actor default scope (fail-closed: never shares state across stores).

## `runId` (type: `string`):

Single audit run identifier; doubles as the billing idempotency key (retry bills max(0, rows minus already-charged) only). Leave empty to stamp the platform run id (fail-closed: never reuses a foreign billing key).

## `checkedAt` (type: `string`):

Run timestamp (ISO date-time). Leave empty to stamp at run time; every emitted row carries it back.

## `freshnessHours` (type: `integer`):

Evidence freshness window in hours (1 to 168, 72 when empty; evidence older than the window grades stale-variant, and schedules plus saved-task runs cap at 24).

## `capMode` (type: `string`):

capped (default): max $9.00 for up to 12 mismatch rows — row 13 and up counts only, never charged. complete-input: processes your whole input up to 200 rows; worst case = your input rows x $0.75/row, never above $150.00. The run quotes your worst case before charging; above $150.00 it fails closed to capped. Schedules and saved-task runs always use capped.

## Actor input object example

```json
{
  "productCsv": [
    {
      "title": "Demo Tee",
      "sku": "TEE-RED-S",
      "option1Name": "Color",
      "option1Value": "Red",
      "urlHandle": "demo-tee",
      "variantImageUrl": "https://cdn.example/p/tee-red-s-csv.jpg"
    }
  ],
  "livePageUrls": [
    "https://demo-store-01.example/products/tee"
  ],
  "pages": {
    "pages": {
      "https://demo-store-01.example/products/tee": {
        "variants": [
          {
            "sku": "TEE-RED-S",
            "optionName": "Color",
            "optionValue": "Red",
            "imageUrl": "https://cdn.example/p/tee-red-s-live.jpg"
          }
        ]
      }
    }
  },
  "scopeStore": "demo-store-01",
  "runId": "audit-001",
  "checkedAt": "2026-09-28T12:00:00Z",
  "freshnessHours": 72,
  "capMode": "capped"
}
```

# Actor output Schema

## `mismatches` (type: `string`):

Variant-image mismatch rows (default dataset): sku, optionKey, mismatchClass, csvRowNumber, csvImageUrl, liveImageUrl, scopeStore, evidenceUrl, checkedAt, verify-before-act notice. Empty on quiet or cap-trip runs by design.

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

Summary record: run status, rows emitted, billing quote and fix-CSV draft with notice.

# 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 = {
    "productCsv": [
        {
            "title": "Demo Tee",
            "sku": "TEE-RED-S",
            "option1Name": "Color",
            "option1Value": "Red",
            "urlHandle": "demo-tee",
            "variantImageUrl": "https://cdn.example/p/tee-red-s-csv.jpg"
        }
    ],
    "livePageUrls": [
        "https://demo-store-01.example/products/tee"
    ],
    "pages": {
        "pages": {
            "https://demo-store-01.example/products/tee": {
                "variants": [
                    {
                        "sku": "TEE-RED-S",
                        "optionName": "Color",
                        "optionValue": "Red",
                        "imageUrl": "https://cdn.example/p/tee-red-s-live.jpg"
                    }
                ]
            }
        }
    },
    "scopeStore": "demo-store-01",
    "runId": "audit-001",
    "freshnessHours": 72,
    "capMode": "capped"
};

// Run the Actor and wait for it to finish
const run = await client.actor("steadyworks/shopify-variant-image-audit").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 = {
    "productCsv": [{
            "title": "Demo Tee",
            "sku": "TEE-RED-S",
            "option1Name": "Color",
            "option1Value": "Red",
            "urlHandle": "demo-tee",
            "variantImageUrl": "https://cdn.example/p/tee-red-s-csv.jpg",
        }],
    "livePageUrls": ["https://demo-store-01.example/products/tee"],
    "pages": { "pages": { "https://demo-store-01.example/products/tee": { "variants": [{
                        "sku": "TEE-RED-S",
                        "optionName": "Color",
                        "optionValue": "Red",
                        "imageUrl": "https://cdn.example/p/tee-red-s-live.jpg",
                    }] } } },
    "scopeStore": "demo-store-01",
    "runId": "audit-001",
    "freshnessHours": 72,
    "capMode": "capped",
}

# Run the Actor and wait for it to finish
run = client.actor("steadyworks/shopify-variant-image-audit").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 '{
  "productCsv": [
    {
      "title": "Demo Tee",
      "sku": "TEE-RED-S",
      "option1Name": "Color",
      "option1Value": "Red",
      "urlHandle": "demo-tee",
      "variantImageUrl": "https://cdn.example/p/tee-red-s-csv.jpg"
    }
  ],
  "livePageUrls": [
    "https://demo-store-01.example/products/tee"
  ],
  "pages": {
    "pages": {
      "https://demo-store-01.example/products/tee": {
        "variants": [
          {
            "sku": "TEE-RED-S",
            "optionName": "Color",
            "optionValue": "Red",
            "imageUrl": "https://cdn.example/p/tee-red-s-live.jpg"
          }
        ]
      }
    }
  },
  "scopeStore": "demo-store-01",
  "runId": "audit-001",
  "freshnessHours": 72,
  "capMode": "capped"
}' |
apify call steadyworks/shopify-variant-image-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,steadyworks/shopify-variant-image-audit"
        }
    }
}
```

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/tggX04HSOFZB8DdG7/builds/dZ7yfSKgzBLnSHEbr/openapi.json
