# Shopify Product Scraper (`xtracto/shopify-products`) Actor

Pull the full product catalog from any Shopify store — title, price, variants, images, vendor, type and tags — one row per product. Works with any Shopify store or collection URL. No account or API key needed.

- **URL**: https://apify.com/xtracto/shopify-products.md
- **Developed by:** [Farhan Febrian Nauval](https://apify.com/xtracto) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

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

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Shopify Product Scraper

Pull the **entire product catalog from any Shopify store** — titles, prices, variants, images, vendor, product type and tags — with one row per product. Point it at a store domain (or a specific collection) and get clean, structured JSON back. Works with any Shopify store, no account needed.

### Why use this actor

- **No account, no login, no API key** — just give it a store address.
- **Works with any Shopify store** — one actor, no per-store setup. If it runs on Shopify, this reads its catalog.
- **Full detail per product** — every size/color variant with its own price, SKU and in-stock flag, plus all product images.
- **Whole store or a single collection** — grab an entire catalog, or just one collection (e.g. "Men's" or "Coffee").
- **Ready-to-use JSON** — flat summary fields (min/max price, variant count, product URL) alongside the complete raw product data, suitable for spreadsheets, databases and pipelines.
- **Runs on a schedule** with automatic retries; export to JSON, CSV or Excel.

### How it works

1. You enter one or more Shopify store addresses (or collection links).
2. The actor reads each store's public product feed, page by page, until it has the whole catalog.
3. Every product becomes one row: a clean summary plus all of its variants, images and options.
4. Results stream into your dataset as they are found — download any time.

You don't manage any scrapers, browsers or blocks — just enter a store and press Run. Some stores keep their product feed private; for those the actor returns a clear "blocked" note instead of guessing.

### Input

#### Mode: Whole store (default)

```json
{
    "mode": "store",
    "storeUrls": ["https://www.allbirds.com", "deathwishcoffee.com"],
    "limit": 250,
    "maxItems": 0,
    "maxItemsPerStore": 0
}
````

#### Mode: Single collection

```json
{
    "mode": "collection",
    "collectionUrls": ["https://deathwishcoffee.com/collections/coffee"],
    "limit": 250,
    "maxItems": 100
}
```

| Field | Type | Description |
| --- | --- | --- |
| `mode` | select | `store` (whole catalog per store) or `collection` (only the given collections). Default `store`. |
| `storeUrls` | array | Store addresses or bare domains, e.g. `https://www.allbirds.com` or `allbirds.com`. Used in `store` mode. |
| `collectionUrls` | array | Collection links, e.g. `https://deathwishcoffee.com/collections/coffee`. Used in `collection` mode. |
| `limit` | integer | Products fetched per page request (max 250). Leave at 250 for speed. |
| `maxItems` | integer | Total product cap across everything. `0` = no cap (pull all). |
| `maxItemsPerStore` | integer | Cap per store/collection. `0` = no cap. Handy to sample many stores evenly. |
| `proxyConfiguration` | object | Optional. The feed is public, so usually not needed; turn on Residential for stores that block datacenter traffic. |

### Output

One record per product. Summary fields sit at the top; the complete raw `variants`, `images` and `options` are kept exactly as the store provides them.

```json
{
    "_input": "deathwishcoffee.com",
    "_source": "S1-store",
    "_scrapedAt": "2026-07-10T00:00:00Z",
    "id": 7460599660599,
    "title": "Blueberry Coffee (9oz)",
    "handle": "blueberry-9oz",
    "vendor": "Death Wish Coffee",
    "productType": "Coffee",
    "tags": [],
    "publishedAt": "2026-07-08T09:17:43-04:00",
    "url": "https://deathwishcoffee.com/products/blueberry-9oz",
    "minPrice": 12.99,
    "maxPrice": 12.99,
    "variantsCount": 1,
    "imagesCount": 3,
    "firstImage": "https://cdn.shopify.com/s/files/1/0271/7209/files/Blueberry_9oz_Ground_Angle_DTC_FT.jpg?v=1782931128",
    "storeHost": "deathwishcoffee.com",
    "variants": [
        {
            "id": 42000000000000,
            "title": "Default Title",
            "sku": "LGBLBY09",
            "price": "12.99",
            "compare_at_price": null,
            "available": true,
            "grams": 255,
            "option1": "Default Title",
            "position": 1
        }
    ],
    "images": [
        { "id": 3300000, "src": "https://cdn.shopify.com/s/files/.../Blueberry_9oz.jpg", "width": 2000, "height": 2000 }
    ],
    "options": [
        { "name": "Title", "position": 1, "values": ["Default Title"] }
    ]
}
```

A product with sizes looks like this (from `https://www.allbirds.com/collections/mens`):

```json
{
    "_source": "S1-collection",
    "title": "Men's Dasher NZ - Natural Black (Blizzard Sole)",
    "vendor": "Allbirds",
    "productType": "Shoes",
    "minPrice": 140.0,
    "maxPrice": 140.0,
    "variantsCount": 13,
    "url": "https://www.allbirds.com/products/mens-dasher-nz-natural-black-blizzard",
    "collection": "mens",
    "variants": [
        { "title": "8", "sku": "A12647M080", "price": "140.00", "available": true, "option1": "8" }
    ],
    "options": [
        { "name": "Size", "position": 1, "values": ["8", "8.5", "9", "9.5", "10", "… 8 more"] }
    ]
}
```

| Field | Type | Description |
| --- | --- | --- |
| `_input` | string | The store/collection you entered (for traceability). |
| `_source` | string | Which mode produced the row: `S1-store` or `S1-collection`. |
| `_scrapedAt` | string | UTC timestamp of the fetch. |
| `id` | number | Shopify product id. |
| `title` | string | Product name. |
| `handle` | string | URL slug of the product. |
| `vendor` | string | Brand / vendor name. |
| `productType` | string | Shopify product type (category). |
| `tags` | array/string | Store-assigned tags. |
| `publishedAt` | string | When the product went live. |
| `url` | string | Direct link to the product page. |
| `minPrice` / `maxPrice` | number | Lowest / highest variant price. |
| `variantsCount` | number | Number of variants (sizes/colors). |
| `imagesCount` | number | Number of product images. |
| `firstImage` | string | Main product image URL. |
| `storeHost` | string | The store's domain. |
| `collection` | string | Collection handle (collection mode only). |
| `variants` | array | Full variant list as the store provides it (price, sku, availability, options…). |
| `images` | array | Full image list (src, dimensions…). |
| `options` | array | Product options (e.g. Size, Color) with their possible values. |

If a store keeps its product feed private, the actor returns a single note for that store instead of products:

```json
{
    "_input": "www.gymshark.com",
    "_source": "S1-store",
    "_error": "blocked_or_not_shopify",
    "_errorDetail": "page 1 http_403"
}
```

### Notes / limits

- **Works only where the store exposes its public product feed.** Most Shopify stores do; a minority keep it private and will return a clear `blocked_or_not_shopify` note (verified example: gymshark.com). Verified working: allbirds.com, deathwishcoffee.com, redbullshopus.com.
- **Prices** are shown in the store's own currency and format.
- **Very large catalogs** are read in pages of up to 250 products; use `maxItemsPerStore` to sample when scanning many stores.
- **Proxy** is optional. If a store blocks datacenter traffic, enable Residential in the proxy settings.

# Actor input Schema

## `mode` (type: `string`):

What to scrape. 'Whole store' pulls the entire product catalog for each store. 'Single collection' pulls only the products inside the given collection URLs.

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

One or more Shopify store URLs or bare domains (e.g. 'https://www.allbirds.com' or 'allbirds.com'). Used when Mode = Whole store. Each store's full catalog is pulled.

## `collectionUrls` (type: `array`):

One or more Shopify collection URLs (e.g. 'https://deathwishcoffee.com/collections/coffee'). Used when Mode = Single collection. Only products in each collection are pulled.

## `limit` (type: `integer`):

How many products to fetch per page request. Maximum 250. Leave at 250 for fastest results.

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

Total product cap across all stores/collections. 0 means no cap — pull everything. The example pulls a full catalog; set a number to sample.

## `maxItemsPerStore` (type: `integer`):

Per-store/per-collection product cap. 0 means no cap. Useful to sample many stores evenly.

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

Optional. The product feed is public, so a proxy is usually not needed. Turn on Residential for stores that block datacenter traffic.

## Actor input object example

```json
{
  "mode": "store",
  "storeUrls": [
    "https://www.allbirds.com"
  ],
  "collectionUrls": [
    "https://deathwishcoffee.com/collections/coffee"
  ],
  "limit": 250,
  "maxItems": 100,
  "maxItemsPerStore": 0,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "storeUrls": [
        "https://www.allbirds.com"
    ],
    "collectionUrls": [
        "https://deathwishcoffee.com/collections/coffee"
    ],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/shopify-products").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 = {
    "storeUrls": ["https://www.allbirds.com"],
    "collectionUrls": ["https://deathwishcoffee.com/collections/coffee"],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("xtracto/shopify-products").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "storeUrls": [
    "https://www.allbirds.com"
  ],
  "collectionUrls": [
    "https://deathwishcoffee.com/collections/coffee"
  ],
  "maxItems": 100
}' |
apify call xtracto/shopify-products --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=xtracto/shopify-products",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Shopify Product Scraper",
        "description": "Pull the full product catalog from any Shopify store — title, price, variants, images, vendor, type and tags — one row per product. Works with any Shopify store or collection URL. No account or API key needed.",
        "version": "0.1",
        "x-build-id": "BdKJhWyhyFDVpZtwq"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/xtracto~shopify-products/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-xtracto-shopify-products",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/xtracto~shopify-products/runs": {
            "post": {
                "operationId": "runs-sync-xtracto-shopify-products",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/xtracto~shopify-products/run-sync": {
            "post": {
                "operationId": "run-sync-xtracto-shopify-products",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "store",
                            "collection"
                        ],
                        "type": "string",
                        "description": "What to scrape. 'Whole store' pulls the entire product catalog for each store. 'Single collection' pulls only the products inside the given collection URLs.",
                        "default": "store"
                    },
                    "storeUrls": {
                        "title": "Store URLs",
                        "type": "array",
                        "description": "One or more Shopify store URLs or bare domains (e.g. 'https://www.allbirds.com' or 'allbirds.com'). Used when Mode = Whole store. Each store's full catalog is pulled.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "collectionUrls": {
                        "title": "Collection URLs",
                        "type": "array",
                        "description": "One or more Shopify collection URLs (e.g. 'https://deathwishcoffee.com/collections/coffee'). Used when Mode = Single collection. Only products in each collection are pulled.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "limit": {
                        "title": "Products per request",
                        "minimum": 1,
                        "maximum": 250,
                        "type": "integer",
                        "description": "How many products to fetch per page request. Maximum 250. Leave at 250 for fastest results.",
                        "default": 250
                    },
                    "maxItems": {
                        "title": "Max products (0 = all)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Total product cap across all stores/collections. 0 means no cap — pull everything. The example pulls a full catalog; set a number to sample.",
                        "default": 0
                    },
                    "maxItemsPerStore": {
                        "title": "Max products per store (0 = all)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Per-store/per-collection product cap. 0 means no cap. Useful to sample many stores evenly.",
                        "default": 0
                    },
                    "proxyConfiguration": {
                        "title": "Proxy",
                        "type": "object",
                        "description": "Optional. The product feed is public, so a proxy is usually not needed. Turn on Residential for stores that block datacenter traffic.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
