# Shopify Products API: Prices, Stock & Variants (`ailu_studio/shopify-store-products`) Actor

Export public Shopify products, prices and variants. Compare snapshots or detect changes for catalog research and stock-monitoring workflows.

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

## Pricing

from $0.90 / 1,000 product or variant rows

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 API: Prices, Stock & Variants

Export public Shopify products, prices and variants. Compare snapshots or detect changes for catalog research and stock-monitoring workflows.

### Try a small sample

Paste this into the Input JSON editor, run the Actor, then inspect its dataset. Export JSON or CSV from the dataset, or use the API tab for authenticated integration examples.

```json
{
  "stores": [
    "allbirds.com"
  ],
  "maxProductsPerStore": 10,
  "maxItems": 10,
  "outputMode": "all"
}
```

### Workflow example

Use flattened variants for SKU-level analysis. Keep configuration and state store consistent when using changes mode. This uses public storefront data, not merchant inventory administration.

```json
{
  "stores": [
    "allbirds.com"
  ],
  "maxProductsPerStore": 50,
  "flattenVariants": true,
  "outputMode": "all",
  "maxItems": 50
}
```

Examples show supported inputs, not guaranteed result counts. Public sources and filters can produce fewer rows or zero rows. Check the run log and any summary/error records before treating the output as complete.

For recurring use, save the input as an Apify Task and schedule sequential runs. Export results to your own spreadsheet, database, n8n or Make workflow. Scheduling does not add stateful tracking to Actors that only return snapshots. Keep API credentials in environment variables.

### Related workflow

[Website Tech Stack Detector: CMS & Analytics](https://apify.com/ailu_studio/website-tech-stack-detector) can complement this Actor. It runs separately and has its own price and input requirements.

### Detailed reference

### Shopify Store Products Scraper: Prices, Variants, Stock, Price Change Monitor

Returns the product catalog of any Shopify store as flat JSON rows, read from the store's public `products.json` endpoint: title, handle, vendor, product type, tags, created, updated and published dates, product URL, up to 10 image URLs, lowest and highest price, compare-at (original) price, on-sale flag, store currency, stock availability and every variant with SKU, price, compare-at price, availability, options and weight. Give it many stores at once, optionally limit it to one collection, choose one row per product or one row per variant, and run it as a monitor that returns only new products, price changes and stock changes since the previous run. Stores that are not Shopify return a free error row. Unlike the most used Shopify product Actors there is no start fee. In addition, the store currency is filled in from `/meta.json`, and the built-in change monitor reports price and stock changes together with the previous values.

### Use cases

- Track competitor prices, discounts and stock on a schedule (`outputMode: "changes"`, `flattenVariants: true`).
- Export a store's full catalog with variants and SKUs to a spreadsheet, BI tool or product feed.
- Spot new product drops: new items appear with `changeType: "new"` in changes mode.
- Compare vendors, product types and price ranges across many Shopify brands.
- Feed product titles, prices and descriptions to an LLM or search index.

### Input

| Field | Default | Meaning |
|---|---|---|
| `stores` | `["allbirds.com", "gymshark.com"]` | Shopify store domains or URLs. The www and bare domain are both tried. |
| `collection` | `""` | Optional collection handle or URL (`mens`, `https://allbirds.com/collections/mens`). |
| `maxProductsPerStore` | `250` | Products read per store (250 per request). |
| `flattenVariants` | `false` | `false` = one row per product with a `variants` array; `true` = one row per variant. |
| `includeDescription` | `false` | Add `descriptionText` (plain text, up to 3,000 characters). |
| `outputMode` | `all` | `all` = full snapshot; `changes` = only new, price/stock-changed (with `previousPrice`, `previousAvailable`) and removed items. |
| `stateStoreName` | `shopify-store-products-state` | Key-value store that remembers prices and stock for `changes` mode. |
| `maxItems` | `500` | Maximum billable rows for the run. |

Running with the defaults returns 250 products from each of allbirds.com and gymshark.com in a few seconds.

### Output

| Field | Type | Meaning |
|---|---|---|
| `id` | string | `<store>:<productId>` (product rows) or `<store>:<variantId>` (variant rows) |
| `rowType` | string | `product`, `variant` or `error` (free) |
| `store`, `storeName` | string | Domain read, store name from `/meta.json` |
| `productId`, `handle`, `title`, `vendor`, `productType`, `tags` | | Product identity and classification |
| `createdAt`, `updatedAt`, `publishedAt` | string | ISO 8601 UTC |
| `url` | string | `https://<store>/products/<handle>` (variant rows add `?variant=<id>`) |
| `imageUrls` / `imageUrl` | string\[] / string | Product images (max 10) / variant image |
| `priceMin`, `priceMax`, `compareAtPriceMax`, `onSale` | number, boolean | Product price range and discount flag |
| `currency` | string or null | Store default currency from `/meta.json` |
| `anyAvailable`, `variantsCount`, `variants` | | Stock flag, number of variants, variant list |
| `variantId`, `variantTitle`, `sku`, `price`, `compareAtPrice`, `available`, `option1`-`option3`, `grams` | | Variant rows |
| `descriptionText` | string or null | Only with `includeDescription` |
| `changeType`, `previousPrice`, `previousAvailable`, `firstSeenAt`, `lastSeenAt`, `removedAt` | | Only in `changes` mode |
| `fetchedAt` | string | ISO 8601 UTC fetch time |

Sample product row (trimmed):

```json
{
  "id": "allbirds.com:7215692808272",
  "rowType": "product",
  "store": "allbirds.com",
  "storeName": "Allbirds",
  "productId": 7215692808272,
  "handle": "womens-wool-cruiser-soft-eucalyptus-burnt-olive-sole",
  "title": "Women's Wool Cruiser - Soft Eucalyptus (Burnt Olive Sole)",
  "vendor": "Allbirds",
  "url": "https://allbirds.com/products/womens-wool-cruiser-soft-eucalyptus-burnt-olive-sole",
  "priceMin": 120, "priceMax": 120, "compareAtPriceMax": null, "onSale": false,
  "currency": "USD",
  "anyAvailable": true,
  "variantsCount": 13,
  "variants": [{ "id": 41315828695120, "title": "5", "sku": "A12859W050", "price": 120, "compareAtPrice": null, "available": false, "option1": "5", "option2": null, "option3": null, "grams": 1000 }],
  "fetchedAt": "2026-11-04T11:55:00.000Z"
}
```

### How it works and limits

- Reads `https://<store>/products.json?limit=250&page=N` (or `/collections/<handle>/products.json`) and `/meta.json` for the store name and currency. No browser, no proxy, no login.
- Politeness: one request per second per store, at most two stores in parallel, retries with back-off on HTTP 429 and 5xx.
- `products.json` has no currency field. `currency` is the store's default currency from `/meta.json`, and prices are the values `products.json` returns. Market-specific or customer-specific prices are not covered.
- Stock is Shopify's `available` flag. Exact inventory quantities are not public.
- Stores that are not on Shopify, use a headless front end without `products.json`, are password-protected or block the endpoint return a free `error` row.
- In `changes` mode each store is read completely up to `maxProductsPerStore`, and its state is kept separately, so a failing store never marks items as removed. Lowering `maxProductsPerStore` between runs reports the cut items as removed. Changes beyond `maxItems` are not returned again.

### Pricing

Pay per result: **$0.90 per 1,000 rows** (`result` event). Platform usage is billed separately by Apify. Removed/free rows are not charged.

Error rows and removed-item rows are free. With `flattenVariants: true` every variant is one row.

### Legal

Not affiliated with Shopify or any store. Uses the public Shopify storefront products.json endpoint only. Data licence/terms: https://www.shopify.com/legal/terms

Product data, images and descriptions belong to each store. Respect each store's terms of service and copyright when you reuse them.

### FAQ

**How do I know if a site runs on Shopify?**
Add it to `stores`. If `products.json` is missing or returns HTML, you get a free error row that says so.

**Can I monitor price drops and restocks?**
Yes. Use `outputMode: "changes"` with `flattenVariants: true` on a schedule. Updated rows carry `previousPrice` and `previousAvailable`.

**Why is the currency null for some stores?**
The store does not expose `/meta.json`. Prices are still returned as numbers.

**Can I scrape only one category?**
Set `collection` to the collection handle from the store URL, for example `mens` from `/collections/mens`.

**How many products can I get?**
As many as the store publishes in `products.json`; raise `maxProductsPerStore` and `maxItems`. Large catalogs take one request per 250 products.

# Actor input Schema

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

Shopify store domains or URLs, e.g. "allbirds.com" or "https://www.gymshark.com". Both the www and bare domain are tried. Stores that are not Shopify (or block products.json) return a free error row.

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

Optional collection handle or collection URL, e.g. "mens" or "https://allbirds.com/collections/mens". Only products of that collection are read, from every store in the list. Leave empty for the whole catalog.

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

Maximum products read from each store. One request returns 250 products, one request per second per store. Default 250.

## `flattenVariants` (type: `boolean`):

Off (default): one row per product with a variants array. On: one row per variant (size, colour, ...) with its own price, compare-at price, SKU and stock flag; useful for price and stock tracking.

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

Add descriptionText: the product description as plain text, up to 3,000 characters. Default off to keep rows small.

## `outputMode` (type: `string`):

"all" (default) returns every product on each run. "changes" remembers each store's items in stateStoreName and returns only new items, items whose price or availability changed (with previousPrice and previousAvailable), and removed items (free rows).

## `stateStoreName` (type: `string`):

Name of the key-value store that remembers prices and stock for outputMode "changes". Use one name per watchlist, e.g. "shopify-competitors". Default shopify-store-products-state.

## `maxItems` (type: `integer`):

Maximum number of billable rows (products or variants) for the whole run. Error rows and removed rows are free. Default 500.

## Actor input object example

```json
{
  "stores": [
    "allbirds.com",
    "gymshark.com"
  ],
  "collection": "",
  "maxProductsPerStore": 250,
  "flattenVariants": false,
  "includeDescription": false,
  "outputMode": "all",
  "stateStoreName": "shopify-store-products-state",
  "maxItems": 500
}
```

# Actor output Schema

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

All rows in the default dataset.

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

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

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ailu_studio/shopify-store-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/BCFhE2GfMGdgtJZrP/builds/4DSpqC213xp3kdHXQ/openapi.json
