# Lightning Fast Shopify Store Scraper (`tyegen/universal-shopify-extractor`) Actor

Extract all products, prices, variants, and images from any Shopify store in seconds using the hidden JSON API. No HTML parsing, 100x faster than competitors.

- **URL**: https://apify.com/tyegen/universal-shopify-extractor.md
- **Developed by:** [Tan Yegen](https://apify.com/tyegen) (community)
- **Categories:** E-commerce, SEO tools, Social media
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN 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.

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

## ⚡ Universal Shopify Store Extractor

### 🤖 Copy to your AI assistant
Copy this block into ChatGPT, Claude, Cursor, or any LLM to start using this actor.

```text
tyegen/universal-shopify-extractor on Apify. Call: ApifyClient("TOKEN").actor("tyegen/universal-shopify-extractor").call(run_input={"startUrls": ["URL_HERE"]}), then client.dataset(run["defaultDatasetId"]).list_items().items for results.
````

The absolute fastest, cheapest, and most comprehensive way to extract product catalogs from *any* Shopify store.

### 🚀 Why this Actor is a Game Changer?

Most Shopify scrapers load the actual website using heavy browsers (Playwright/Puppeteer), find the HTML elements, and parse the text. This old-school method is slow, easily blocked by Datadome or Cloudflare, misses hidden data, and costs you a lot of Compute Units.

**This actor is different.**
It targets the public, lightweight JSON endpoints (`/products.json`) native to the Shopify backend architecture.

#### ✨ Key Advantages

- **Lightning Fast:** Extracts up to **250 products per second**. You can scrape an entire store catalog in the blink of an eye.
- **Zero Blocks:** Bypasses visual captchas and bot protections completely because it reads pure JSON API data instead of rendering HTML.
- **Cost Effective:** Because it uses simple API calls, it costs almost $0.00 to run in Compute Units.
- **Incredibly Rich Data:** Gets data you can't even see on the frontend, such as backend SKUs, precise `published_at` timestamps, hidden variants, exact inventory availability flags, and raw `compare_at_price` values.
- **Smart Error Handling:** Automatically detects if a store is password-protected or not running on Shopify, skipping it gracefully without crashing your run.

### 🎯 Top Use Cases

- **Dropshipping Automation:** Clone product lists, images, and descriptions from your suppliers to your own store instantly.
- **Competitor Price Monitoring:** Track exactly when competitors drop their prices or run sales by monitoring the `compare_at_price` field.
- **Market Research:** Analyze the catalog size, product types, and naming conventions of top Shopify brands (like Gymshark, Kylie Cosmetics, Allbirds).
- **Inventory Tracking:** Monitor if specific size/color variants go out of stock (`available` flag).

### 💰 Pricing & ROI

**Pay-Per-Result:** Only **$1.00 per 1,000 products**.
Since you get complete catalogs (including all variants, SKUs, and HD images) in a fraction of a second, this is the most profitable and reliable tool for E-Commerce researchers and dropshippers.

***

### 📥 Input Configuration

| Field | Type | Description |
| ----- | ---- | ----------- |
| `startUrls` | Array | Add one or more Shopify store base URLs (e.g., `https://kyliecosmetics.com` or `https://gymshark.com`). |
| `maxProductsPerStore` | Integer | (Optional) Limit the number of products to extract per store. Leave empty to extract the entire catalog. |
| `proxyConfiguration` | Object | Apify proxy settings. Standard Datacenter proxies are more than enough. |

***

### 📤 Output Schema

For each product, the actor will produce a highly detailed JSON object containing all its variants and images.

| Field | Type | Description |
| ----- | ---- | ----------- |
| `storeUrl` | String | The base URL of the targeted store. |
| `productId` | Number | The internal backend ID of the product in Shopify. |
| `title` | String | The name of the product. |
| `handle` | String | The URL-friendly slug of the product. |
| `vendor` | String | The brand or vendor name. |
| `productType` | String | The category or type of the product. |
| `description` | String | HTML-stripped, clean text description of the product. |
| `price` | Number | The lowest current active price among all variants. |
| `compareAtPrice` | Number | The original/discounted price (useful to calculate sale percentages). |
| `productUrl` | String | The direct URL to the product page. |
| `images` | Array | A list of all high-resolution image URLs for the product. |
| `variantsCount` | Number | Total number of variants (colors, sizes, etc.). |
| `variants` | Array | Detailed list of variants (contains `id`, `title`, `price`, `sku`, and `available` status). |
| `publishedAt` | String | The exact timestamp the product was published. |
| `scrapedAt` | String | Timestamp of extraction. |

#### 💡 Output Example

```json
{
  "storeUrl": "https://kyliecosmetics.com",
  "productId": 8585766404338,
  "title": "Matte Lip Kit",
  "handle": "matte-lip-kit",
  "vendor": "Kylie Cosmetics",
  "productType": "Lips",
  "description": "Create the perfect matte lip with this long-lasting, smudge-proof formula...",
  "price": 32.00,
  "compareAtPrice": 35.00,
  "productUrl": "https://kyliecosmetics.com/products/matte-lip-kit",
  "images": [
    "https://cdn.shopify.com/s/files/.../image1.jpg",
    "https://cdn.shopify.com/s/files/.../image2.jpg"
  ],
  "variantsCount": 3,
  "variants": [
    {
      "id": 46820892049650,
      "title": "Koko K",
      "price": 32.00,
      "sku": "KC-LIP-KOKO",
      "available": true
    },
    {
      "id": 46820892049651,
      "title": "Mary Jo K",
      "price": 32.00,
      "sku": "KC-LIP-MARY",
      "available": false
    }
  ],
  "publishedAt": "2026-04-26T23:37:26-07:00",
  "scrapedAt": "2026-04-30T18:00:00.000Z"
}
```

# Actor input Schema

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

Add one or more Shopify store URLs (e.g., https://kyliecosmetics.com).

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

Maximum number of products to extract per store. Leave empty to extract all.

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

Proxy settings. Datacenter proxies are more than enough for this.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://kyliecosmetics.com"
    }
  ],
  "maxProductsPerStore": 1000,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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://kyliecosmetics.com"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tyegen/universal-shopify-extractor").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://kyliecosmetics.com" }],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("tyegen/universal-shopify-extractor").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 '{
  "startUrls": [
    {
      "url": "https://kyliecosmetics.com"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call tyegen/universal-shopify-extractor --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Lightning Fast Shopify Store Scraper",
        "description": "Extract all products, prices, variants, and images from any Shopify store in seconds using the hidden JSON API. No HTML parsing, 100x faster than competitors.",
        "version": "1.0",
        "x-build-id": "rRyxkg3caiMgjZnPO"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/tyegen~universal-shopify-extractor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-tyegen-universal-shopify-extractor",
                "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/tyegen~universal-shopify-extractor/runs": {
            "post": {
                "operationId": "runs-sync-tyegen-universal-shopify-extractor",
                "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/tyegen~universal-shopify-extractor/run-sync": {
            "post": {
                "operationId": "run-sync-tyegen-universal-shopify-extractor",
                "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",
                "required": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "Shopify Store URLs",
                        "type": "array",
                        "description": "Add one or more Shopify store URLs (e.g., https://kyliecosmetics.com).",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "maxProductsPerStore": {
                        "title": "Max Products Per Store",
                        "type": "integer",
                        "description": "Maximum number of products to extract per store. Leave empty to extract all.",
                        "default": 1000
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings. Datacenter proxies are more than enough for this."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
