# Shopify Product Scraper: Prices, Variants, SKUs, Stock (`dataforge_api/shopify-product-scraper-ppe`) Actor

Scrape products from any public Shopify store: price, compare-at price, discount, variants, SKUs, stock flag, vendor, tags and images. Filter by collection, keyword, price or sale. About $1 per 1,000 rows.

- **URL**: https://apify.com/dataforge_api/shopify-product-scraper-ppe.md
- **Developed by:** [DataForge Lab](https://apify.com/dataforge_api) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 product or variant rows

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 Product Scraper: Prices, Variants, SKUs, Stock

Scrape the product catalog of any public Shopify store into clean JSON or CSV. The Actor reads the store's public product feed (`/products.json`), so there is no login, no browser and no proxy needed for most stores.

### What you get

Per product (default mode): title, vendor, product type, tags, price range, compare-at price, `on_sale`, `max_discount_percent`, stock flag, variant list with SKUs, options (size, color), images, publish and update dates and the product URL.

Per variant (`outputMode: variants`): one row per variant with its own SKU, price, compare-at price, discount percent, stock flag, weight and options.

### Filters

- **Collections:** read only `new-arrivals`, `sale` or any collection handle.
- **Keywords:** keep products whose title, vendor, type or tags match.
- **Price range, in stock only, on sale only.**
- Several stores per run, with row limits per store and in total.

### Example input

```json
{
  "domains": ["allbirds.com", "gymshark.com"],
  "outputMode": "variants",
  "onlyOnSale": true,
  "maxProductsPerStore": 200
}
```

### Use cases

- **Price monitoring:** schedule a run daily and compare prices and discounts between runs.
- **Competitor catalogs:** see what a store sells, which products are new and which are discounted.
- **Dropshipping and sourcing research:** find vendors, price ranges and in-stock products.
- **Catalog exports:** move product data into a spreadsheet or database.

### Pricing

Pay per event: **$0.001 per row** (about $1 per 1,000 products). You are charged only for rows saved to the dataset. Stores without a public feed are skipped and not charged.

### Limits

- Works for stores that keep the public `/products.json` feed on. A store can switch it off; the Actor then reports it in the log and skips the store.
- Stock is a yes or no flag. Exact inventory counts are not public and are not returned.
- Prices are the catalog prices in the store currency. Checkout discounts, markets and taxes are not applied.
- Product reviews and customer data are not collected.

### Related Actors

- [Shopify Store Intel](https://apify.com/dataforge_api/shopify-store-intel-ppe): store profile, installed apps, theme and public role emails.
- [Shopify Plus and Headless Store Detector](https://apify.com/dataforge_api/shopify-plus-headless-stores-ppe): Plus and headless indicators for a list of domains.
- [Company Contact Finder](https://apify.com/dataforge_api/company-contact-finder-ppe): public emails and phones from a company website.

# Actor input Schema

## `domains` (type: `array`):

Shopify store domains or URLs, for example allbirds.com or https://www.gymshark.com. Stores without a public product feed are skipped and not charged.

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

products: one row per product with its variants listed inside. variants: one row per variant with its own SKU, price, compare-at price and stock flag. Each row is charged once.

## `collections` (type: `array`):

Collection handles to read instead of the whole catalog, for example new-arrivals or sale. The handle is the last part of the collection address.

## `keywords` (type: `array`):

Keep only products whose title, vendor, type or tags contain at least one of these words.

## `onlyAvailable` (type: `boolean`):

Keep only products with at least one variant in stock.

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

Keep only products with a compare-at price above the selling price.

## `minPrice` (type: `number`):

Optional. Keep products priced at or above this value, in the store currency.

## `maxPrice` (type: `number`):

Optional. Keep products priced at or below this value, in the store currency.

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

Add the product description as HTML in products mode.

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

Upper limit of rows saved for each store.

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

Upper limit of rows saved in the whole run, across all stores.

## Actor input object example

```json
{
  "domains": [
    "allbirds.com"
  ],
  "outputMode": "products",
  "collections": [],
  "keywords": [],
  "onlyAvailable": false,
  "onlyOnSale": false,
  "includeDescription": false,
  "maxProductsPerStore": 250,
  "maxResults": 1000
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `dataset` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("dataforge_api/shopify-product-scraper-ppe").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("dataforge_api/shopify-product-scraper-ppe").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 '{}' |
apify call dataforge_api/shopify-product-scraper-ppe --silent --output-dataset

```

## MCP server setup

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

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/2yX4ot2kaqbJuH9cq/builds/v8wxeme2Dvnht4JsH/openapi.json
