# Shopify Products Scraper - Shopify Store API (`krammer/shopify-products-scraper`) Actor

Get any public Shopify store's product catalog as JSON, with per-variant price, SKU, stock status, barcode, images and optional real inventory, recommendations and information panels. 20% cheaper than the leading Shopify scraper; only public product catalogs are read.

- **URL**: https://apify.com/krammer/shopify-products-scraper.md
- **Developed by:** [krammer liu](https://apify.com/krammer) (community)
- **Categories:** Developer tools, E-commerce, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.56 / 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/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 — every variant's price, SKU and stock, from any public Shopify store (from $0.56 / 1,000 products)

Read any public Shopify store's product catalog as clean JSON. Point it at a store domain and it pages
through the whole catalog; point it at a collection or a single product and it reads just that. Every product
comes back with its variants: price, SKU, stock status, weight, images and options. Barcodes, real inventory
counts, recommended products and product-page information panels are one option away.

- **No API key.** It reads the store's own public product JSON.
- **20% cheaper than the leading Shopify scraper.** Products start at $0.0008 and go down to $0.00056 on higher plans.
- **Failed stores are not charged.** A store that blocks automated access is listed in the errors dataset with the reason.

### Example input

```json
{
  "domains": ["kith.com"],
  "maxProductsPerStore": 50
}
```

### Example output

```json
{
  "source": {
    "id": "6586108739664",
    "canonicalUrl": "https://allbirds.com/products/womens-tree-runners-wheat-dark-beige",
    "retailer": "Allbirds",
    "language": "en",
    "currency": "USD",
    "createdUTC": 1626741073000,
    "updatedUTC": 1795855504000,
    "publishedUTC": 1795826421000
  },
  "title": "Women's Tree Runner - Wheat (Dark Beige Sole)",
  "description": "<p>The Allbirds Tree Runner is a breathable and lightweight sneaker…</p>",
  "brand": "Allbirds",
  "categories": ["Shoes"],
  "tags": ["allbirds::material => tree", "FRESH_CUTS"],
  "variants": [
    {
      "id": "39480896159824",
      "title": "5",
      "sku": "TR3WWHE050",
      "options": ["5"],
      "price": {"current": 6000, "previous": 10000, "stockStatus": "OutOfStock"},
      "requiresShipping": true,
      "taxable": true,
      "weightGrams": 714,
      "barcode": "843416190022",
      "weight": 1.574,
      "weightUnit": "lb",
      "taxCode": "PC040144",
      "fulfillmentService": "manual",
      "quantityRule": {"min": 1, "increment": 1},
      "inventoryTracked": true,
      "inventoryPolicy": "deny",
      "quantityAvailable": 0
    }
  ],
  "medias": [
    {"id": "34291569885264", "type": "Image", "url": "https://cdn.shopify.com/…png", "variantIds": [], "alt": ""}
  ],
  "options": [{"type": "Size", "values": [{"id": "5", "name": "5"}]}],
  "price": {"current": 6000, "previous": 0, "stockStatus": "InStock"},
  "priceRange": {"min": 6000, "max": 6000, "varies": false},
  "fullyOutOfStock": false,
  "publishedScope": "global",
  "templateSuffix": "womens-tree-runners",
  "requiresSellingPlan": false
}
```

A **collection** URL saves a collection record instead:

```json
{
  "id": "261364940855",
  "title": "Fair Trade & Organic Coffee",
  "handle": "coffee",
  "description": "",
  "productsCount": 87,
  "updatedUTC": 1795859701000,
  "publishedUTC": 1624444920000
}
```

A **failed store** gets one row in the errors dataset, and is not charged:

```json
{
  "domain": "bombas.com",
  "url": "https://bombas.com/products.json?limit=250&page=1",
  "status": 429,
  "reason": "This store blocks automated access (Vercel Security Checkpoint)."
}
```

### How it works

```text
domains / startUrls  ►  store + scope (whole / collection / product)
  │
  ├─ whole store     GET /products.json?limit=250&page=N   (to an empty page)
  ├─ collection      GET /collections/<handle>/products.json?limit=250&page=N
  └─ single product  GET /products/<handle>.json
  │
  ├─ grabRealInventory / grabStorefrontDetail  One GET /products/<handle>.js per product
  ├─ maxRecommendationsPerProduct > 0         GET /recommendations/products.json  (nested)
  └─ grabContentSections                       GET /products/<handle>  (page panels)
```

### Input

| Field | Type | Default | What it does |
|---|---|---|---|
| `startUrls` | array | — | A store root, a collection URL or a product URL. |
| `domains` | array | — | Store domains to scrape whole, one per entry, such as `kith.com`. |
| `query` | string | — | Keep only products whose title, vendor, product type or tags contain this text. |
| `maxRequestsPerCrawl` | integer | `0` | The most records the whole run saves (0 = no limit). |
| `maxProductsPerStore` | integer | `0` | The most products each store adds (0 = no limit). |
| `maxResults` | integer | `0` | Hidden. Overrides `maxRequestsPerCrawl` when set. |
| `maxRecommendationsPerProduct` | integer | `0` | Recommended products per product, 0–20. Billed per recommended product. |
| `grabRealInventory` | boolean | `false` | Add real per-variant stock counts. Billed per product with a real count. |
| `maxInventoryFetches` | integer | `0` | Cap on inventory fetches (0 = no cap). |
| `grabStorefrontDetail` | boolean | `false` | Add selling plans, video media and the price span. Not billed separately. |
| `maxStorefrontFetches` | integer | `0` | Cap on storefront fetches (0 = no cap). |
| `grabContentSections` | boolean | `false` | Add the labelled tabs and accordions from the product page. |
| `maxContentSectionFetches` | integer | `0` | Cap on page fetches (0 = no cap). |
| `proxy` | object | — | Optional Apify Proxy configuration. Not used unless you set it. |

### Output

Data is stored in the default dataset as **product** or **collection** records. Prices are integers in minor
units, so `6000` means 60.00 in `source.currency`.

- **Product records** always have `source`, `title`, `description`, `brand`, `categories`, `tags`, `variants`, `medias`, `options`, `price`, `priceRange` and `fullyOutOfStock`.
- **Enrichment fields** (`barcode`, `weight`, `taxCode`, `fulfillmentService`, `quantityRule`, `publishedScope`, `templateSuffix`) come from the single-product JSON. They are present on a product URL and on a collection crawl when a detail option is on. Otherwise they are `null`.
- **`quantityAvailable`, `inventoryTracked`, `inventoryPolicy`** come from the storefront payload and need `grabRealInventory`.
- **`stockStatus`** is `InStock`, `OutOfStock` or `LowInStock`. The last one appears only with a real count of 5 or fewer.

### Pricing

This Actor is paid per event.

| Event | Price | Charged |
|---|---:|---|
| `product` | $0.0008 → $0.00056 | Once per product saved. Tiered by your Apify plan. |
| `collection` | $0.00032 | Once per collection saved. |
| `recommends` | $0.0008 | Once per recommended product. |
| `real-inventory` | $0.0008 | Once per product with a real stock count. |
| `content-sections` | $0.0008 | Once per product returned with panels. |

| Tier | FREE | BRONZE | SILVER | GOLD | PLATINUM | DIAMOND |
| :--- | ---: | ---: | ---: | ---: | ---: | ---: |
| Per product | $0.0008 | $0.00072 | $0.00064 | $0.00056 | $0.00056 | $0.00056 |

### Common problems

| Problem | Cause | What to do |
|---|---|---|
| **A store returns 404** | It uses a custom **Hydrogen** storefront that does not expose `/products.json`. | Nothing to fix from the input. The store is listed in the errors dataset. |
| **A store returns 429** | A **Vercel Security Checkpoint** is in front of the store. | Run again later, or set `proxy` to an Apify Proxy configuration in the JSON input. |
| **A store returns 403** | **Cloudflare** is refusing automated requests (error 1010). | Run again later, or use `proxy`. |
| **Fewer products than the store shows** | `maxProductsPerStore` or `maxRequestsPerCrawl` stopped the run. | Raise or clear the limit. |
| **Prices look 100× too big** | Prices are integers in minor units. | `6000` means 60.00 in `source.currency`. |

### Who this is not for

- It does not merge SKUs shown on one product page. Each variant is its own entry, as Shopify stores them.
- It does not read private data, log in, or work around a store's access controls.
- It does not guess stock counts. A real count needs `grabRealInventory` and a store that publishes one.

### What's new

- 0.1 — First release: whole-store, collection, product and query crawls; enrichment, inventory, storefront
  detail, recommendations and information panels.

### Ask an AI

Point any MCP-capable agent at `https://mcp.apify.com?tools=krammer/shopify-products-scraper` and give it a store domain.

### Pay per run with x402 (experimental)

With the x402 protocol, an AI agent can pay for this Actor with stablecoins on Base or Solana. No Apify account is needed. The agent buys a prepaid API token from Apify AGI with an x402 payment, then uses that token as a bearer token against the Apify API to run the Actor. This feature is experimental and terms of Apify AGI apply. See the [official Apify x402 documentation](https://docs.apify.com/platform/integrations/x402).

### Related Actors

- [Google Jobs API & Scraper - Salary, Job Type](https://apify.com/krammer/google-jobs-scraper): Search Google Jobs results by keyword, location and country, and get structured job postings.
- [Google Trends API & Scraper - pytrends Alternative](https://apify.com/krammer/google-trends-scraper): Get Google Trends data for search terms (interest over time, interest by region, related queries) or today's trending searches.
- [Google AI Overview Scraper - AI Overview API](https://apify.com/krammer/google-ai-overview-scraper): Get the Google AI Overview for any search query, with the answer text and the sources it cites.
- [SEEK Jobs Scraper - Australia Job Listings API](https://apify.com/krammer/seek-jobs-scraper): Get SEEK job listings from Australia and New Zealand with the full job description.

# Actor input Schema

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

Start URLs of a Shopify site. A store root, a collection page and a product page are all supported.

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

One store per entry, such as <code>kith.com</code>. Each store's whole catalog is scraped, up to <b>Max result records</b>. Any page of the store works too: the path is ignored. To scrape only a collection or one product, use <b>Shopify site start urls</b> instead.

## `query` (type: `string`):

Keep only products whose title, vendor, product type or tags contain this text (case-insensitive).

## `maxRequestsPerCrawl` (type: `integer`):

The most records the whole run saves, across every store and start URL. Each record is one billed result, so this caps what the run's records cost. <code>0</code> = no limit, the default.

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

The most products saved from each store, so one large catalog cannot use up the run before the next store is reached. <code>0</code> = no per-store limit, the default. Collection records and recommended products do not count towards it.

## `maxResults` (type: `integer`):

Maximum number of results to return. Hidden parameter, overrides maxRequestsPerCrawl if set.

## `maxRecommendationsPerProduct` (type: `integer`):

The maximum number of recommended products to fetch per product. Recommendations are returned nested inside the product record and are billed per recommended product. Set to 0 to disable, max is 20.

## `grabRealInventory` (type: `boolean`):

Fetch each product's real per-variant inventory count from its storefront payload. Billed as a separate event for every product that comes back with a real stock count. Only works for stores that publish their stock numbers there; others report inventory as unknown and are not billed for it. Off by default.

## `maxInventoryFetches` (type: `integer`):

Hard cap on the extra per-product fetches used to read inventory. Advanced, not shown in the form: unlimited unless set. Only applies when 'Grab real inventory' is enabled.

## `grabStorefrontDetail` (type: `boolean`):

Fetch each product's storefront payload for selling plans (subscriptions, pre-orders), video media, and the product's price span. Costs one extra request per product, is not billed as a separate event, and is off by default.

## `maxStorefrontFetches` (type: `integer`):

Hard cap on the extra per-product storefront fetches. Advanced, not shown in the form: unlimited unless set. Only applies when 'Grab storefront detail' is enabled.

## `grabContentSections` (type: `boolean`):

Also return the labelled information panels the store shows outside the description, such as Features, Materials or Care, in a <code>contentSections</code> field. Costs one extra page request per product; a product without panels is not billed.

## `maxContentSectionFetches` (type: `integer`):

Caps how many product pages the panel extraction may fetch in one run. Advanced, not shown in the form: unlimited unless set. Only applies when 'Grab product information panels' is on.

## `proxy` (type: `object`):

Optional. Leave empty to send requests directly from Apify. Add an Apify Proxy configuration only if a store refuses non-proxied requests.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://kith.com/collections/kith-tops"
    }
  ],
  "maxRequestsPerCrawl": 0,
  "maxProductsPerStore": 0,
  "maxResults": 0,
  "maxRecommendationsPerProduct": 0,
  "grabRealInventory": false,
  "maxInventoryFetches": 0,
  "grabStorefrontDetail": false,
  "maxStorefrontFetches": 0,
  "grabContentSections": false,
  "maxContentSectionFetches": 0
}
```

# Actor output Schema

## `products` (type: `string`):

One item per product or collection saved.

## `errors` (type: `string`):

Stores that could not be scraped, with the reason. Not charged.

## `runSummary` (type: `string`):

Run outcome, counts and charged events.

# 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": [
        {
            "url": "https://kith.com/collections/kith-tops"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("krammer/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": [{ "url": "https://kith.com/collections/kith-tops" }] }

# Run the Actor and wait for it to finish
run = client.actor("krammer/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": [
    {
      "url": "https://kith.com/collections/kith-tops"
    }
  ]
}' |
apify call krammer/shopify-products-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,krammer/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/5ei2W5kyOa9VbWAqX/builds/Q7EiafTeXDsdw0jiW/openapi.json
