# Shopify Products Scraper: Prices, Variants, Stock & Images (`kleb-data/shopify-products-scraper`) Actor

Products of any Shopify store or collection from the store's own public products.json feed: prices, variants, availability, images, tags. One row per product or per variant. No browser, no proxy; respects robots.txt.

- **URL**: https://apify.com/kleb-data/shopify-products-scraper.md
- **Developed by:** [Kleb Data](https://apify.com/kleb-data) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 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

## Shopify Products Scraper: Prices, Variants, Stock & Images (products.json)

Products of any Shopify store or collection, read from the storefront's own public JSON feed (`/products.json`). You get prices, variants, availability, images, tags and descriptions in one flat schema, as one row per product or one row per variant. No browser and no proxy: the actor sends plain requests with an honest user-agent, reads `robots.txt` first and pauses between pages.

### What you can do with it

- Monitor competitor prices and discounts (`priceMin`, `priceMax`, `compareAtPriceMax`, `onSale`) on a schedule
- Export a full catalog, or one collection, to CSV, Excel or JSON
- Find new or changed products since your last run (set **Updated on or after**)
- Check which products and variants are in stock (`available`)
- Filter by title keywords, product type, vendor or tag so you only get the products you need

### Input

| Field | Meaning |
|---|---|
| `stores` | Store URLs or domains (`https://www.allbirds.com`, `allbirds.com`) for the whole catalog, or collection URLs (`https://www.gymshark.com/collections/all`) for one collection |
| `maxProductsPerStore` | Limit per store or collection, after filtering (default 1000) |
| `oneRowPer` | `product` (default; variants nested) or `variant` (one item per variant) |
| `titleKeywords` | Keep products whose title contains any keyword |
| `productTypes`, `vendors`, `tags` | Keep products matching any of the given values (case-insensitive, whole value) |
| `inStockOnly` | Only products with at least one available variant; in variant mode, only available variants |
| `updatedAfter` | ISO date; products last updated before it are skipped |
| `includeDescription` | Plain-text description on each item (default on) |
| `respectRobotsTxt` | Skip a store whose `robots.txt` disallows the feed (default on) |
| `concurrency` | Stores read in parallel (default 3, max 10); pages of one store are always read one at a time |

### Output (one item per product)

```json
{
  "store": "www.allbirds.com",
  "shopName": "Allbirds",
  "currency": "USD",
  "productId": 7093452013648,
  "title": "Men's Wool Runner - Natural Black",
  "handle": "mens-wool-runners-natural-black",
  "url": "https://www.allbirds.com/products/mens-wool-runners-natural-black",
  "vendor": "Allbirds",
  "productType": "Shoes",
  "tags": ["gender::mens", "material::wool"],
  "publishedAt": "2024-03-12T16:00:05.000Z",
  "createdAt": "2024-03-01T19:22:41.000Z",
  "updatedAt": "2026-11-18T14:31:17.000Z",
  "priceMin": 98,
  "priceMax": 98,
  "compareAtPriceMax": null,
  "onSale": false,
  "available": true,
  "variantCount": 2,
  "options": [{ "name": "Size", "values": ["8", "9"] }],
  "images": ["https://cdn.shopify.com/s/files/1/1104/4168/files/WR3MNBK_SHOE_LEFT.png?v=1709320964"],
  "image": "https://cdn.shopify.com/s/files/1/1104/4168/files/WR3MNBK_SHOE_LEFT.png?v=1709320964",
  "description": "Our original sneaker, made with ZQ Merino wool ...",
  "variants": [
    {
      "variantId": 40872615772240,
      "title": "8",
      "sku": "WR3MNBK080",
      "price": 98,
      "compareAtPrice": null,
      "available": true,
      "option1": "8",
      "option2": null,
      "option3": null,
      "grams": 680,
      "requiresShipping": true
    }
  ],
  "error": null
}
```

With `oneRowPer: "variant"` each item is one variant: the product fields above (without the `variants` array) plus `variantId`, `variantTitle`, `sku`, `price`, `compareAtPrice`, `available`, `option1`-`option3`, `grams`, `requiresShipping` and `variantUrl` (`https://<store>/products/<handle>?variant=<id>`). In this mode `available` is the variant's own availability, and `title` stays the product title.

A store that cannot be read returns one item with `store`, `url` and an `error` text instead of products.

### Notes

- It works only for Shopify stores that leave the public `products.json` feed on. If a store has turned the feed off, is password-protected, blocks the request or is not on Shopify, you get one `error` item for it and nothing else. The actor does not try to get around that.
- Stock quantity numbers are not in the feed. Only `available` true/false per variant is published.
- The feed returns at most 250 products per page. The actor pages through with a pause of about half a second between pages; on HTTP 429 or 5xx it waits (following `Retry-After`) and tries up to 3 times, then stops that store with an `error` item. Products already returned stay in the dataset.
- `currency` and `shopName` come from the store's `/meta.json`. When that file is not available they are `null`; prices are then in the store's default currency.
- Prices are numbers in the store's currency. `onSale` is true when any variant has a compare-at price above its price.
- Filters run after download, so a narrow filter on a large catalog still reads every page.
- With `respectRobotsTxt` on, a store is skipped when its `robots.txt` disallows the feed path (or the whole site) for all crawlers, or when `robots.txt` answers with a server error.

### Pricing

Pay per event: $0.50 per 1,000 products, platform usage included.

# Actor input Schema

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

Shopify store URLs or domains (https://www.allbirds.com, allbirds.com) for the whole catalog, or collection URLs (https://www.gymshark.com/collections/all) for one collection.

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

Upper limit per store or collection after filtering.

## `oneRowPer` (type: `string`):

'product' returns one item per product with a nested variants array. 'variant' returns one item per variant with the product fields repeated.

## `titleKeywords` (type: `array`):

Keep products whose title contains any of these (case-insensitive). Empty keeps all.

## `productTypes` (type: `array`):

Keep products whose product type equals any of these (case-insensitive). Empty keeps all.

## `vendors` (type: `array`):

Keep products whose vendor equals any of these (case-insensitive). Empty keeps all.

## `tags` (type: `array`):

Keep products that carry any of these tags (case-insensitive). Empty keeps all.

## `inStockOnly` (type: `boolean`):

Keep only products with at least one available variant. In variant mode, unavailable variants are dropped too.

## `updatedAfter` (type: `string`):

ISO date. Keeps products whose updated_at is on or after this date. Use it to find new or changed products.

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

Adds the plain-text product description (from body_html) to each item.

## `respectRobotsTxt` (type: `boolean`):

Read each store's robots.txt first and skip the store if the products.json feed is disallowed.

## `concurrency` (type: `integer`):

How many stores are read at the same time. Pages of one store are always read one after another with a pause.

## Actor input object example

```json
{
  "stores": [
    "https://www.allbirds.com",
    "https://www.gymshark.com/collections/all"
  ],
  "maxProductsPerStore": 1000,
  "oneRowPer": "product",
  "inStockOnly": false,
  "includeDescription": true,
  "respectRobotsTxt": true,
  "concurrency": 3
}
```

# 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 = {
    "stores": [
        "https://www.allbirds.com",
        "https://www.gymshark.com/collections/all"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kleb-data/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 = { "stores": [
        "https://www.allbirds.com",
        "https://www.gymshark.com/collections/all",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("kleb-data/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 '{
  "stores": [
    "https://www.allbirds.com",
    "https://www.gymshark.com/collections/all"
  ]
}' |
apify call kleb-data/shopify-products-scraper --silent --output-dataset

```

## MCP server setup

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