# Shopify Products Scraper - Variants, Stock, API (`automation_craft/shopify-products-scraper`) Actor

Scrape every product of any Shopify store by its domain, headless Hydrogen stores included, past Shopify's 25,000 item limit. Get variants with SKU, barcode, prices, compare-at prices, stock counts, images and video in any market's currency. Real-time API, JSON or CSV, pay per product.

- **URL**: https://apify.com/automation_craft/shopify-products-scraper.md
- **Developed by:** [Automation Craft](https://apify.com/automation_craft) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.67 / 1,000 products

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 Products Scraper - Variants, Stock, API

**Scrape every product of any Shopify store** by its domain: every variant with its SKU, barcode, price, compare-at price and availability, every image and video, the collections a product sits in, subscriptions, and optional real stock counts. It reads normal stores, headless Hydrogen and custom front stores, and catalogues past Shopify's limit of 25,000 products. No login, no API key, no browser. Pay per product.

#### Why this one

- **Headless stores read in full.** Big brands that run Shopify behind Hydrogen or their own front end are read through Shopify's own storefront door, or through the store's `<shop>.myshopify.com` address found on its home page.
- **Past 25,000 products.** Shopify stops any list at 25,000 items; the newest and oldest orders go on in date windows to the end of the catalogue (36,764 products of one store, kith.com, read to the end in one run on 2026-11-12).
- **A free status row for every store that gives nothing**, with the reason: not a Shopify store, password protected, no such store, closed, no products, refused. A run never ends with zero rows and no word.
- **Barcodes, SEO texts, selling plans, video, collections per product, quantity rules and unit prices in every row**, at the product price.
- **Prices of any market**: give a country code and get that market's prices and currency, with the market the store really applied on every row.
- **One row per variant** when you want a flat sheet.
- **A real-time API** for one product, one page of a store or one store, answered within seconds.

### Quick start

1. Paste one or more store domains or links into **Store, collection or product links** (for example `allbirds.com`, `https://kith.com/collections/footwear` or a product link).
2. Set **Max products per store** (the form starts at 10 for a quick look; empty means up to 10,000 a store; the highest value is 100,000).
3. Switch on the add-ons you need: **Real stock counts**, **Collections**, **Recommendations**, **Product page details**.
4. Run, then open the dataset: the **Overview** view, or export JSON, CSV or Excel.

### What you get

One `product` row per product (or one `variant` row per variant with **Output mode: one row per variant**). Fill rates are measured on 1,969 products of 20 stores read on 2026-11-12 (100 products from each of 20 stores, every add-on on, test run wYg8Xj6biEwtfpWzg).

| Field | What it holds | Filled |
|---|---|---|
| `store` | host, myshopify domain, name, currency | 100 percent |
| `productId`, `gid`, `handle`, `url` | Shopify's ids and the product link | 100 percent |
| `title`, `vendor`, `productType`, `tags` | as the store shows them | 100 percent / 100 percent / 97.2 percent / 99.7 percent |
| `description`, `descriptionHtml` | the full description as text and HTML | 93 percent |
| `createdAt`, `updatedAt`, `publishedAt` | dates | 100 percent |
| `available`, `onSale`, `discountPercent` | in stock, on sale, best discount | 100 percent / 18.6 percent on sale |
| `priceMin`, `priceMax`, `compareAtPriceMin`, `compareAtPriceMax`, `currency` | prices across the variants | 100 percent |
| `seo` | SEO title and description | 58.6 percent |
| `options` | option names and their values (Size, Colour) | 100 percent |
| `images`, `featuredImage`, `imageCount` | every image with alt text, width and height | 99.8 percent |
| `media` | images, videos with their files, external videos, 3D models | 99.8 percent (video on 0.9 percent) |
| `collections` | the collections the product is in | 99.9 percent |
| `sellingPlanGroups` | subscriptions and pre-orders with their price adjustments | 3.1 percent |
| `variants` | `variantId`, `title`, `sku`, `barcode`, `available`, `price`, `compareAtPrice`, `discountPercent`, `weight`, `weightUnit`, `requiresShipping`, `taxable`, `options`, `image`, `unitPrice`, `quantityRule` | sku 99.5 percent, barcode 76.2 percent, compare-at 30.8 percent, weight 74.4 percent of variants |
| `market` | with a country: the country asked, the country applied, the currency | when set |
| `source`, `complete`, `partial`, `addOns` | which input found it, whether every list was read whole, add-on status | always |

**Add-ons** (each off by default, each its own event, each charged only when it delivers something):

| Add-on | Adds to the product row | Measured |
|---|---|---|
| Real stock counts (`includeInventory`) | per variant `inventoryQuantity`, `inventoryManagement`, `inventoryPolicy`, `quantityPriceBreaks` | stock counts on 28.7 percent of products (stores that publish them) |
| Recommendations (`includeRecommendations`) | `recommendations`: related products with handle, title, price and link | at least one on 95.8 percent of products |
| Product page details (`includeProductPage`) | `productPage`: rating and review count from the page's own product data, and the store's information panels (tabs, accordions) | a fact on 47.6 percent of products, a rating on 20.8 percent |
| Collections (`includeCollections`) | one `collection` row per collection of the store | up to Max collections per store (all collections when the store has fewer) |

Every store also gets one free `store` row: its facts (name, city, province, country, currency, ships to countries, policies, markets) and what the walk read: products read, delivered, filtered out, repeats, and whether it reached the end of the list. A short sample row:

```json
{
  "type": "product",
  "store": { "host": "colourpop.com", "myshopifyDomain": "colourpop-prd.myshopify.com", "name": "ColourPop", "currency": "USD" },
  "productId": "7681643053138",
  "handle": "holiday-2026-mystery-box",
  "title": "Holiday 2026 Mystery Box",
  "vendor": "ColourPop",
  "productType": "Mystery Box",
  "priceMin": 49,
  "currency": "USD",
  "available": true,
  "collections": [{ "handle": "value-sets", "title": "Value Sets" }],
  "variants": [{ "variantId": "42841969295442", "sku": "Bundle-Holiday2026MysteryBox", "barcode": "FG008157", "price": 49, "available": true, "inventoryQuantity": 1520 }],
  "complete": { "variants": true, "images": true, "extras": true }
}
```

### How much does it cost to scrape Shopify products?

You pay per product delivered, plus small events for the store and the run. Everything that delivers nothing is free: a store that is not Shopify, password protected or missing, a product a filter leaves out, a repeat, a product whose read failed (delivered free and marked `partial`), and every status, store and summary row.

| Event | FREE | BRONZE | SILVER | GOLD |
|---|---|---|---|---|
| Product (`product`, per product, all its variants included) | $0.93 / 1,000 | $0.85 / 1,000 | $0.77 / 1,000 | $0.665 / 1,000 |
| Store (`store`, once per store that delivered a charged product) | $1.50 / 1,000 | $1.50 / 1,000 | $1.50 / 1,000 | $1.50 / 1,000 |
| Real inventory (`real-inventory`, per product with a published stock count) | $0.95 / 1,000 | $0.9 / 1,000 | $0.85 / 1,000 | $0.8 / 1,000 |
| Recommendations (`recommendations`, per product with at least one) | $0.95 / 1,000 | $0.9 / 1,000 | $0.85 / 1,000 | $0.8 / 1,000 |
| Product page (`product-page`, per product whose page gave a fact) | $0.95 / 1,000 | $0.9 / 1,000 | $0.85 / 1,000 | $0.8 / 1,000 |
| Collection (`collection`, per collection row) | $0.38 / 1,000 | $0.36 / 1,000 | $0.34 / 1,000 | $0.32 / 1,000 |
| Actor start (`apify-actor-start`, once per run, no tier discount) | $0.006 | $0.006 | $0.006 | $0.006 |

Platinum and Diamond plans pay the Gold price. The Store pricing card shows these same prices per 1,000 events: "$0.85 / 1,000" on the Product row means one product costs 0.085 cents on the BRONZE tier.

Worked example on the BRONZE tier: a whole store of 1,000 products costs $0.006 + $0.0015 + 1,000 x $0.00085 = $0.8575; the same with real stock counts at most $0.8575 + 1,000 x $0.0009 = $1.7575 (only products that carry a published stock count pay the add-on); 100 stores of 10 products $0.006 + 100 x $0.0015 + 1,000 x $0.00085 = $1.006.

### Input

| Setting | What it does |
|---|---|
| `startUrls` | Store domains or URLs, `<shop>.myshopify.com` domains or the bare shop name before `.myshopify.com`, collection links (`/collections/<handle>`) and product links (`/products/<handle>`). |
| `searchQueries` | Search each store with Shopify's own search instead of reading the whole catalogue; each row says where the words were found (`searchMatchedIn`). With `onlyExactSearchMatches` (on by default) a product whose title, vendor, type, tags and description hold none of the words is left out, free. |
| `maxProductsPerStore`, `maxItems` | Caps per store link and per run. |
| `outputMode` | `product` (one row per product, variants nested) or `variant` (one row per variant; still one Product event per product). |
| `sortBy` | `newest` (default), `oldest`, `price_low`, `price_high`, `best_selling`, `title`, `recently_updated`. Only `newest` and `oldest` go past 25,000 products; the other orders stop there and the store row says so. |
| `country` | A two letter country code: the prices and currency of that Shopify market. A store that does not sell there answers in its default market, and the row says `market.marketApplied: false`. |
| `onlyAvailable`, `onlyOnSale`, `minPrice`, `maxPrice` | Filters on availability, sale and the lowest variant price. |
| `productTypes`, `excludeProductTypes`, `vendors`, `tags`, `excludeTags` | Exact matches, any case. |
| `createdAfter`, `updatedAfter` | Dates as `YYYY-MM-DD`. |
| `includeInventory`, `includeRecommendations`, `includeProductPage`, `includeCollections`, `maxCollectionsPerStore` | The add-ons above. |
| `extendOutputFunction` | Your own JavaScript `(row) => value`, run on every delivered row in a sealed process; its value is stored as `custom`. |
| `appendToDatasetId`, `runLabel` | Copy every delivered row to a dataset of yours, and stamp a label on every row. |
| `proxyConfiguration` | Optional. By default the Actor reads directly and falls back to Apify proxies by itself at no extra charge. |

Shopify's own search and filters are used only where they were measured to filter exactly (availability, price, product type, dates); every filter is checked again on every row before it is charged.

### Real-time API

This Actor is also a Server Actor (server mode): next to the input interface above (normal runs) it answers plain HTTP requests in real time, with no run to start and no dataset to read. Send a product link, a store or a page cursor, get the records back in the response. Use it inside your own app, a price check, an automation step or an AI agent that needs one product or one page now.

Copy the server URL from the **Server** tab of the Actor page (it looks like `https://automation-craft--shopify-products-scraper.apify.actor`) and authenticate with your Apify token, the same way as for the Apify API.

| Endpoint | What it does |
|---|---|
| `GET /product?url=<product link>&country=GB&inventory=true&recommendations=true` | One product. Returns the product record as JSON, the same fields as a product row of the input interface, with every variant nested. `country`, `inventory` and `recommendations` are optional. |
| `GET /products?store=<store>&limit=50&sort=newest&query=<words>&country=GB&cursor=<nextCursor>` | One page of a store's products (1 to 250, default 50) in the order asked, with `nextCursor` for the next page (`null` at the end). The newest and oldest orders read past Shopify's limit of 25,000 products. `query` searches the store and keeps only products whose title, vendor, type, tags or description hold every word. |
| `GET /store?domain=<store>` | The store record: name, currency, place, ships to countries, markets, policies, published product count. No product. |
| `POST /products/batch` with `{"urls": ["...", "..."], "inventory": true}` | Up to 10 product links in one request, each link its own element. Returns a JSON list with one record per link, in the order given. A link that is not found, invalid, not a Shopify store or a duplicate gets a free status record in its place. |
| `GET /` | A short JSON description of the endpoints, the limits and the charges. Free. |

```bash
curl -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \
  "https://automation-craft--shopify-products-scraper.apify.actor/product?url=https://www.allbirds.com/products/mens-wool-runners&inventory=true"
```

```bash
curl -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \
  "https://automation-craft--shopify-products-scraper.apify.actor/products?store=allbirds.com&limit=50&sort=newest"
```

```bash
curl -X POST -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" -H "Content-Type: application/json" \
  -d '{"urls":["https://www.allbirds.com/products/mens-wool-runners","https://kith.com/products/just-don-76ers-acid-wash-red"]}' \
  "https://automation-craft--shopify-products-scraper.apify.actor/products/batch"
```

The response of `GET /product` is the product record itself (shortened):

```json
{
  "type": "product",
  "store": { "host": "www.allbirds.com", "myshopifyDomain": "weareallbirds.myshopify.com", "name": "Allbirds", "currency": "USD" },
  "productId": "1878193471557",
  "handle": "mens-wool-runners",
  "title": "Men's Wool Runner - Natural Grey (Light Grey Sole)",
  "vendor": "Allbirds",
  "priceMin": 110,
  "currency": "USD",
  "available": true,
  "variants": [ { "variantId": "31338073981072", "title": "8", "sku": "WR3MNCW080", "barcode": "843416126274", "price": 110, "available": false, "inventoryQuantity": 0, "inventoryPolicy": "deny" } ],
  "variantCount": 7,
  "addOns": { "inventory": "read", "recommendations": null, "productPage": null }
}
```

Anything else is a JSON error with an HTTP status: `{"error": {"type": "product-not-found", "message": "..."}, "record": { ...the status record... }}`. `400` means a value is missing, sent twice, is not a product link or a store, is longer than 2,000 characters or carries a password or token, a cursor belongs to another request, or the request carries an option the endpoint does not have; `402` the platform refused the request event of your last three requests (for example because a spending limit of your account is reached), so your requests pause for up to ten minutes on that server run; `404` there is no such product or store, or the site is not a Shopify store; `408` the request body did not arrive in time; `413` the body is too large; `422` the store cannot be read (password protected, closed, or it hides every Shopify door: send its `<shop>.myshopify.com` domain instead); `429` too many lookups from your account (one server run takes 300 lookups a minute and 20 at a time from one account, a product, a store or 25 products of a page counting as one; wait for the seconds in `Retry-After`); `502` the store did not answer (try again); `503` the server is busy, restarting, or the charge was not accepted (no record is returned without its charge); `504` the request took too long. An error response charges nothing, with two exceptions that say so themselves: `503` with the type `charge-unconfirmed` means the platform did not confirm the charge, so no data was returned although the charge may have been recorded once, and `500` with the type `internal-error-after-charge` means the request failed on our side after its charge. Report either through the Issues tab with the `X-Actor-Request-ID` response header. A response arrives within 80 seconds at most.

The `X-Charged-Events` response header says what the request charged, for example `product=1; store=1; api-request=1; real-inventory=1; recommendations=0`. A value of `unconfirmed` means the platform did not confirm that charge. On a `200` response the data it stands for was delivered; on the `503` named above (`product=unconfirmed`) no data was returned.

A product is named by a value that is, as a whole, a product link of a store: `https://<store>/products/<handle>` or `https://<store>/collections/<collection>/products/<handle>`, on the store's own domain or its `<shop>.myshopify.com` domain, with an optional locale part (`/en-gb`) and any query (`?variant=` is not read). A store is a store domain, the URL of its home page or its `<shop>.myshopify.com` domain. The real-time API is stricter than the input form: a value that only contains a link somewhere in a longer text, a `.js` link or a bare shop name is an invalid value (free), not a guess. A product is delivered whole or not at all: when a read of it fails, its place holds a free status record and you can ask for it again.

The endpoints take only the options listed above. The filters and settings of the input interface (available only, on sale only, prices, product types, vendors, tags, dates, variant rows, collections, the product page add-on, maxItems, proxy) are refused with `400`, never run without them.

#### How much does a real-time request cost?

You pay per request and only for what the response delivers. There is no Actor start event on the server interface and you pay no platform usage: the server runs on our side.

| Event | FREE | BRONZE | SILVER | GOLD |
|---|---|---|---|---|
| Real-time API request (event `api-request`, once per request that delivers at least one record) | $0.003 | $0.003 | $0.003 | $0.003 |
| Product (event `product`, per product record) | $0.93 / 1,000 | $0.85 / 1,000 | $0.77 / 1,000 | $0.665 / 1,000 |
| Store (event `store`, once per store per request that delivers a product of it) | $1.50 / 1,000 | $1.50 / 1,000 | $1.50 / 1,000 | $1.50 / 1,000 |
| Real inventory (event `real-inventory`, per product with a published stock count, with `inventory=true`) | $0.95 / 1,000 | $0.90 / 1,000 | $0.85 / 1,000 | $0.80 / 1,000 |
| Recommendations (event `recommendations`, per product with at least one, with `recommendations=true`) | $0.95 / 1,000 | $0.90 / 1,000 | $0.85 / 1,000 | $0.80 / 1,000 |

Worked example on the BRONZE tier: one product costs $0.003 + $0.00085 + $0.0015 = $0.00535, with stock counts and recommendations $0.00715; a page of 50 products costs $0.003 + $0.0425 + $0.0015 = $0.047; ten products of one store in one `POST /products/batch` cost $0.003 + $0.0085 + $0.0015 = $0.013; `GET /store` costs $0.003. A request that delivers nothing (not found, invalid, not Shopify, locked, failed) is free. Platinum and Diamond plans pay the Gold price.

#### When to use the input interface instead

For whole catalogues, use the input interface (start a run): it reads up to 100,000 products a run with no Real-time API request event, charges the store once per run, writes a dataset you can export, and has the filters (availability, sale, price, type, vendor, tags, dates), one row per variant, collections, the product page add-on, your own proxy and custom output. The server interface is for one product, one page or one store within seconds.

### For AI agents and integrations

The Actor is callable from Apify's MCP server, the Apify API, Make, Zapier and n8n like any Actor: give `startUrls` (and the optional settings above) and read the dataset. For one product, one page of a store or one store inside an agent's turn, use the real-time API above: a plain HTTP request that answers within seconds with the records as JSON and a free description at `GET /`.

### FAQ

#### How do I scrape all products from a Shopify store?

Paste the store's domain and set **Max products per store** above the store's size (up to 100,000): every product of the catalogue is read, past Shopify's 25,000 item limit with the default newest order, and the store row says whether the end of the list was reached.

#### Can I get the stock quantity of a Shopify product?

Yes, with **Real stock counts** on, where the store publishes it: each variant then carries `inventoryQuantity`, its tracking and its policy. Many stores hide the count; such a product is delivered without it and that add-on is not charged for it (stock counts on 28.7 percent of products (stores that publish them)).

#### Does it work on headless Shopify stores (Hydrogen, custom front ends)?

Yes. Hydrogen stores are read through their own storefront door, and stores with their own front end through the `<shop>.myshopify.com` address their home page names. A store that blocks every door gets a free status row that names that address when it is known.

#### How do I get Shopify prices in another currency?

Set `country` (for example `GB`): the rows carry that market's prices and currency, and `market.marketApplied` says whether the store really sells there.

#### Can I call it as a real-time API?

Yes: `GET /product`, `GET /products`, `GET /store` and `POST /products/batch` on the Actor's server URL answer within seconds, see **Real-time API** above.

#### Why does this Actor run with limited permissions?

It only needs its own run's storage (the dataset and key-value store of each run), so it asks for nothing more: least privilege, as Apify recommends. Nothing is kept between runs.

### What this Actor does NOT do

- No product reviews from review apps (Yotpo, Judge.me, Stamped, Okendo): they live on the review vendors' own servers. The rating and review count the product page itself carries come with the Product page add-on.
- No metafields and no inventory figures through Shopify's API: its keyless door answers "access denied" for them; stock counts come from the product's own public data where the store publishes them.
- No search across all Shopify stores at once (that is Shopify's Shop app, not a store's catalogue), no store e-mails or phone numbers, no sales estimates.
- No browser: a store that refuses every request at its front door gets a free row naming its `<shop>.myshopify.com` address when it is known; run that address instead.
- No AI summaries or other generated text: every field is what the store serves.
- A run does not fail when a store refuses or is down: it ends successfully, writes a free row for what was not read, and its status message names the store as the failing side, so you can run it again later.
- No price or stock monitoring between runs: each run reads what the store shows at that moment; schedule runs with Apify's scheduler if you need history.
- A run that delivers nothing for a long stretch stops on its own: after about 120 unknown or non Shopify stores in a row, or about 6 full pages read where every product was filtered out in code (vendors, tags, on sale); the store row and the run's status message say what was not read, and nothing is charged for it.
- The user is responsible for a lawful use of any personal data in the results (GDPR included).

### More data tools by Automation Craft

Same family first, then other store and marketplace scrapers:

- [Walmart Scraper: Products, Prices, Sellers](https://apify.com/automation_craft/walmart-scraper)
- [Etsy Scraper: Listings, Prices, Ads, Reviews](https://apify.com/automation_craft/etsy-scraper)
- [Amazon Sponsored Products Scraper - Ads by Keyword](https://apify.com/automation_craft/amazon-sponsored-products-scraper)
- [Noon Scraper: Products, Prices, Sellers, Stock](https://apify.com/automation_craft/noon-scraper)
- [Trendyol Scraper: Products, Prices, Reviews](https://apify.com/automation_craft/trendyol-scraper)
- [Nykaa Scraper: Beauty Products, Prices, Reviews](https://apify.com/automation_craft/nykaa-scraper)

# Changelog

This Actor's version history is a separate document: https://apify.com/automation_craft/shopify-products-scraper/changelog.md

# Actor input Schema

## `startUrls` (type: `array`):

One entry per line: a store domain or URL (allbirds.com, https://kith.com), a <shop>.myshopify.com domain, a bare myshopify handle (kithnyc), a collection link (/collections/<handle>) or a product link (/products/<handle>). Headless stores built on Hydrogen are read on their own domain; a store whose front hides Shopify is read through the myshopify domain its home page names. Up to 1,000 entries. An entry that is not one of these, or that repeats an earlier one, is skipped with a free status row.

## `searchQueries` (type: `array`):

Optional. Each store entry is searched for each query with the store's own Shopify search, instead of read whole. Each row says which query found it (searchQuery) and where the words were found (searchMatchedIn: title, vendor, productType, tags, description or none). Plain words only, up to 100 queries.

## `onlyExactSearchMatches` (type: `boolean`):

On (the default): a row found by a search is delivered only when every search word appears in its title, vendor, product type, tags or description; the others are left out for free. Off: every row Shopify's search returns is delivered.

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

The most products delivered for each store entry (and for each search query of it). Default 10,000.

## `maxItems` (type: `integer`):

The most products the whole run delivers, over every entry. Default and largest value 100,000.

## `outputMode` (type: `string`):

product: one row per product with its variants in a list. variant: one row per variant, the product's fields repeated on each; still one Product charge per product.

## `sortBy` (type: `string`):

The order products are read in. Shopify stops any one ordered list at 25,000 products; Newest first and Oldest first read past that limit in date windows, the other orders stop there and the store row says so.

## `country` (type: `string`):

Optional two letter country code (GB, DE, JP). Prices and currency as the store sells in that country (Shopify Markets). Every row carries market: the country asked, the country Shopify applied and the currency; a store that does not sell there gives its default market with marketApplied false.

## `onlyAvailable` (type: `boolean`):

Leave out products that cannot be bought now (checked on every row).

## `onlyOnSale` (type: `boolean`):

Keep only products with at least one variant whose compare at price is above its price (checked on every row).

## `minPrice` (type: `number`):

Optional. Keep only products whose lowest variant price is at least this, in the row's currency.

## `maxPrice` (type: `number`):

Optional. Keep only products whose lowest variant price is at most this, in the row's currency.

## `productTypes` (type: `array`):

Optional. Keep only products whose product type is one of these (exact, case aside).

## `excludeProductTypes` (type: `array`):

Optional. Leave out products whose product type is one of these (exact, case aside).

## `vendors` (type: `array`):

Optional. Keep only products whose vendor is one of these (exact, case aside).

## `tags` (type: `array`):

Optional. Keep only products that carry at least one of these tags (exact, case aside).

## `excludeTags` (type: `array`):

Optional. Leave out products that carry any of these tags (exact, case aside).

## `createdAfter` (type: `string`):

Optional date (YYYY-MM-DD). Keep only products created on or after it.

## `updatedAfter` (type: `string`):

Optional date (YYYY-MM-DD). Keep only products updated on or after it.

## `includeInventory` (type: `boolean`):

Read each delivered product's stock door: the stock count of each variant where the store publishes it, its inventory policy and tracking, and quantity price breaks. Charged as Real inventory only for a product that carried at least one count.

## `includeRecommendations` (type: `boolean`):

Add the store's own related products of each delivered product (a recommendations list). Charged as Recommendations only for a product with at least one.

## `includeProductPage` (type: `boolean`):

Read each delivered product's page: its rating and review count from the page's structured data, and its information panels (tabs and accordions) with their text. Charged as Product page only for a product whose page gave a rating, a review count or a panel.

## `includeCollections` (type: `boolean`):

Deliver one row per collection of each store (id, handle, title, description, image, update date, link). Charged as Collection per row.

## `maxCollectionsPerStore` (type: `integer`):

With the Collections add-on: the most collection rows delivered for each store. Default 1,000.

## `extendOutputFunction` (type: `string`):

Optional JavaScript function (row) => value, run on each delivered row in a sealed process with no network, no files and no environment; its value (JSON, up to 100 KB) is stored on the row as custom. Example: (row) => ({ firstSku: row.variants\[0]?.sku }). A function that fails or takes over a second leaves custom empty and says why in customError.

## `appendToDatasetId` (type: `string`):

Optional. After each delivery is charged, its product, variant and collection rows are also copied to this dataset of yours. A failed copy is counted in the summary and never charged again.

## `runLabel` (type: `string`):

Optional text stamped on every product, variant, collection and store row as runLabel.

## `proxyConfiguration` (type: `object`):

Optional. Left empty, the run reads Shopify from its own address and moves a refused call to Apify datacenter proxies, then residential, at no extra charge. Apify proxy groups or your own proxy links replace the run's own address for every call.

## `stores` (type: `array`):

Another name for startUrls, read with the same rules after it (for inputs written for other Shopify scrapers).

## `domains` (type: `array`):

Another name for startUrls, read with the same rules after it (for inputs written for other Shopify scrapers).

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

Another name for startUrls, read with the same rules after it (for inputs written for other Shopify scrapers).

## `urls` (type: `array`):

Another name for startUrls, read with the same rules after it (for inputs written for other Shopify scrapers).

## Actor input object example

```json
{
  "startUrls": [
    "https://www.allbirds.com"
  ],
  "onlyExactSearchMatches": true,
  "maxProductsPerStore": 10,
  "outputMode": "product",
  "sortBy": "newest",
  "onlyAvailable": false,
  "onlyOnSale": false,
  "includeInventory": false,
  "includeRecommendations": false,
  "includeProductPage": false,
  "includeCollections": false
}
```

# Actor output Schema

## `items` (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 = {
    "startUrls": [
        "https://www.allbirds.com"
    ],
    "maxProductsPerStore": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation_craft/shopify-products-scraper").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 = {
    "startUrls": ["https://www.allbirds.com"],
    "maxProductsPerStore": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("automation_craft/shopify-products-scraper").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 '{
  "startUrls": [
    "https://www.allbirds.com"
  ],
  "maxProductsPerStore": 10
}' |
apify call automation_craft/shopify-products-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automation_craft/shopify-products-scraper"
        }
    }
}
```

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/henM42zcLE2cntVLV/builds/IesYROAd8dLwq35ZY/openapi.json
