# Shopify Product & Catalog Scraper (Fast HTTP API) (`wyle/shopify-product-scraper`) Actor

Blazing fast HTTP-only scraper for any Shopify store. Extract full product catalogs, variants, pricing, inventory stock status, options, SKUs, and high-res images with zero browser overhead.

- **URL**: https://apify.com/wyle/shopify-product-scraper.md
- **Developed by:** [Willy Lengkong](https://apify.com/wyle) (community)
- **Categories:** E-commerce, Social media
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 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.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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 & Catalog Scraper (Fast HTTP API)

Extract complete product catalogs, collections, single products, variant matrices, pricing, stock levels, options, barcodes, and high-resolution images from **any public Shopify e-commerce store** worldwide.

Built with **pure HTTP requests and TLS fingerprint impersonation (`curl_cffi`)** — **100x faster and 95% cheaper** than headless browser scrapers (Puppeteer/Playwright).

***

### ⚡ Key Features

- **🚀 Ultra-Fast HTTP Engine**: Extracts up to 250 products per HTTP request with zero browser overhead.
- **🛡️ WAF & Cloudflare Bypass**: Emulates modern Chrome TLS and HTTP/2 fingerprints to prevent 403 / 429 blocks.
- **🎯 Universal Shopify Support**: Works seamlessly on standard `.myshopify.com` stores as well as custom domains.
- **🔄 Flexible Target Inputs**:
  - **Full Store Catalogs**: e.g. `https://gymshark.com` or `colourpop.com`
  - **Specific Collections**: e.g. `https://colourpop.com/collections/eyes`
  - **Single Product URLs**: e.g. `https://allbirds.com/products/mens-tree-runners`
  - **Search Queries**: Search across any store using predictive keywords.
- **📊 Nested or Flattened Output**:
  - **Nested Format**: 1 record per product with complete `variants` array and image galleries.
  - **Flattened Format (`flattenVariants`)**: 1 record per SKU/variant with parent product data attached (ideal for Excel / Google Sheets / SQL databases).
- **🔍 Precision Filters**:
  - Filter by minimum/maximum price.
  - In-stock only filter (`inStockOnly`).
  - Plain text and raw HTML descriptions.
- **🤖 AI & MCP Ready**: Defined output schema compatible with Apify Model Context Protocol (MCP) agents.

***

### 📥 Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `startUrls` | Array | `[]` | List of Shopify URLs (store roots, collection pages, or single product pages). |
| `domains` | Array | `[]` | List of store domains (e.g. `["colourpop.com", "allbirds.com"]`). |
| `collections` | Array | `[]` | Specific collection handles to scrape (e.g. `["eyes", "mens-shoes"]`). |
| `searchQueries` | Array | `[]` | Keywords to search across target stores. |
| `maxItems` | Integer | `100` | Maximum items to scrape per target. |
| `maxPages` | Integer | `10` | Maximum pagination pages to fetch (250 products/page). |
| `flattenVariants` | Boolean | `false` | If `true`, outputs 1 row per variant/SKU for tabular analysis. |
| `inStockOnly` | Boolean | `false` | Filter out items that are out of stock. |
| `minPrice` | Number | `null` | Filter products with price $\ge$ `minPrice`. |
| `maxPrice` | Number | `null` | Filter products with price $\le$ `maxPrice`. |
| `includeRawHtml` | Boolean | `false` | Include raw HTML description alongside clean text. |
| `proxyConfiguration` | Object | `{}` | Apify Proxy settings (Datacenter / Residential). |

***

### 📤 Sample Output Data

#### Standard Product (Nested Variants):

```json
{
  "id": 6806925705418,
  "title": "Conditioning Club Tank - Heavy Blue",
  "handle": "gymshark-conditioning-club-tank-blue",
  "url": "https://gymshark.com/products/gymshark-conditioning-club-tank-blue",
  "vendor": "Gymshark",
  "product_type": "Mens > Sleeveless Tops",
  "tags": ["conditioning", "sleeveless", "blue", "summer-2026"],
  "description": "THE HYBRID ATHLETE'S UNIFORM\nLightweight & sweat-wicking to keep you cool under pressure.\nOversized fit.\n100% Recycled Polyester.",
  "min_price": 28.00,
  "max_price": 28.00,
  "compare_at_price": 35.00,
  "is_on_sale": true,
  "discount_percentage": 20.0,
  "is_available": true,
  "variants_count": 5,
  "options": [
    {
      "name": "Size",
      "position": 1,
      "values": ["S", "M", "L", "XL", "XXL"]
    }
  ],
  "variants": [
    {
      "id": 40182391823,
      "title": "M",
      "sku": "A2B4U-UFLJ-M",
      "barcode": "5059523091823",
      "price": 28.00,
      "compare_at_price": 35.00,
      "discount_percentage": 20.0,
      "available": true,
      "weight_grams": 180.0,
      "option1": "M",
      "image_url": "https://cdn.shopify.com/s/files/1/0156/6146/products/tank_blue.jpg"
    }
  ],
  "images": [
    {
      "id": 289381928,
      "src": "https://cdn.shopify.com/s/files/1/0156/6146/products/tank_blue.jpg",
      "width": 1200,
      "height": 1600,
      "alt": "Front view of model wearing blue tank"
    }
  ],
  "featured_image": "https://cdn.shopify.com/s/files/1/0156/6146/products/tank_blue.jpg",
  "published_at": "2026-08-20T10:50:00-07:00",
  "domain": "gymshark.com",
  "store_url": "https://gymshark.com",
  "scraped_at": "2026-08-23T01:20:00.000000+00:00"
}
```

***

### 💡 Practical Use Cases

1. **Competitor Price & Assortment Monitoring**: Track competitors' pricing drops, sales discounts, and new arrivals automatically.
2. **Catalog Aggregation & Dropshipping**: Sync entire supplier catalogs with SKUs, barcodes, and inventory states.
3. **Market Research & Trend Analysis**: Discover top-selling product types, color palettes, and pricing distributions.
4. **AI & RAG Enrichment**: Feed clean product catalogs directly into LLM embeddings and AI shopping advisors.

# Actor input Schema

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

List of Shopify URLs to scrape. Supports store root URLs (e.g., https://gymshark.com), collection URLs (e.g., https://gymshark.com/collections/mens-t-shirts-tops), or single product URLs.

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

List of Shopify domain names or hosts to scrape (e.g. \['colourpop.com', 'allbirds.com', 'kith.com']).

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

Keywords to search across the target store(s) using Shopify's predictive search API.

## `collections` (type: `array`):

Specific collection slugs to scrape for each domain (e.g., \['mens-shoes', 'best-sellers', 'all']).

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

Maximum number of products to scrape per store or collection (default: 100).

## `maxPages` (type: `integer`):

Maximum pagination pages to fetch per target (each page contains up to 250 products).

## `flattenVariants` (type: `boolean`):

If enabled, each variant is saved as a separate item with parent product details attached. Ideal for Excel/CSV export and tabular analysis.

## `inStockOnly` (type: `boolean`):

Only export products or variants that are currently in stock (available = true).

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

Filter products/variants with price greater than or equal to this amount.

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

Filter products/variants with price less than or equal to this amount.

## `includeRawHtml` (type: `boolean`):

Include the raw HTML description in addition to the cleaned plain text description.

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

Apify Proxy configuration. Recommended for high-volume runs or geo-restricted stores.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://colourpop.com/collections/eyes"
    }
  ],
  "domains": [],
  "searchQueries": [],
  "collections": [],
  "maxItems": 100,
  "maxPages": 10,
  "flattenVariants": false,
  "inStockOnly": false,
  "includeRawHtml": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Cleaned list of products and variants scraped from Shopify stores.

# 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://colourpop.com/collections/eyes"
        }
    ],
    "domains": [],
    "searchQueries": [],
    "collections": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("wyle/shopify-product-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://colourpop.com/collections/eyes" }],
    "domains": [],
    "searchQueries": [],
    "collections": [],
}

# Run the Actor and wait for it to finish
run = client.actor("wyle/shopify-product-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://colourpop.com/collections/eyes"
    }
  ],
  "domains": [],
  "searchQueries": [],
  "collections": []
}' |
apify call wyle/shopify-product-scraper --silent --output-dataset

```

## MCP server setup

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