# Shopify Products Scraper: Prices, Variants & Stock (`datalantern/shopify-products`) Actor

Scrape products from any Shopify store: title, price, compare-at price, sale flag, stock status, every variant with SKU and options, images, tags, vendor and description. Whole store, one collection or single products.

- **URL**: https://apify.com/datalantern/shopify-products.md
- **Developed by:** [Data Lantern](https://apify.com/datalantern) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

**Shopify Products Scraper** exports products from any Shopify store: title, price, compare-at ("was") price, sale flag, stock status, every variant with SKU and options, images, tags, vendor, product type and description. Scrape a whole store, one collection, or single product links.

### What can this tool do?

- Export a Shopify store's full catalog (tens of thousands of products) to CSV, Excel or JSON.
- Scrape one collection (`/collections/mens`) or individual product links.
- Track competitors' prices, discounts and stock status over time with scheduled runs.
- Get every variant (size, color …) with its own SKU, price, compare-at price and availability.
- Build product feeds, price-comparison sites or market research datasets.

### What data does it return?

One row per product:

| Field | Example |
|---|---|
| `store` | www.allbirds.com |
| `title` | Men's Tree Runner - Jet Black (White Sole) |
| `url` | https://www.allbirds.com/products/mens-tree-runners |
| `vendor` / `productType` | Allbirds / Shoes |
| `price` / `priceMax` | 100 / 100 (lowest and highest variant price) |
| `compareAtPrice` / `onSale` | null / false |
| `currency` | USD |
| `available` | true (at least one variant in stock) |
| `variantCount` | 7 |
| `variants` | \[{ sku: "TR3MJBW080", option1: "8", price: 100, available: true, … }] |
| `options` | \[{ name: "Size", values: \["8", "9", …] }] |
| `imageUrl` / `images` | https://cdn.shopify.com/… |
| `tags` | shoprunner, … |
| `descriptionText` | The Allbirds Tree Runner is a breathable and lightweight sneaker … |
| `createdAt` / `publishedAt` / `updatedAt` | 2021-01-29T21:57:15.000Z … |

Also: `productId`, `handle`, `error` (only on rows for links that could not be read).

### How to use it

1. Paste store websites (`allbirds.com`), collection links or product links, one per line.
2. Set the maximum products per link (0 = whole catalog) and click **Start**.
3. Download the products as CSV, Excel or JSON, or pull them through the API.

### Pricing

Pay per product: **$0.80 per 1,000 products**, plus $0.005 per run. Variants are included in the product row at no extra cost. Links that are not Shopify stores or could not be read are listed with the reason and never charged. Set a maximum cost per run in the run options.

### Use it through the API, AI agents, and integrations

Call it from your code with the Apify API, schedule daily price tracking, or connect it to Make, Zapier, n8n, Google Sheets, or an AI agent through Apify's MCP server.

### Is it legal?

The tool reads the product catalog that every Shopify store publishes for its own storefront (`products.json`), without logging in. It returns product data only, no customer data; emails that look personal are removed from descriptions. You are responsible for how you use the data (for example, product images and descriptions are the store's content).

### FAQ

**Does it work with every Shopify store?** Almost: a few large stores block automated visitors, and some headless stores turn the public catalog off. Those links are listed with the reason and not charged. For headless stores, try the store's myshopify.com address.

**Why is `available` empty for some products?** Some stores do not publish stock status. Exact stock quantities are not public on Shopify.

**Are prices in my currency?** Prices are in the store's default currency (`currency`).

### Feedback

Found a bug or need a field added? Open an issue on the **Issues** tab. We usually respond within 24 hours.

# Actor input Schema

## `startUrls` (type: `array`):

One per line: a Shopify store website (allbirds.com) for its whole catalog, a collection link (allbirds.com/collections/mens) or a product link.

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

Stop after this many products for each store or collection. 0 means the whole catalog.

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

Add each product's description as plain text.

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

Stop the whole run after this many products. 0 means no limit.

## `proxyConfiguration` (type: `object`):

Optional. Not needed normally: Shopify stores answer cloud servers.

## Actor input object example

```json
{
  "startUrls": [
    "allbirds.com",
    "deathwishcoffee.com"
  ],
  "maxProductsPerStore": 50,
  "includeDescription": true,
  "maxResults": 0
}
```

# Actor output Schema

## `results` (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 = {
    "startUrls": [
        "allbirds.com",
        "deathwishcoffee.com"
    ]
};

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

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

```

## MCP server setup

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