# Shopify Products, Prices & B2B Store Leads Scraper (`mamang_warkop/shopify-products-and-store-leads-scraper`) Actor

Fast 3-in-1 Shopify scraper: extract full product catalogs, prices, discounts, variants & SKUs or enrich Shopify domains into B2B agency leads (emails, socials, Meta/TikTok/Google ad pixels, Klaviyo).

- **URL**: https://apify.com/mamang_warkop/shopify-products-and-store-leads-scraper.md
- **Developed by:** [Wilda Adri Perta](https://apify.com/mamang_warkop) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 scraped shopify item / store leads

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, Prices & B2B Store Leads Scraper (3-in-1)

Extract full **Shopify product catalogs, variant pricing, discount percentages, SKUs, and live stock status** — or enrich raw Shopify domains into **pitch-ready B2B agency leads** (emails, socials, min/max/avg product price, Klaviyo status, installed Ad Pixels, `missingAdPixels`, `leadScore`, and a ready-to-send `agencyPitchHook`) with **zero browser overhead**.

***

### Why Choose This Actor Over Other Shopify Scrapers?

| Feature | Our Actor (`mamang_warkop`) | Standard Shopify Scrapers |
| :--- | :--- | :--- |
| **3-in-1 Modes Included** | **`products` + `store_leads` + `collections`** in one Actor. | Separate Actors for products vs store leads. |
| **Automatic Discount % Calculation** | Computes **`discountPercent`** automatically from `price` vs `compareAtPrice`. | Raw strings only. |
| **B2B Agency Lead & Pixel Intelligence** | Extracts **emails, social links, Klaviyo installation status, Meta/TikTok/Google Ad Pixels, `missingAdPixels`, `leadScore` (0–100), and `agencyPitchHook`**. | Product data only — no B2B contact or pixel enrichment. |
| **Store Price Benchmarking** | Automatically calculates **`minPrice`**, **`maxPrice`**, and **`avgPrice`** across the store's catalog. | Not included. |
| **Zero-Browser Speed & Cost** | Direct JSON API + HTTP engine (`$1.00 / 1,000 items`) — finishes in seconds using minimal memory. | Heavy Playwright crawlers that burn compute credits. |

***

### Step-by-Step Usage Guide (Panduan Penggunaan)

#### Option A: Run in Apify Console UI (Zero Coding)

1. **Enter Target Stores (`stores`):** Paste one or more Shopify store domains or URLs (`allbirds.com`, `kyliecosmetics.com`, `colourpop.com`).
2. **Select Scraping Mode (`mode`):**
   - **`Products & Pricing Catalog (products)`**: Extract individual products, prices, compare-at prices, discount %, stock availability, variant counts, SKUs, and images.
   - **`B2B Store Lead & Pixel Intelligence (store_leads)`**: Enrich each store domain into a complete B2B agency prospect record with emails, socials, price range, Klaviyo status, missing ad pixels, and a cold-email pitch hook.
   - **`Store Collections (collections)`**: Extract all public collections and item counts.
3. **Set Max Results per Store (`maxResults`):** Choose how many products/collections to fetch per store (1–5,000).
4. Click **Start**, then export your results in **CSV, Excel, or JSON**.

***

#### Option B: Automate with Clay, n8n, or Make.com

```bash
curl -X POST "https://api.apify.com/v2/acts/mamang_warkop~shopify-products-and-store-leads-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "stores": ["allbirds.com", "kyliecosmetics.com"],
    "mode": "store_leads",
    "maxResults": 10
  }'
```

***

#### Option C: Python & JavaScript SDK

##### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_API_TOKEN")
run = client.actor("mamang_warkop/shopify-products-and-store-leads-scraper").call(
    run_input={
        "stores": ["allbirds.com", "kyliecosmetics.com"],
        "mode": "products",
        "maxResults": 25,
    }
)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["storeDomain"], item["title"], item["price"], item["discountPercent"], item["inStock"])
```

***

### Input Parameters Reference

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `stores` | `array` | `["allbirds.com", "kyliecosmetics.com"]` | List of Shopify store domains or URLs. |
| `mode` | `string` | `"products"` | `"products"` (catalog & pricing), `"store_leads"` (B2B agency lead enrichment), or `"collections"`. |
| `maxResults` | `integer` | `10` | Maximum number of products or collections to extract per store (1–5,000). |

***

### Output Examples

#### 1. Mode `products` (Product & Pricing Catalog)

```json
{
  "storeDomain": "allbirds.com",
  "mode": "products",
  "productId": 7340901859408,
  "title": "Women's Allbirds Flip Flop - Dusty Pink",
  "handle": "womens-allbirds-flip-flop-dusty-pink",
  "vendor": "Allbirds",
  "productType": "Shoes",
  "price": 25.0,
  "compareAtPrice": 50.0,
  "discountPercent": 50.0,
  "inStock": true,
  "variantsCount": 7,
  "skus": ["A12513W050", "A12513W060"],
  "tags": ["mens", "womens", "footwear"],
  "imageUrl": "https://cdn.shopify.com/s/files/1/1104/4168/files/...",
  "productUrl": "https://allbirds.com/products/womens-allbirds-flip-flop-dusty-pink"
}
```

#### 2. Mode `store_leads` (B2B E-Commerce Agency Lead Enrichment)

```json
{
  "storeDomain": "kyliecosmetics.com",
  "mode": "store_leads",
  "title": "Kylie Cosmetics by Kylie Jenner",
  "isShopify": true,
  "leadScore": 100,
  "agencyPitchHook": "Saw kyliecosmetics.com runs Klaviyo/Shopify with avg price $26.4, but is missing Google Ads Tag conversion pixels.",
  "sampledProductsCount": 50,
  "minPrice": 15.0,
  "maxPrice": 68.0,
  "avgPrice": 26.4,
  "vendor": "Kylie Cosmetics, Kylie Skin",
  "productType": "Lip Kit, Blush, Skincare",
  "emails": ["customerservice@kyliecosmetics.com"],
  "socialLinks": {
    "instagram": "https://www.instagram.com/kyliecosmetics",
    "tiktok": "https://www.tiktok.com/@kyliecosmetics"
  },
  "detectedAdPixels": ["Meta Pixel", "TikTok Pixel", "Google Tag Manager", "Klaviyo"],
  "missingAdPixels": ["Google Ads Tag"],
  "klaviyoInstalled": true,
  "productUrl": "https://kyliecosmetics.com"
}
```

***

### Transparent Pricing

- **Pay-Per-Event:** `$0.001` per item (`$1.00 per 1,000 products or store leads`).
- Apify's free `$5.00` monthly credit covers up to **5,000 items every month for free**.

# Actor input Schema

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

List of Shopify store domains or URLs (e.g. \['allbirds.com', 'kyliecosmetics.com']).

## `mode` (type: `string`):

Choose 'products' for product catalog & pricing, 'store_leads' for B2B agency lead enrichment (contacts + ad pixels + catalog stats), or 'collections' for store collections.

## `maxResults` (type: `integer`):

Maximum number of products or collections to extract per store.

## Actor input object example

```json
{
  "stores": [
    "allbirds.com",
    "kyliecosmetics.com"
  ],
  "mode": "products",
  "maxResults": 10
}
```

# Actor output Schema

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

No description

## `summary` (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": [
        "allbirds.com",
        "kyliecosmetics.com"
    ],
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("mamang_warkop/shopify-products-and-store-leads-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",
        "kyliecosmetics.com",
    ],
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("mamang_warkop/shopify-products-and-store-leads-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",
    "kyliecosmetics.com"
  ],
  "maxResults": 10
}' |
apify call mamang_warkop/shopify-products-and-store-leads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mamang_warkop/shopify-products-and-store-leads-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/2O6p1gLMpnfp9eW5j/builds/mBuochIpUTskaazZN/openapi.json
