# Shopify Competitor Price, Stock, Discount & Best-Sellers Spy (`duartelabs/shopify-competitor-price-stock-spy`) Actor

Extract full product catalogs, live prices, compare-at discounts, stock availability, variants, SKUs, and multilingual AI market insights (EN, ES, PT, FR, DE, IT) from any Shopify store in seconds.

- **URL**: https://apify.com/duartelabs/shopify-competitor-price-stock-spy.md
- **Developed by:** [Cristian Duarte](https://apify.com/duartelabs) (community)
- **Categories:** E-commerce, Marketing, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

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 Competitor Price, Stock, Discount & Best-Sellers Spy

**Extract the entire product catalog, live pricing, compare-at discounts, stock availability, SKUs, and multilingual market insights (EN, ES, PT, FR, DE, IT) from any Shopify store in seconds.**

Built for **E-Commerce Brands, Dropshippers, Amazon FBA Sellers, Price Monitoring Agencies, and AI Agents (Claude / Cursor MCP, n8n, Make.com)**. Using ultra-fast HTTP/2 JSON endpoints, this Actor extracts up to 250 products per request without triggering expensive headless browsers.

***

### 🚀 Key Features & What You Get

1. **💵 Live Price & Discount Intelligence:**
   - Extracts `price`, `compareAtPrice` (original price before discount), automatically calculates `discountPercentage` (`% OFF`), and flags `isOnSale`.
2. **📦 Real-Time Inventory & Stock Tracking:**
   - Checks every product variant (`availableVariants` vs `totalVariants`) to detect fast-selling items running low on stock or completely sold out (`inStock`).
3. **🌍 6-Language Market & Pricing Insight (`pricingInsight`):**
   - Generates an automated merchandising analysis per product in **English (`en`), Spanish (`es`), Portuguese (`pt`), French (`fr`), German (`de`), or Italian (`it`)** (e.g., *"🔥 Active 30% discount & low stock (1/5 variants left) — high-velocity best-seller candidate"*).
4. **🏷️ Complete Catalog Metadata:**
   - Extracts **Brand (`vendor`), Category (`productType`), Tags, Primary SKU, Launch Date (`publishedAt`), Last Updated Date (`updatedAt`), High-Res Image URL, and Direct Product Link**.

***

### 🤖 1-Click Integration with Claude Desktop & Cursor (MCP)

```json
{
  "mcpServers": {
    "apify": {
      "command": "npx",
      "args": ["-y", "@apify/actors-mcp-server", "--actors", "duartelabs/shopify-competitor-price-stock-spy"],
      "env": { "APIFY_TOKEN": "YOUR_APIFY_API_TOKEN" }
    }
  }
}
```

***

### 🔗 Explore the Complete `duartelabs` 4-Actor Automation Ecosystem

- 🟢 **[B2B Lead, WhatsApp, Email & Ad-Pixel Intelligence Scraper](https://apify.com/duartelabs/b2b-lead-whatsapp-pixel-scraper):** Extract the store owner's email, direct WhatsApp number, active Meta/TikTok/Google Ad Pixels, and ready-to-send outreach hooks in 6 languages.
- 🟣 **[AI-Ready Website to Clean Markdown, Token Counter & RAG Chunker](https://apify.com/duartelabs/ai-website-to-markdown-rag-chunker):** Convert any website, blog, or help center into noise-free Markdown, context-aware RAG vector chunks, extracted Q\&A pairs, and LLM token savings audits in 1.5 seconds.
- 🔵 **[Technical SEO, Meta, Schema.org & Broken Links Auditor](https://apify.com/duartelabs/seo-meta-schema-broken-links-auditor):** Audit websites for 0–100 Technical SEO Score, missing Meta/H1 tags, Schema.org JSON-LD, image ALT gaps, response speed, and broken 404 links in 6 languages.

***

### ⚡ Ready-to-Import n8n Workflow Templates & Claude/Cursor MCP Config (1-Click Download)

Import these pre-built JSON workflows directly into **n8n** (`Workflows -> Import from URL / File`) or **Claude Desktop / Cursor IDE**:

- 🤖 **[Complete 4-Actor Claude Desktop & Cursor MCP Config (`claude_cursor_mcp_config.json`)](https://api.apify.com/v2/key-value-stores/1IuKKYulFhXhqM36b/records/claude_cursor_mcp_config.json)**
- 🟢 **[n8n B2B Lead, WhatsApp & Ad-Pixel Enricher Template (`n8n_b2b_lead_whatsapp_workflow.json`)](https://api.apify.com/v2/key-value-stores/1IuKKYulFhXhqM36b/records/n8n_b2b_lead_whatsapp_workflow.json)**
- 🟠 **[n8n Shopify Competitor Price & Stock Spy Template (`n8n_shopify_competitor_spy_workflow.json`)](https://api.apify.com/v2/key-value-stores/1IuKKYulFhXhqM36b/records/n8n_shopify_competitor_spy_workflow.json)**
- 🟣 **[n8n AI Website to Clean Markdown & RAG Chunker Template (`n8n_ai_markdown_rag_chunker_workflow.json`)](https://api.apify.com/v2/key-value-stores/1IuKKYulFhXhqM36b/records/n8n_ai_markdown_rag_chunker_workflow.json)**
- 🔵 **[n8n Technical SEO, Schema & Broken Links Auditor Template (`n8n_technical_seo_auditor_workflow.json`)](https://api.apify.com/v2/key-value-stores/1IuKKYulFhXhqM36b/records/n8n_technical_seo_auditor_workflow.json)**

***

### 🧱 How to Use in Clay.com (1-Click HTTP API Enrichment Column)

Enrichthousands of rows inside **Clay.com** without paying expensive per-credit markups:

1. In your Clay table, click **`Add Column` -> `Add Enrichment` -> `HTTP API`**.
2. **Method:** `POST`
3. **Endpoint URL:**
   `https://api.apify.com/v2/acts/duartelabs~shopify-competitor-price-stock-spy/run-sync-get-dataset-items?token=YOUR_APIFY_API_TOKEN`
4. **Headers:** `Content-Type: application/json`
5. **Body (JSON):**

```json
{
  "storeUrls": [{ "url": "{{shopify_domain}}" }],
  "maxProductsPerStore": 25,
  "reportLanguage": "en"
}
```

6. Click **Save & Run** — Clay will automatically parse all returned JSON fields into columns!

# Actor input Schema

## `storeUrls` (type: `array`):

Enter one or more Shopify store URLs (e.g. https://allbirds.com, https://kyliecosmetics.com) to extract products, pricing, discounts, and stock intelligence.

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

Maximum number of products to extract per Shopify store (up to 250 per page, supports automatic pagination up to 5,000 products).

## `onlyOnSale` (type: `boolean`):

If enabled, only returns products that currently have an active discount (price lower than compare_at_price).

## `onlyInStock` (type: `boolean`):

If enabled, filters out sold-out products and only returns items currently available for purchase.

## `reportLanguage` (type: `string`):

Choose the language for the automated pricing strategy & competitor insight summary (or 'auto' to match the store).

## Actor input object example

```json
{
  "storeUrls": [
    {
      "url": "https://hiutdenim.co.uk"
    },
    {
      "url": "https://tentree.com"
    }
  ],
  "maxProductsPerStore": 50,
  "onlyOnSale": false,
  "onlyInStock": false,
  "reportLanguage": "auto"
}
```

# Actor output Schema

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

Dataset containing all extracted Shopify store products.

# 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 = {
    "storeUrls": [
        {
            "url": "https://hiutdenim.co.uk"
        },
        {
            "url": "https://tentree.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("duartelabs/shopify-competitor-price-stock-spy").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 = { "storeUrls": [
        { "url": "https://hiutdenim.co.uk" },
        { "url": "https://tentree.com" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("duartelabs/shopify-competitor-price-stock-spy").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 '{
  "storeUrls": [
    {
      "url": "https://hiutdenim.co.uk"
    },
    {
      "url": "https://tentree.com"
    }
  ]
}' |
apify call duartelabs/shopify-competitor-price-stock-spy --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,duartelabs/shopify-competitor-price-stock-spy"
        }
    }
}
```

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/Z4J2gK9QU5voAClRC/builds/WLS5ugIYK8XSdPzoB/openapi.json
