# Shopify Product Scraper (`vujofix/shopify-product-scraper`) Actor

- **URL**: https://apify.com/vujofix/shopify-product-scraper.md
- **Developed by:** [Oleksii Tereshchenko](https://apify.com/vujofix) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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/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 Product & Catalog Spy Scraper

> 🛍️ **Extract full product catalogs, variants, pricing, discounts, stock status, SKUs, high-res images, and tags from ANY Shopify store. Ultra-fast native API extraction.**

***

### 🚀 Why Use This Actor?

There are over **4.5 million active Shopify stores** worldwide. Whether you are an e-commerce brand, a dropshipper, a market researcher, or building a price intelligence tool, scraping Shopify stores shouldn't be slow or blocked by browser captchas.

**Shopify Product & Catalog Spy Scraper** connects directly to the native Shopify catalog endpoints:

- ⚡ **Lightning Fast (100+ Products / sec)**: Uses direct JSON pagination (`/products.json?limit=250&page=N`) instead of heavy, slow headless browsers.
- 💰 **Price & Discount Intelligence**: Automatically calculates lowest price, highest price, compare-at price (MSRP/old price), and discount status (`isOnSale: true`).
- 📦 **Deep Variant Breakdown**: Captures every variant with individual SKUs, prices, titles (e.g. `Black / L`), and real-time stock availability.
- 📸 **High-Resolution Images**: Exports full CDNs of high-res product photos ready for catalog import.
- 🎯 **Domain or Collection Targeting**: Scrape an entire store or target a specific category URL (e.g. `/collections/sneakers`).
- 🔍 **Keyword & Stock Filtering**: Filter products by keyword (`hoodie`, `shoes`, `leather`) or only export in-stock products.

***

### 🎯 Use Cases

- **Dropshipping & Product Research**: Find winning products, trending tags, and profitable price margins.
- **Competitor Price Monitoring**: Track when competitors discount items or change their pricing strategy.
- **Catalog Migration & Backup**: Export product data with images and variants to CSV/JSON to import into WooCommerce, Amazon, or another Shopify store.
- **Inventory Tracking**: Monitor stock availability across popular apparel, electronics, and DTC brands.

***

### 📥 Input Parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `startUrls` | Array | `["https://gymshark.com"]` | Shopify store homepages or collection URLs to scrape. |
| `maxProducts` | Integer | `100` | Maximum number of products to export per store (up to `5000`). |
| `includeVariants` | Boolean | `true` | Extract full variant data (SKU, individual prices, stock). |
| `onlyInStock` | Boolean | `false` | Only export products that have at least one variant available. |
| `searchKeyword` | String | `""` | Optional keyword to filter products by title, vendor, tags, or type. |

#### Example Input JSON:

```json
{
  "startUrls": [
    { "url": "https://gymshark.com/collections/hoodies-jackets" }
  ],
  "maxProducts": 200,
  "includeVariants": true,
  "onlyInStock": true,
  "searchKeyword": "black"
}
```

***

### 📤 Output Dataset Format

Each item in the dataset provides complete e-commerce product intelligence:

```json
{
  "storeUrl": "https://gymshark.com",
  "productId": 6805093875914,
  "title": "Gymshark Everyday Holdall Medium - Black",
  "handle": "gymshark-medium-everyday-holdall-black-ss23",
  "url": "https://gymshark.com/products/gymshark-medium-everyday-holdall-black-ss23",
  "vendor": "Gymshark",
  "productType": "Bags",
  "tags": ["accessories", "bags", "black-staples"],
  "minPrice": 54.0,
  "maxPrice": 54.0,
  "compareAtPrice": 60.0,
  "isOnSale": true,
  "isAvailable": true,
  "variantsCount": 1,
  "variants": [
    {
      "id": 39787826708682,
      "title": "One Size",
      "price": 54.0,
      "compareAtPrice": 60.0,
      "sku": "GS-BAG-BLK",
      "available": true
    }
  ],
  "images": [
    "https://cdn.shopify.com/s/files/1/0156/6146/files/images-EverydayHoldallMBlack.jpg"
  ],
  "publishedAt": "2026-09-16",
  "scrapedAt": "2026-09-17T15:29:32.839Z"
}
```

***

### 🐍 Python Integration

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

## Run the Actor
run = client.actor("vujofix/shopify-product-scraper").call(run_input={
    "startUrls": [{"url": "https://allbirds.com"}],
    "maxProducts": 150,
    "onlyInStock": True
})

## Iterate over extracted products
for product in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"{product['title']} - ${product['minPrice']} (Variants: {product['variantsCount']})")
```

***

### 💰 Pricing

- **Pay-Per-Event**: **$3.00 / 1,000 products**
- Scraping 500 products costs only **$1.50**, saving hours of manual data entry and scraper maintenance.

***

### 🛡️ License

Apache-2.0

# Actor input Schema

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

URLs of any Shopify store (e.g. https://gymshark.com or https://example.myshopify.com/collections/all).

## `maxProducts` (type: `integer`):

Maximum number of products to extract from each target store.

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

Extract individual variant data including SKU, individual variant prices, compare-at prices, and stock availability.

## `onlyInStock` (type: `boolean`):

Only export products that have at least one variant currently available for purchase.

## `searchKeyword` (type: `string`):

Optional keyword to filter products by title, vendor, product type, or tags (e.g. 'hoodie', 'shoes', 'black').

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://gymshark.com"
    }
  ],
  "maxProducts": 100,
  "includeVariants": true,
  "onlyInStock": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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://gymshark.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("vujofix/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://gymshark.com" }] }

# Run the Actor and wait for it to finish
run = client.actor("vujofix/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://gymshark.com"
    }
  ]
}' |
apify call vujofix/shopify-product-scraper --silent --output-dataset

```

## MCP server setup

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