# Shopify Website Scraper (`data_foundry/shopify-scraper`) Actor

Scrape Shopify Store (Products + Collections + Pages + Blogs + Menu + Policies)

- **URL**: https://apify.com/data_foundry/shopify-scraper.md
- **Developed by:** [Data Foundry](https://apify.com/data_foundry) (community)
- **Categories:** E-commerce, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

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 Website Scraper

Scrape any Shopify store's entire public catalogue: products with variants and prices, collections, pages, blog posts, navigation menus and store policies - from the storefront itself, with no API key and no browser.

<table>
<tr>
<th>What you get</th>
<th>Built for</th>
</tr>
<tr>
<td valign="top">

🛍️ **Products** with variants, prices, SKUs, stock state <br>
📚 **Collections**, including smart collections <br>
📄 **Pages, blog posts, menus and policies** <br>
🧾 **Variants** as separate rows when you need them <br>
🌍 **Any Shopify storefront** - no app, no token, no login <br>
🔁 **Partial-data tolerant** - a denied field never kills a run

</td>
<td valign="top">

🏪 **Dropshipping and assortment research** <br>
💵 **Competitor pricing and catalogue audits** <br>
🧮 **Marketplace and feed building** <br>
🕵️ **Product launches** - what a store added this week <br>
🤖 **LLM-ready JSON**, one row per resource <br>
🔗 **API, schedules, integrations** via Apify

</td>
</tr>
</table>

### What data do I get?

One dataset record per resource type, chosen with `resources`.

| Resource | What you get |
|---|---|
| `products` | `productId`, handle, title, description HTML/text, vendor, type, tags, variants (price, compare-at, SKU, availability), images, `createdAt` / `updatedAt` |
| `collections` | id, handle, title, description, image, `updatedAt` |
| `pages` | handle, title, body HTML/text, `createdAt` / `updatedAt` |
| `blogs` | blog handle, article title, body, author, tags, `publishedAt` |
| `menu` | navigation links, nested, for the handles you pass |
| `policies` | refund, privacy, terms and shipping policy bodies |

### How much does it cost?

Pay per event: **$1.50 per 1,000 items scraped** ($0.0015 each). One item is one product, collection, page, article, menu item or policy. Variants are nested inside the product row, not billed separately.

| Task | Items | Cost |
|---|---|---|
| One store, full catalogue | 2,000 | **$3.00** |
| 50 stores, products only | 25,000 | **$37.50** |
| Weekly sweep of 200 stores | 100,000 | **$150.00** |

### How do I use it?

1. [Create](https://console.apify.com/sign-up) a free Apify account.
2. Open **Shopify Website Scraper** in Apify Console.
3. Paste one or more store URLs - `https://example.com` or `example.com`.
4. Pick which `resources` you want.
5. Set a cap if you only need a sample.
6. Start the run and download JSON, CSV, Excel or XML.

### Input

| Field | Type | Description |
|---|---|---|
| `storeUrls` | array | Store domains or URLs. Scheme optional. |
| `resources` | array | Any of `products`, `collections`, `pages`, `blogs`, `menu`, `policies`. |
| `menuHandles` | array | Menu handles for the `menu` resource, e.g. `main-menu`. |
| `collectionHandles` | array | Restrict product scraping to these collections on every store. A `/collections/<handle>` store URL also works. |
| `maxProductsPerStore` | integer | Cap products per store. |
| `includeVariants` | boolean | Include the `variants` and `options` fields. Rows are always one per product. |
| `includeDescription` | boolean | Include the full product body HTML. |
| `requestDelay` | number | Seconds between requests, to be gentle. |
| `storeTimeoutSecs` | integer | Per-store time budget. |
| `concurrency` | integer | Stores processed in parallel. |
| `proxyConfiguration` | object | Optional, for stores that block datacenter IPs. |

```json
{
  "storeUrls": ["https://www.allbirds.com", "gymshark.com"],
  "resources": ["products", "collections"],
  "maxProductsPerStore": 500,
  "includeVariants": true
}
```

### Output

```json
{
  "store": "https://www.allbirds.com",
  "storeName": "Allbirds",
  "currency": "USD",
  "productId": 7991234567890,
  "handle": "mens-wool-runners",
  "title": "Men's Wool Runners",
  "url": "https://www.allbirds.com/products/mens-wool-runners",
  "vendor": "Allbirds",
  "productType": "Shoes",
  "tags": ["men", "running"],
  "priceMin": 98.0,
  "priceMax": 98.0,
  "onSale": false,
  "available": true,
  "variantsCount": 1,
  "variantsTruncated": false,
  "options": [{"name": "Size", "values": ["8", "9"]}],
  "variants": [
    {
      "id": 44123456789,
      "title": "Natural Black / 8",
      "sku": "WR-M-08",
      "price": 98.0,
      "compareAtPrice": null,
      "available": true,
      "selectedOptions": {"Size": "8"}
    }
  ],
  "images": [{"src": "https://cdn.shopify.com/...", "alt": null, "width": 1200, "height": 1200}],
  "imagesTruncated": false,
  "collections": ["mens", "running"],
  "collectionsTruncated": false,
  "publishedAt": "2026-01-05T11:02:13-05:00",
  "updatedAt": "2026-11-05T11:02:13-05:00",
  "scrapedAt": "2026-11-07T09:00:00+00:00"
}
```

### Notes and exceptions

- **No API key needed.** The actor reads the storefront's public data, the same data the shop's own front-end uses.
- **Inventory counts are usually not exposed.** Availability is included, exact quantity often is not - that is a Shopify permission, not an actor limit.
- **Password-protected stores** cannot be read.
- **A store that is not on Shopify** returns no products rather than failing.
- **`includeVariants` controls detail, not row count** - turning it off removes the `variants` and `options` fields. Rows are always one per product.
- **Collection filters work** through `collectionHandles` or a `/collections/<handle>` store URL. When a filter is set, the actor uses a collection-aware source only and will not silently return the full catalogue.
- **Long lists are paginated.** Variants, images, and collections beyond 250 per product are fetched page by page; the `variantsTruncated` / `imagesTruncated` / `collectionsTruncated` flags clear once a full walk finishes.
- **Redirects stay public.** The actor follows redirects manually and refuses hops that point inside a private network.

### What can I do with the data?

**Catalogue research.** Pull a competitor's full product list with prices and compare it to yours: what they added, what they dropped, how their price bands moved.

**Feed building.** Products plus variants in one JSON is a straight path to a Google Shopping or marketplace feed.

**Launch monitoring.** Run it weekly against 50 stores and diff `updatedAt` and product ids to see who is shipping.

### Related Actors

- **[WooCommerce Website Scraper](https://apify.com/data_foundry/woocommerce-scraper)** - the same job for WooCommerce stores.
- **[Pricing Page Monitor](https://apify.com/data_foundry/pricing-page-monitor)** - competitor price changes, diffed.
- **[Review Scraper](https://apify.com/data_foundry/review-scraper)** - reviews across 11 sources.

### FAQ

**Do I need Shopify credentials?** No. Public storefront data only.

**Can it scrape checkout or customer data?** No, and it never tries - only public catalogue resources.

**Why are some products missing?** Hidden or draft products are not public; the storefront does not expose them.

### Changelog

- **0.11** - working collection filters, pages-only runs, complete variant/image/collection lists, safer fetching, clearer output docs.
- **0.9** - related actors, store copy.
- **0.8** - variants, menus and policies.
- **0.1** - First release.

# Actor input Schema

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

Shopify storefronts to scrape. Accept a bare domain ('kith.com'), a full URL ('https://kith.com'), or a collection URL ('https://kith.com/collections/sale' - scrapes that collection only).

## `resources` (type: `array`):

What to extract. 'products' goes to the default dataset; the rest land in separate named datasets (collections, pages, articles, menu, policies). Pick several at once.

## `menuHandles` (type: `array`):

Shopify navigation menus to export when 'menu' is selected. 'main-menu' is the standard desktop menu; 'footer' is common too.

## `collectionHandles` (type: `array`):

Restrict scraping to these collections on every store, e.g. 'new-arrivals', 'sale'. Leave empty to scrape the full catalog. Each product gets a 'collections' field listing the collections it appeared in.

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

Hard cap per store. 0 means no cap (the whole catalog).

## `includeVariants` (type: `boolean`):

Include the full variant list (size, colour, SKU, per-variant price and stock flag) for every product.

## `includeDescription` (type: `boolean`):

Include the product description as both raw HTML and plain text. Turn off for smaller, faster output.

## `requestDelay` (type: `number`):

Pause between page requests. The default keeps you under Cloudflare's radar - lowering it makes the run faster and the blocks more frequent.

## `storeTimeoutSecs` (type: `integer`):

Give up on a store after this long and move on to the next one. Keeps a single slow or hostile storefront from eating the whole run.

## `concurrency` (type: `integer`):

How many storefronts to crawl at once. 2 is a good default; raise it only if you have memory headroom, because each store that hits a bot challenge opens its own browser context.

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

Residential proxies are selected by default: a fresh IP is what clears a persistent block, and most large storefronts sit behind Cloudflare. For small shops, Apify datacenter proxies cut cost considerably.

## Actor input object example

```json
{
  "storeUrls": [
    "https://www.allbirds.com"
  ],
  "resources": [
    "products"
  ],
  "menuHandles": [
    "main-menu"
  ],
  "maxProductsPerStore": 1000,
  "includeVariants": true,
  "includeDescription": true,
  "requestDelay": 0.6,
  "storeTimeoutSecs": 900,
  "concurrency": 2,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

One record per product: price, variants, SKUs, stock flags, images, descriptions, tags, collection membership.

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

Per-store counts, shop name, errors and duration.

# 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"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("data_foundry/shopify-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 = {
    "storeUrls": ["https://www.allbirds.com"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("data_foundry/shopify-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 '{
  "storeUrls": [
    "https://www.allbirds.com"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call data_foundry/shopify-scraper --silent --output-dataset

```

## MCP server setup

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