# Shopify Products, Variants, Prices & Inventory Scraper (`tokenkite/shopify-intel`) Actor

Extract public Shopify store catalogs and collections with min/max pricing, compare-at discounts, nested variant SKUs, and real-time in-stock availability—protected by row-level SchemaGuard validation.

- **URL**: https://apify.com/tokenkite/shopify-intel.md
- **Developed by:** [TokenKite Labs](https://apify.com/tokenkite) (community)
- **Categories:** E-commerce, Lead generation, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$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/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 does Shopify Products, Variants, Prices & Inventory Scraper do?

**Shopify Products Scraper (`shopify-intel`)** extracts clean, structured product catalogs directly from any public [Shopify](https://www.shopify.com/) storefront or collection. Each Dataset item represents **one unique product** enriched with **min/max pricing**, **markdown percentage (`discount_pct`)**, **real-time stock availability (`in_stock`)**, and the full **`variants`** array containing per-size/color SKUs, prices, and availability flags.

### Why scrape Shopify stores?

- **Dynamic competitor price & promo tracking**: Schedule daily or hourly runs to spot competitor markdowns (`compare_at_price_max` vs. `price_min`) and restocks immediately.
- **DTC brand & assortment research**: Map entire product catalogs, SKU counts, vendors, tags, and collection assortments without spinning up slow headless browsers.
- **AI shopping & commerce agents**: Feed deterministic JSON directly into **n8n**, **Make**, **Zapier**, data warehouses, or the **Apify MCP Server**.
- **One row per product = predictable billing**: Variants are nested cleanly inside each product record rather than inflating your Dataset item count per size/color SKU.

### What data can Shopify Products Scraper extract?

| Field | Type | Description |
| --- | --- | --- |
| `product_id` | `string` | Shopify numeric product ID formatted as a string |
| `store_domain` | `string` | Normalized storefront domain |
| `title` | `string` | Product title |
| `handle` | `string` | URL handle under `/products/` |
| `product_url` | `string` | Canonical storefront URL |
| `price_min` / `price_max` | `number` | Lowest and highest variant price in store currency |
| `compare_at_price_max` | `number \| null` | Highest original compare-at price when on sale |
| `discount_pct` | `number \| null` | Computed markdown percentage `round((1 - price_min / compare_at_price_max) * 100, 2)` |
| `in_stock` | `boolean` | `true` if at least one variant has `available: true` at extraction time |
| `variant_count` | `integer` | Number of variants on this product |
| `vendor` / `product_type` | `string \| null` | Brand vendor and merchant product category |
| `tags` | `string[]` | Storefront product tags |
| `image_url` | `string \| null` | Primary product image URL |
| `updated_at` | `string \| null` | Last storefront update timestamp |
| `variants` | `object[]` | Nested list of `{variant_id, title, sku, price, compare_at_price, available}` |

### How to scrape a Shopify store

1. Enter the live **`store_domain`** in the **Input** tab (for example, `www.beardbrand.com`; if a bare domain redirects to `www.`, enter the canonical `www.` domain).
2. Optionally specify a **`collection_handle`** (the slug after `/collections/`, e.g., `best-sellers`) and **`max_products`** (default `250`).
3. Click **Start** and explore the visual table in **Storage -> Dataset -> Products, Prices & Stock**.
4. Download as JSON (recommended to preserve nested `variants`), CSV, Excel, or HTML.

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

Priced at an all-in **$0.50 per 1,000 products** (`$0.0005` per product, **`Start Fee = $0`**) — **30%–70% below typical `$0.70–$1.80/1k` Store scrapers** that charge extra add-on fees for inventory checks or start events:

| Extracted Volume | Total Cost | Effective Rate |
| --- | --- | --- |
| 100 products (all variants & stock) | **$0.05** | `$0` start fee, `$0` inventory add-on |
| 500 products (all variants & stock) | **$0.25** | Nested SKUs never inflate row count |
| 1,000 products (all variants & stock) | **$0.50** | Flat all-inclusive rate |
| Empty or password-protected store | **$0.00** | Zero-Dirty-Billing protection |

- **Zero charge on empty or blocked stores**: Empty collections, password-protected storefronts, or rate-limited responses finish without pushing partial data—costing **$0 in result fees**.
- **Strict row-level SchemaGuard**: Every product and nested variant is validated by Pydantic + DataToll SchemaGuard before publication. If a storefront disables JSON catalog access or returns malformed fields, the run halts cleanly with zero Dataset charges.

#### AI Agent Direct Access (Streamable HTTP MCP & x402)

Building autonomous shopping, price-matching, or catalog enrichment agents? Query live stores without API keys via **Streamable HTTP MCP** at `https://datatoll.app/mcp` (or `npx -y datatoll-mcp`): call **`preview_datatoll_sample`** for an instant **free 3-product preview ($0)**, or call `extract_shopify_intel` / `GET https://datatoll.app/v1/extract/shopify-intel` via **Coinbase x402** (`$0.005 USDC` per call on Base Mainnet, up to 100 products; catalog at `https://datatoll.app/v1/catalog`).

### Input

See the **Input** tab for full configuration options. Example JSON input:

```json
{
  "store_domain": "www.beardbrand.com",
  "collection_handle": "",
  "max_products": 50
}
```

### Output

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel. Example Dataset item showing mixed variant availability:

```json
[
  {
    "product_id": "15400000000001",
    "store_domain": "www.beardbrand.com",
    "title": "Utility Balm",
    "handle": "utility-balm",
    "product_url": "https://www.beardbrand.com/products/utility-balm",
    "price_min": 30.0,
    "price_max": 35.0,
    "compare_at_price_max": 40.0,
    "discount_pct": 25.0,
    "in_stock": true,
    "variant_count": 2,
    "vendor": "Beardbrand",
    "product_type": "Balm",
    "tags": ["grooming"],
    "image_url": "https://cdn.shopify.com/s/files/1/utility-balm.jpg",
    "updated_at": "2026-10-15T12:00:00-05:00",
    "variants": [
      {
        "variant_id": "63100000000001",
        "title": "1.6 oz",
        "sku": "UB-16",
        "price": 30.0,
        "compare_at_price": 40.0,
        "available": false
      },
      {
        "variant_id": "63100000000002",
        "title": "3.4 oz",
        "sku": "UB-34",
        "price": 35.0,
        "compare_at_price": null,
        "available": true
      }
    ]
  }
]
```

### FAQ, Disclaimers, and Support

#### Why did a domain fail or return blocked?

Make sure the site is a public Shopify storefront without storefront password protection, and enter its final canonical domain (including `www.` if the store redirects).

#### Legal & Ethical Scraping Notice

Our Actors are ethical and do not extract any private user data, customer records, or checkout data. They only read public product catalog metadata exposed by merchants for storefront browsing. Report any questions or feedback via the **Issues** tab.

# Actor input Schema

## `store_domain` (type: `string`):

Public Shopify storefront domain without paths, ports, or credentials (e.g., www.beardbrand.com).

## `collection_handle` (type: `string`):

Optional collection slug after /collections/ (e.g., grooming). Leave empty to scrape the full store catalog.

## `max_products` (type: `integer`):

Maximum number of unique products to extract (each product row includes all its variants).

## Actor input object example

```json
{
  "store_domain": "www.beardbrand.com",
  "collection_handle": "",
  "max_products": 250
}
```

# Actor output Schema

## `dataset` (type: `string`):

One item per product with nested variant SKUs, prices, and availability.

## `publication` (type: `string`):

Batch SHA-256 digest and verified item count.

# 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 = {
    "store_domain": "www.beardbrand.com"
};

// Run the Actor and wait for it to finish
const run = await client.actor("tokenkite/shopify-intel").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 = { "store_domain": "www.beardbrand.com" }

# Run the Actor and wait for it to finish
run = client.actor("tokenkite/shopify-intel").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 '{
  "store_domain": "www.beardbrand.com"
}' |
apify call tokenkite/shopify-intel --silent --output-dataset

```

## MCP server setup

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

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/FMdgo4b1u3Z3IxcZC/builds/cseCkfy7cxPP3kOjD/openapi.json
