# Shopify Scraper - Products & Price Monitor

> Scrape any Shopify store's products (prices, compare-at and discount %, variants, SKUs, stock, images, tags, dates) from its public JSON feed. Monitor mode compares with the previous run and returns only new, removed, price-changed and stock-changed products.

- Category: E-commerce & reviews
- Price: $1 per 1,000 × product result, billed per result by Apify (no subscription); any other billed events are listed on the Store page. Cap any run with `maxTotalChargeUsd`.
- Store page: https://apify.com/wrenfield-data/shopify-store-scraper?fpr=qx6tzs
- Human page: https://wrenfielddata.com/tools/shopify-store-scraper/
- OpenAPI 3 spec: https://api.apify.com/v2/acts/wrenfield-data~shopify-store-scraper/builds/default/openapi.json
- MCP tool: https://mcp.apify.com?tools=wrenfield-data/shopify-store-scraper (appears as `wrenfield-data--shopify-store-scraper`)

## Call it

Synchronous run that returns the dataset rows as JSON (use `/runs` for long jobs and poll; see the OpenAPI spec):

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/wrenfield-data~shopify-store-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"stores": ["allbirds.com", "kyliecosmetics.com"], "maxProductsPerStore": 20, "monitorMode": false, "outputProductsOnFirstRun": true, "monitorStoreName": "shopify-store-monitor", "includeInventory": false, "trackQuantityChanges": false, "includeDescription": true, "proxyConfiguration": {"useApifyProxy": true}, "requestDelaySecs": 1.0, "maxConcurrency": 5, "maxRetries": 6}'
```

## Input

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `stores` | array | yes | `["allbirds.com", "kyliecosmetics.com"]` | Store domains or URLs, one per line, e.g. allbirds.com, https://www.gymshark.com. You can also paste a collection URL (/collections/mens) or a product URL (/products/handle) to scrape just that collection or product. Domains that are not Shopify stores get a free error row. |
| `collections` | array |  |  | Only scrape these collections in every store, e.g. mens-shoes (the part after /collections/ in the URL). Leave empty for the whole catalog. |
| `keywords` | array |  |  | Keep only products whose title, handle, vendor, product type or tags contain at least one of these words (case-insensitive). |
| `maxProductsPerStore` | integer |  | `1000` | Maximum products per store (after the keyword filter). Shopify returns up to 250 products per request. In monitor mode, use a limit above the store's catalog size so removed products can be detected. |
| `monitorMode` | boolean |  | `false` | Compare each store with the previous run and output only new, removed, price-changed and stock-changed products, with previous and current values. Snapshots are kept in a named key-value store, one record per store. Schedule the Actor (e.g. daily) to get a change feed. |
| `outputProductsOnFirstRun` | boolean |  | `true` | On the first monitor run for a store there is nothing to compare with. When on, the full product list is output (billed as products); when off, the first run only saves the baseline. |
| `monitorStoreName` | string |  | `"shopify-store-monitor"` | Named key-value store in your account that keeps the snapshots. Use a different name to keep separate monitors. |
| `monitorId` | string |  |  | Optional label that separates snapshots when you monitor the same store with different tasks. Collections and keyword filters already get their own snapshot. |
| `includeInventory` | boolean |  | `false` | Fetch each product's /products/<handle>.js to add variant barcodes and inventoryQuantity when the store exposes it. Checked once per store; skipped automatically if the store hides quantities. Adds one request per product. |
| `trackQuantityChanges` | boolean |  | `false` | Monitor mode with inventory on: also output a stock_changed row when a variant's inventory quantity changes (not only when it goes in or out of stock). Useful for sales-velocity tracking, but produces many more change rows. |
| `includeDescription` | boolean |  | `true` | Add the product description as plain text (HTML removed, max 5,000 characters). |
| `requestDelaySecs` | number |  | `1.0` | Minimum pause between requests to the same store (with jitter). The default of 1 second matches the Crawl-delay most Shopify stores publish in robots.txt. The delay grows automatically if a store rate-limits. |
| `maxConcurrency` | integer |  | `5` | How many different stores are scraped at the same time. Each store is always fetched one page at a time. |
| `maxRetries` | integer |  | `6` | Retries with backoff for rate limits, timeouts and server errors. |

## Example input

```json
{
  "stores": [
    "allbirds.com",
    "kyliecosmetics.com"
  ],
  "maxProductsPerStore": 20,
  "monitorMode": false,
  "outputProductsOnFirstRun": true,
  "monitorStoreName": "shopify-store-monitor",
  "includeInventory": false,
  "trackQuantityChanges": false,
  "includeDescription": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "requestDelaySecs": 1.0,
  "maxConcurrency": 5,
  "maxRetries": 6
}
```

## Output fields

One flat row per result:

| Field | Type | Description |
|---|---|---|
| `type` | string | Row type: product, change (monitor mode) or error |
| `store` | string | Store domain as given in the input |
| `storeName` | string | Store name |
| `storeUrl` | string | Store base URL |
| `currency` | string | Store currency code, e.g. USD |
| `productId` | integer/string | Shopify product ID |
| `title` | string | Product title |
| `handle` | string | Product handle (URL slug) |
| `url` | string | Product page URL |
| `vendor` | string | Brand / vendor |
| `productType` | string | Product type / category set by the store |
| `tags` | array | Product tags |
| `createdAt` | string | When the product was created (ISO 8601) |
| `updatedAt` | string | When the product was last updated (ISO 8601) |
| `publishedAt` | string | When the product was published (ISO 8601) |
| `price` | number | Lowest variant price in the store currency |
| `priceMin` | number | Lowest variant price |
| `priceMax` | number | Highest variant price |
| `compareAtPrice` | number | Original ("compare at") price of the most-discounted variant |
| `discountPercent` | number | Largest variant discount vs compare-at price, in % |
| `onSale` | boolean | True when any variant is discounted |
| `available` | boolean | True when at least one variant is in stock |
| `variantsCount` | integer | Number of variants |
| `availableVariantsCount` | integer | Number of in-stock variants |
| `inventoryQuantity` | integer | Total units in stock (only when includeInventory is on and the store exposes it) |
| `image` | string | Main product image URL |
| `images` | array | All product image URLs |
| `options` | array | Product options (e.g. Size, Color) with their values |
| `variants` | array | Variants with id, title, sku, price, compareAtPrice, available, options, grams |
| `description` | string | Product description as plain text |
| `collection` | string | Collection handle the product or error relates to |
| `availableCollections` | array | Collections that exist on the store (error rows) |
| `scrapedAt` | string | When this row was produced (ISO 8601, UTC) |
| `changeType` | string | Monitor mode: new, price_changed, stock_changed or removed |
| `priceDirection` | string | Monitor mode: up, down or mixed |
| `priceChangePercent` | number | Monitor mode: price change in % |
| `stockEvent` | string | Monitor mode: back_in_stock, out_of_stock or variant_stock_changed |
| `previous` | object | Monitor mode: previous values |
| `current` | object | Monitor mode: current values |
| `variantChanges` | array | Monitor mode: per-variant price or stock changes |
| `product` | object | Monitor mode: full product row for new products |
| `detectedAt` | string | Monitor mode: when the change was detected |
| `previousRunAt` | string | Monitor mode: when the previous snapshot was taken |
| `input` | string | Error rows: the input value that failed |
| `errorType` | string | Error rows: unreachable, not_shopify, password_protected, feed_disabled, fetch_failed, product_not_found, collection_not_found, invalid_input or internal_error |
| `error` | string | Error rows: human-readable error message |

## Notes

- Auth: an Apify API token as `Authorization: Bearer <token>`; the MCP server also supports OAuth sign-in.
- Failed or empty results are not charged on most tools; check the pricing on the Store page.
- Questions: hello@wrenfielddata.com
- Apify Store links on this page are referral links. They may earn us a commission, at no extra cost to you.
