# Shopify Products Scraper API (`api_harbor/shopify-products-scraper`) Actor

Shopify product API for any store: titles, prices, compare-at prices, variants, SKUs, stock, images, barcodes. Cheapest pay-per-product: $0.50 per 1,000 products, failed items never charged. Callable from any MCP client (Claude, Cursor, ChatGPT).

- **URL**: https://apify.com/api_harbor/shopify-products-scraper.md
- **Developed by:** [Api Harbor](https://apify.com/api_harbor) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.35 / 1,000 products

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

Scrape the full product catalog of any Shopify store: titles, prices, compare-at prices, variants, SKUs, stock status, weights, images, options, tags, vendors, product types and clean text descriptions, with optional barcodes (GTIN, UPC, EAN). Filter by collection, vendor, product type or availability. A Shopify product API from $0.50 per 1,000 products: pay-per-product, failed items never charged, no proxy fees, no login. Callable from AI agents through MCP.

### What does Shopify Products Scraper do?

Give it one or more Shopify stores (`allbirds.com`, any page of the store, or a `myshopify.com` address). The scraper checks that each site runs on Shopify, then returns one row per product with:

- `id`, `title`, `handle`, `url`, `vendor`, `productType`, `tags`
- `createdAt`, `publishedAt`, `updatedAt`
- `description` as plain text (HTML removed), `images`, `options`
- `variants`: `id`, `sku`, `title`, `price`, `compareAtPrice`, `available`, `grams`, plus `barcode` and `inventoryManagement` with **Include barcodes**
- `available`, `minPrice`, `maxPrice`, `currency`
- `store`: domain and name

It reads the whole catalog, 250 products per request, until the last page. A store of 10,000+ products is fine.

### Why use this Shopify scraper?

- **$0.50 per 1,000 products**, each with all its variants. No proxy fees, no compute surprises.
- **Any store, any input.** Domain, product URL, collection URL or `myshopify.com` address: the store is detected and redirects are followed.
- **Clean data.** Prices are numbers, descriptions are plain text, `minPrice` and `maxPrice` are computed for you.
- **Barcodes on demand.** Turn on **Include barcodes** to get GTIN/UPC/EAN codes for product matching.
- **Blocked stores handled.** When a store blocks the request, the scraper retries through residential IPs at no extra cost.
- **Failures are free.** A site that is not on Shopify, a closed catalog or a blocked store returns a row with an `error` field and is never billed.

### Use cases

- **AI shopping agents:** let an assistant browse real products, prices and stock of any Shopify store and answer in plain language.
- **LLM analysis:** feed catalogs to an LLM to compare assortments, positioning or pricing between brands.
- **RAG:** index products with descriptions and prices so a chatbot answers with up-to-date catalog data.
- **Competitor price monitoring:** track prices, discounts (`compareAtPrice`) and stock of competitors every day.
- **Product research and dropshipping:** find best sellers, new arrivals (`publishedAt`) and vendors of any niche store.
- **Catalog migration and product matching:** export a full catalog with SKUs and barcodes to another platform or a PIM.
- **Market research:** count products, types, vendors and price ranges across many stores.

### How much does it cost to scrape Shopify products?

| What | Price |
|---|---|
| Run start | $0.00005 per run |
| Product (all variants included) | $0.50 per 1,000 products |

The free Apify plan's monthly credit covers about 10,000 products.

### How to scrape a Shopify store

1. Click **Try for free**.
2. Add one or more **store URLs**, e.g. `allbirds.com`.
3. Optionally set a collection, vendor, product type, availability filter and a maximum number of products.
4. Click **Start**, then download your data as JSON, CSV, Excel or HTML.

### Use it from AI agents (MCP)

This Actor is a ready-made tool for AI agents through the [Apify MCP server](https://mcp.apify.com). Any MCP client (Claude, Cursor, VS Code, ChatGPT) can call it and get structured JSON back.

- **MCP server URL:** `https://mcp.apify.com/?actors=api_harbor/shopify-products-scraper`
- **Token:** your Apify API token, from Apify Console > Settings > Integrations.

**Claude Desktop** (`claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com/?actors=api_harbor/shopify-products-scraper",
      "headers": { "Authorization": "Bearer <APIFY_TOKEN>" }
    }
  }
}
```

**Claude Code:**

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?actors=api_harbor/shopify-products-scraper" --header "Authorization: Bearer <APIFY_TOKEN>"
```

**Cursor** (`.cursor/mcp.json`) or **VS Code** (`.vscode/mcp.json`, use `"servers"` instead of `"mcpServers"`):

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com/?actors=api_harbor/shopify-products-scraper",
      "headers": { "Authorization": "Bearer <APIFY_TOKEN>" }
    }
  }
}
```

Example prompts:

- "List every product of allbirds.com that is in stock, with its price range, as a table."
- "Compare the price ranges of kyliecosmetics.com and another beauty store by product type."
- "Find the products of this store that are on sale (compare-at price above price) and sort them by discount."

### Input

| Field | Description |
|---|---|
| `storeUrls` | Shopify stores: domain, any page URL or `myshopify.com` address |
| `maxProductsPerStore` | Maximum products per store, after filters (default: all) |
| `collection` | Collection handle or URL, e.g. `mens-shoes` |
| `productType` | Product type, e.g. `Shoes` (case-insensitive) |
| `vendor` | Vendor or brand (case-insensitive) |
| `onlyAvailable` | Skip products with no variant in stock |
| `includeVariantDetails` | Add `barcode` and `inventoryManagement` to each variant (one extra request per product) |

```json
{
  "storeUrls": ["allbirds.com"],
  "maxProductsPerStore": 5,
  "onlyAvailable": true,
  "includeVariantDetails": true
}
```

### What you get back

One JSON object per product. A field is empty or `null` when the store does not fill it.

| Field | Type | Description |
|---|---|---|
| `id` | integer | Shopify product ID |
| `title` | string | Product title |
| `handle` | string | URL handle |
| `url` | string | Product page URL |
| `vendor` | string | Vendor (brand) |
| `productType` | string | Product type |
| `tags` | array | Tags |
| `createdAt`, `publishedAt`, `updatedAt` | string | Dates (ISO 8601) |
| `description` | string | Description as plain text |
| `images` | array | Image URLs |
| `options` | array | Options and their values, e.g. Size: 8, 9, 10 |
| `variants` | array | `id`, `sku`, `title`, `price`, `compareAtPrice`, `available`, `grams`, and with Include barcodes `barcode`, `inventoryManagement` |
| `available` | boolean | At least one variant in stock |
| `minPrice`, `maxPrice` | number | Lowest and highest variant price |
| `currency` | string | Store currency |
| `store` | object | Store `domain` and `name` |
| `input`, `error` | string | Only on failed items: the store URL and the reason. Never charged. |

### Output example

Item from a real run with the input above (variants, images and option values shortened):

```json
{
  "id": 7215082405968,
  "title": "Women's Wool Runner NZ - Shadow Blue (Natural White Sole)",
  "handle": "womens-wool-runner-nz-shadow-blue-natural-white-sole",
  "url": "https://www.allbirds.com/products/womens-wool-runner-nz-shadow-blue-natural-white-sole",
  "vendor": "Allbirds",
  "productType": "",
  "tags": [
    "11/3/26 DROP",
    "allbirds::cfId => color-edf97af257c1e36d936a28375fac5f9c",
    "allbirds::hue => blue",
    "allbirds::master => womens-wool-runner-nz",
    "DNAM BRANDS",
    "Onsite @ WC 5.26.26",
    "TCNU5311340 (PL 553883057178)"
  ],
  "createdAt": "2025-08-27T09:16:36-07:00",
  "publishedAt": "2026-11-04T15:32:48-08:00",
  "updatedAt": "2026-11-13T01:32:50-08:00",
  "description": "Rethinking a classic isn’t easy, but breaking new ground rarely is. The Wool Runner NZ manages both, combining the original Wool Runner’s DNA with next-level comfort and more refined styling, while nodding to our New Zealand roots.",
  "images": [
    "https://cdn.shopify.com/s/files/1/1104/4168/files/A12799W-SHADOWBLUE_SIDE_TRANSPARENT.png?v=1793835066",
    "https://cdn.shopify.com/s/files/1/1104/4168/files/A12799W-SHADOWBLUE_HEEL_TRANSPARENT.png?v=1793835066"
  ],
  "options": [
    {
      "name": "Size",
      "values": [
        "5",
        "5.5",
        "6",
        "6.5"
      ]
    }
  ],
  "variants": [
    {
      "id": 41314103427152,
      "sku": "A12799W050",
      "title": "5",
      "price": 120,
      "compareAtPrice": null,
      "available": true,
      "grams": 1000,
      "barcode": "196942323809",
      "inventoryManagement": "shopify"
    },
    {
      "id": 41314103459920,
      "sku": "A12799W055",
      "title": "5.5",
      "price": 120,
      "compareAtPrice": null,
      "available": true,
      "grams": 1000,
      "barcode": "196942323816",
      "inventoryManagement": "shopify"
    }
  ],
  "available": true,
  "minPrice": 120,
  "maxPrice": 120,
  "currency": "USD",
  "store": {
    "domain": "www.allbirds.com",
    "name": "Allbirds"
  }
}
```

### Caching and errors

- **Cache:** identical requests made shortly after each other are served from cache, so repeated calls from an agent come back faster.
- **Structured errors:** a store that cannot be processed returns a row `{"input": "...", "store": {"domain": "..."}, "error": "..."}` instead of failing the whole run. Reasons: not a Shopify store, catalog closed by the store (`/products.json` disabled), collection not found, or blocked even through residential IPs. Rows with an `error` field are delivered but never charged.
- **Barcodes:** if a store rate-limits the extra request of a product, that product is still delivered, without `barcode`.

### FAQ

**Do I need a Shopify account or API key?**
No. The scraper reads the public catalog every Shopify store exposes to its visitors.

**Is it legal to scrape Shopify stores?**
Product listings are public data shown to every visitor. You are responsible for complying with local laws and each store's terms for your use case.

**How do I know if a website is a Shopify store?**
Just add it: the scraper checks it first and returns an `error` row (free) if it is not on Shopify.

**Can I scrape only one collection?**
Yes. Set `collection` to its handle or paste the collection URL.

**Does it get stock levels?**
It gets `available` (in stock or not) per variant. Shopify does not show exact quantities publicly.

**Can I use it from Python or through an API?**
Yes, with the Apify API or the `apify-client` package for Python or JavaScript.

**Can AI agents like Claude, Cursor or ChatGPT use it?**
Yes. Add `https://mcp.apify.com/?actors=api_harbor/shopify-products-scraper` as an MCP server with your Apify token as a Bearer header. The agent can then call the Actor and read the results. See "Use it from AI agents (MCP)" above.

**Can I schedule it or connect it to Make, Zapier or n8n?**
Yes. Use Apify schedules to monitor prices daily, and the Make, Zapier and n8n integrations.

### Related Actors

- [Website Contact Scraper](https://apify.com/api_harbor/website-contact-scraper): emails and phones of the stores you found
- [Website Tech Detector](https://apify.com/api_harbor/website-tech-detector): find which websites run on Shopify, and with which apps

# Actor input Schema

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

Shopify stores to scrape: a domain (allbirds.com), any page URL of the store, or a myshopify.com address.

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

Maximum number of products per store, after filters. Default: the whole catalog.

## `collection` (type: `string`):

Only products of this collection: its handle (mens-shoes) or its URL (https://store.com/collections/mens-shoes).

## `productType` (type: `string`):

Only products of this type, as set by the store, e.g. Shoes. Case-insensitive exact match.

## `vendor` (type: `string`):

Only products of this vendor (brand). Case-insensitive exact match.

## `onlyAvailable` (type: `boolean`):

Skip products with no variant in stock.

## `includeVariantDetails` (type: `boolean`):

Add barcode (GTIN, UPC, EAN) and inventory management to each variant. One extra request per product: slower on big catalogs.

## Actor input object example

```json
{
  "storeUrls": [
    "allbirds.com"
  ],
  "maxProductsPerStore": 100,
  "onlyAvailable": false,
  "includeVariantDetails": 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 = {
    "storeUrls": [
        "allbirds.com"
    ],
    "maxProductsPerStore": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("api_harbor/shopify-products-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": ["allbirds.com"],
    "maxProductsPerStore": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("api_harbor/shopify-products-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": [
    "allbirds.com"
  ],
  "maxProductsPerStore": 100
}' |
apify call api_harbor/shopify-products-scraper --silent --output-dataset

```

## MCP server setup

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