# 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
- **Security:** 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's own endpoints, 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` | id, handle, title, body HTML, vendor, type, tags, variants (price, compare-at, SKU, availability), images, `createdAt` / `updatedAt` |
| `collections` | id, handle, title, description, product count, sort order |
| `pages` | handle, title, body HTML, `publishedAt` |
| `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, variant, collection, page, post or policy.

| 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 | Limit collections to specific handles. |
| `maxProductsPerStore` | integer | Cap products per store. |
| `includeVariants` | boolean | Emit one row per variant instead of nesting them. |
| `includeDescription` | boolean | Include the full product body HTML. |
| `requestDelay` | integer | Milliseconds 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",
  "resource": "products",
  "id": 7991234567890,
  "handle": "mens-wool-runners",
  "title": "Men's Wool Runners",
  "vendor": "Allbirds",
  "type": "Shoes",
  "tags": ["men", "running"],
  "variants": [
    {"sku": "WR-M-08", "price": "98.00", "available": true, "title": "Natural Black / 8"}
  ],
  "images": ["https://cdn.shopify.com/..."],
  "updatedAt": "2026-11-05T11:02:13-05:00"
}
```

### Notes and exceptions

- **No API key needed.** The actor reads the storefront's public product endpoints and GraphQL API, the same ones the shop's own front-end calls.
- **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` changes the row shape** - one row per variant, with the parent product repeated.

### 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.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/khtPPbpZPpW4chTbp/openapi.json
