# Shopify Catalog Scraper - Products, Prices & Stock (`captainhandsome/shopify-catalog-prices-scraper`) Actor

Scrape the full product catalog of any public Shopify store with no API key: titles, product URLs, vendors, variants, SKUs, prices, compare-at prices, stock status, options, tags, images and timestamps. Enter store domains, collection URLs or single product URLs. One row per product, or one row per

- **URL**: https://apify.com/captainhandsome/shopify-catalog-prices-scraper.md
- **Developed by:** [Joseph McRell](https://apify.com/captainhandsome) (community)
- **Categories:** E-commerce, Developer tools
- **Features:** 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.

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 — prices, variants & stock

Scrape the catalog of any **public Shopify store** using the store's own public
`/products.json` endpoint. No API key, no login, no browser required — so runs are fast,
reliable and cheap.

### What you get

Enter one or more stores and get one row per product (or one row per variant):

| Field | Meaning |
| --- | --- |
| `store`, `storeDomain` | The input you gave and the resolved domain |
| `productId`, `handle`, `url` | Product identity and public product page URL |
| `title`, `vendor`, `productType`, `tags` | Merchandising data |
| `collection` | Collection handle when you scraped a collection URL |
| `minPrice`, `maxPrice`, `compareAtMax` | Price range across variants (store currency) |
| `available`, `variantCount`, `availableVariantCount` | Stock summary |
| `skus` | All non-empty SKUs of the product |
| `options` | Option names and values (Size, Color, …) |
| `variants[]` | Variant ID, SKU, price, compare-at price, availability, options, weight, updated date |
| `images[]` | Up to 5 image URLs |
| `publishedAt`, `createdAt`, `updatedAt`, `scrapedAt` | Timestamps |
| `descriptionHtml`, `descriptionText` | Only when "Include description" is on |

Enable **One row per variant** to get SKU-level rows: perfect for price monitoring,
inventory checks and spreadsheets.

### Input examples

Whole store, first 500 products:

```json
{ "stores": ["gymshark.com"], "maxProductsPerStore": 500 }
```

One collection, only in-stock products:

```json
{ "stores": ["https://www.allbirds.com/collections/mens"], "onlyAvailable": true }
```

Several stores, SKU-level rows:

```json
{ "stores": ["allbirds.com", "gymshark.com"], "oneRowPerVariant": true, "maxProductsPerStore": 300 }
```

A single product URL also works: `https://store.com/products/some-handle`.

### Pricing

Pay per result: **$0.001 per product row** (about $1 per 1,000 products), plus a small
per-run start fee. Runs that return nothing are not billed per result.

### Notes and honest limits

- Works with Shopify stores that expose `products.json` (the large majority of public
  stores). A store that has disabled it returns HTTP 404 and is reported in the log; the
  Actor never fakes data.
- Prices are the **store's own currency**. Shopify's public product feed does not state
  the currency, so no currency is invented — check the store if you need to convert.
- Pagination stops at `maxProductsPerStore` (or when the store's feed ends, whichever is
  first). Deep catalogs of 100k+ products should be run with a higher limit.
- The Actor reads only public data; it does not log in, bypass paywalls or use proxies.
- Failures per store are logged with the HTTP status, and the run fails loudly if zero
  rows were produced, so you never pay for a silently empty run.

# Actor input Schema

## `stores` (type: `array`):

Public Shopify stores to scrape. A domain (allbirds.com), a collection URL (https://store.com/collections/sale) or a product URL. Defaults to allbirds.com so a run with no input still returns data.

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

Stop after this many products for each store. Each product is one billed result (each variant is one result when 'One row per variant' is enabled).

## `oneRowPerVariant` (type: `boolean`):

Return one dataset row per variant instead of one per product, for SKU-level price and stock analysis. Each row is billed as one result.

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

Attach a variants array (variant ID, SKU, price, compare-at price, availability, options, weight) to every product row.

## `includeImages` (type: `boolean`):

Attach up to 5 image URLs to every product row.

## `includeDescription` (type: `boolean`):

Attach the product description as HTML and as plain text. Makes the dataset larger.

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

Skip products whose variants are all out of stock.

## Actor input object example

```json
{
  "stores": [
    "allbirds.com"
  ],
  "maxProductsPerStore": 100,
  "oneRowPerVariant": false,
  "includeVariants": true,
  "includeImages": true,
  "includeDescription": false,
  "onlyAvailable": false
}
```

# Actor output Schema

## `products` (type: `string`):

Product catalog rows in the default dataset. One row per product, or one row per variant when 'One row per variant' is enabled.

# 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 = {
    "stores": [
        "allbirds.com"
    ],
    "maxProductsPerStore": 100
};

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

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,captainhandsome/shopify-catalog-prices-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/QuRuupSWNf0fzjBOL/builds/idoQ2geFDLhWzyoPj/openapi.json
