# Shopify Products Scraper — Prices and Variants (`viktorov_aa/shopify-products`) Actor

Export products from any public Shopify store or collection: prices, compare-at prices, variant stock, SKUs, images and tags. No browser or API key.

- **URL**: https://apify.com/viktorov_aa/shopify-products.md
- **Developed by:** [Andrey Viktorov](https://apify.com/viktorov_aa) (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.80 / 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.

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

### What this Actor does

Shopify Products reads the public storefront JSON that Shopify stores expose at `/products.json` and `/collections/<handle>/products.json`. Paste a store URL or a collection URL. Each product is one row: title, handle, vendor, type, tags, currency when `meta.json` returns it, minimum and maximum variant price, the highest compare-at price, an on-sale flag, whether any variant is available, option names, images, created/published/updated times, and the variant rows (price, compare-at price, SKU, options, availability, grams).

A collection URL limits the export to that collection. `/collections/all`, or a bare store URL, walks the catalog. Filters for keywords, in-stock only, and a price band run before the row is stored. Descriptions are off by default so a large catalog stays compact; turn them on for plain text converted from the product HTML.

The Actor does not use a browser and does not need a Shopify API key. It only sees products the store has left on the public JSON feed. Stores that disable that feed, or that password-protect the shop, return an error row.

### Who it is for

- Merchants comparing a competitor's public prices and compare-at prices.
- Catalog and feed teams who need SKUs, options and image URLs from a Shopify shop.
- Analysts tracking which variants are marked available.
- Agencies onboarding a store who want a first export without Storefront API credentials.

### Use cases

- A price list for one brand: title, `priceMin`, `priceMax`, `compareAtPriceMax`, URL.
- Only in-stock products, with `onlyAvailable`.
- A single collection, by passing the collection URL instead of the homepage.
- Keyword match on title, vendor, type or tags (for example "wool").
- Variant-level SKUs for a reconciliation against another catalog. Availability here is Shopify's boolean, not a warehouse quantity.

### Input parameters

| Parameter | Type | Default | What it does |
| --- | --- | --- | --- |
| `startUrls` | array of strings | `https://www.colourpop.com` | Store or collection URLs |
| `keywords` | array of strings | empty | Match title, vendor, type or tags. Empty keeps all |
| `onlyAvailable` | boolean | `false` | At least one available variant |
| `minPrice` | integer or null | null | Highest variant price must be at least this. Null means no minimum |
| `maxPrice` | integer or null | null | Lowest variant price must be at most this. Null means no maximum. `0` keeps only zero-priced products |
| `includeVariants` | boolean | `true` | Per-variant price, SKU, options, availability |
| `includeDescription` | boolean | `false` | Plain-text body |
| `maxProductsPerStore` | integer | `1000` (form example `20`) | Cap after filters. 250 products per request |
| `delaySeconds` | string | `0.5` | Pause between pages |
| `maxConcurrency` | integer | `3` | Stores fetched in parallel |
| `proxyConfiguration` | proxy object | proxy off | Turn on if a store blocks cloud IPs |

```json
{
  "startUrls": ["https://www.colourpop.com"],
  "maxProductsPerStore": 20,
  "includeVariants": true,
  "includeDescription": false,
  "delaySeconds": "0.5"
}
```

### Example output

First product of the Allbirds collection `all-products-1` on the 2026-11-19 live check. The store name from `meta.json` was Allbirds US and the currency was USD. Description is off in the form example, so this row has no description. Variant ids and image URLs were not copied into the log.

```json
{
  "store": "https://allbirds.com",
  "storeName": "Allbirds US",
  "collection": "all-products-1",
  "title": "Free Returns Coverage",
  "currency": "USD",
  "priceMin": 0.8,
  "variantsCount": 2,
  "status": "ok"
}
```

`onSale` is true when any variant's compare-at price is above its price. `available` is true when any variant is available, and null when the product has no variants. The overview table shows store, title, vendor, prices, currency, availability and URL.

### Limitations

- Public `products.json` only. Password pages, headless storefronts that disable the feed, and non-Shopify sites return `status: "error"`.
- Shopify serves at most 250 products per page and, on many shops, stops the public feed well before a private Admin API would. `maxProductsPerStore` cannot see products the feed does not list. A page shorter than 250 is not treated as the last page: Oh Polly returned 249 products and still had a full next page. The next page is requested until it is empty or repeats ids already stored.
- Availability is a boolean. Inventory quantities, barcodes and warehouse locations are not in this feed.
- Prices are numbers in the store's currency. `currency` comes from `meta.json` and is null when that file is missing.
- Compare-at price is omitted by Shopify when a variant is not on sale. `compareAtPriceMax` is then null if no variant has one.
- HTML descriptions are converted to plain text. Formatting, tables and embedded videos are dropped.
- A keyword filter is a case-insensitive substring on title, vendor, type and tags, not a Shopify search query.
- Product copy and images belong to the merchant. Check the store's terms before you republish them.

### Proxy

Most public feeds answer without a proxy, so it is off by default. A pause of `0.5` seconds between pages, plus a wait on HTTP 429 (Retry-After, capped at 10 seconds, then a retry), is the normal way through Shopify's per-IP throttle. If a large store returns 403 or an empty challenge page from a cloud IP, turn on Apify Proxy and retry that store. Datacenter proxy is the right first step; residential is only useful when datacenter IPs are blocked. One blocked store does not cancel the other stores in the same run.

### FAQ

#### Do I need a Shopify API password or a login?

No. It uses the public storefront JSON. Stores that have turned that JSON off cannot be read this way. The actor does not enter a storefront password.

#### What are the limits?

Shopify serves at most 250 products per page. The form example stops at 20. An omitted `maxProductsPerStore` uses 1000. A page shorter than 250 is not the end of the catalog: Oh Polly's first page had 249 products and the next page had 250 more.

#### What did the live check miss?

On 2026-11-19, 10 of 10 public storefronts returned products with a title, a numeric price and variants, and no repeated ids, from a datacenter IP with proxy off. `productType` is empty on some products because the shop left it empty. Three of 4,560 products had no image. `https://allbirds.com/collections/womens-accessories` returned an empty product list even though `collections.json` said 28 products; the actor does not invent the missing ones. mejuri.com, skims.com and several others answered 404 on `/products.json`. bombas.com returned HTTP 429 with a challenge, and sezane.com returned HTTP 403. Proxy was off.

#### What is the difference between a store URL and a collection URL?

A store URL walks `/products.json`. A URL with `/collections/<handle>` walks that collection's product feed. `/collections/all` is treated as the whole store.

#### Why is `available` true when one size is sold out?

`available` is true if any variant is available. The sold-out size is still in `variants` with `available: false`, and `variantsAvailable` counts the ones that can be bought.

#### Can I keep only products under a price?

Set `maxPrice`. A product is kept when its cheapest variant is at or below that number. `minPrice` does the opposite using the most expensive variant, so a product that spans the boundary can match both. Null on either field means no bound. `maxPrice` of `0` keeps only products priced at zero.

#### How is the Actor priced?

The Actor uses pay-per-event pricing with the event **`product`**: one charge for each stored product. Error rows for stores that are not Shopify are not charged by the Actor. The price and the Apify platform fee are shown on the Pricing tab. Use the input limits and your Apify spending limit to keep a run within budget.

# Actor input Schema

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

Store URLs (https://www.colourpop.com) or collection URLs (https://allbirds.com/collections/all-products-1). A /collections/all URL reads the whole store. The form example is ColourPop, a public Shopify feed that returned products with no API password and no proxy.

## `keywords` (type: `array`):

Keep products whose title, vendor, type or tags contain any of these words. Empty keeps every product.

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

Keep products with at least one variant marked available.

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

Keep products whose highest variant price is at least this amount, in the store currency. Leave empty for no minimum. Decimals are allowed, for example 0.8.

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

Keep products whose lowest variant price is at most this amount, in the store currency. Leave empty for no maximum. 0 keeps only products priced at zero. Decimals are allowed.

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

Add each variant's price, compare-at price, SKU, options and availability.

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

Add the plain-text product description. Off by default to keep rows smaller.

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

Cap after filters. Shopify serves 250 products per request. The prefill is 20 so the example stays small; the default when omitted is 1000.

## `delaySeconds` (type: `string`):

Pause between product pages. Shopify throttles bursts from one IP. On HTTP 429 the Actor also waits for Retry-After, up to 10 seconds, and retries.

## `maxConcurrency` (type: `integer`):

How many stores to fetch at the same time.

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

Most stores answer without a proxy. Some large stores block cloud IPs; then turn on Apify Proxy.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.colourpop.com"
  ],
  "keywords": [],
  "onlyAvailable": false,
  "minPrice": null,
  "maxPrice": null,
  "includeVariants": true,
  "includeDescription": false,
  "maxProductsPerStore": 20,
  "delaySeconds": "0.5",
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Default dataset in the overview table: store, title, prices, availability and link.

# 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": [
        "https://www.colourpop.com"
    ],
    "keywords": [],
    "onlyAvailable": false,
    "includeVariants": true,
    "includeDescription": false,
    "maxProductsPerStore": 20,
    "delaySeconds": "0.5",
    "maxConcurrency": 3,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("viktorov_aa/shopify-products").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": ["https://www.colourpop.com"],
    "keywords": [],
    "onlyAvailable": False,
    "includeVariants": True,
    "includeDescription": False,
    "maxProductsPerStore": 20,
    "delaySeconds": "0.5",
    "maxConcurrency": 3,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("viktorov_aa/shopify-products").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": [
    "https://www.colourpop.com"
  ],
  "keywords": [],
  "onlyAvailable": false,
  "includeVariants": true,
  "includeDescription": false,
  "maxProductsPerStore": 20,
  "delaySeconds": "0.5",
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call viktorov_aa/shopify-products --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,viktorov_aa/shopify-products"
        }
    }
}
```

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/KXP0yJfKi6ZXlQUox/builds/H0CP8SSBOAGfyLpRn/openapi.json
