# Shopify Product Scraper · Full catalogue + variants · $1/1K (`mlg14/shopify-scraper`) Actor

Scrape any public Shopify store catalogue for price monitoring, dropshipping research and competitor analysis. Products, variants, prices, images, availability and optional inventory per store domain. $1/1K products.

- **URL**: https://apify.com/mlg14/shopify-scraper.md
- **Developed by:** [MLG Data](https://apify.com/mlg14) (community)
- **Categories:** E-commerce, Automation
- **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 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 Scraper

Scrape Shopify product catalogues from public store domains and export product, variant, price, image, availability, and optional inventory data to JSON, CSV, or Excel. This Shopify product scraper accepts a store URL instead of a list of product pages, making it a practical public Shopify catalogue API alternative.

Each dataset row represents one product. Variants, images, and options remain nested in that row, so a product with several sizes or colors still has one stable product ID for comparison between runs. Several stores can be processed in one run, and every row includes its source store.

### What data can you extract from Shopify?

The standard catalogue contains the fields below. Values come from public storefront responses. A field can be null when a merchant did not publish it, and an array can be empty when there are no public values. Prices are numeric amounts in the currency returned by public shop metadata.

| Field | Description | Example |
|---|---|---|
| `store` | Source store hostname | `store.example` |
| `productId` | Public product ID | `7502772076599` |
| `handle` | Stable URL handle | `white-chocolate-pistachio-coffee` |
| `title` | Merchant product title | `White Chocolate Pistachio Coffee` |
| `vendor` | Merchant supplied vendor | `null` when absent |
| `url` | Product page URL | `https://store.example/products/coffee` |
| `featuredImage` | First gallery image URL | Image URL or `null` |
| `imageUrls` | Gallery image URLs in order | Array of URLs |
| `imageCount` | Number of gallery images | `5` |
| `imageAltTexts` | Nonempty image alt texts | `[]` |
| `images` | Image IDs, URLs, dimensions, position, alt text, linked variants, and timestamps | Array of objects |
| `currency` | Three letter shop currency when exposed | `USD` |
| `priceMin` | Lowest variant price | `13.99` |
| `priceMax` | Highest variant price | `69.95` |
| `compareAtPrice` | Highest published compare-at price | `null` |
| `onSale` | Whether any variant has a higher compare-at price | `false` |
| `available` | Whether at least one variant is available | `true` |
| `fullyOutOfStock` | Whether every variant is unavailable | `false` |
| `requiresShipping` | Whether any variant requires shipping | `true` |
| `variantCount` | Number of variants | `3` |
| `variants` | Variant IDs, SKU, options, price, stock status, weight, image, tax and shipping flags, timestamps | Array of objects |
| `options` | Product option names | `["Size"]` |
| `productOptions` | Option names, positions, and possible values | Array of objects |
| `productType` | Merchant category label | `Coffee` |
| `tags` | Merchant product tags | `["Bagged"]` |
| `description` | Product description as readable text | Product copy |
| `descriptionHtml` | Original description markup | `<p>...</p>` |
| `createdAt` | Product creation timestamp | ISO timestamp |
| `publishedAt` | Public publication timestamp | ISO timestamp |
| `updatedAt` | Last product update timestamp | ISO timestamp |
| `runId` | Optional parent run identifier from input | String |

The `variants` array includes `variantId`, `productId`, `title`, `sku`, `selectedOptions`, `available`, `price`, `compareAtPrice`, `weightGrams`, `featuredImage`, `requiresShipping`, `taxable`, `createdAt`, and `updatedAt`. `selectedOptions` maps each option name to its value. Prices in the variants use the product row's currency. Each image has `imageId`, `url`, `width`, `height`, `position`, `altText`, `variantIds`, `createdAt`, and `updatedAt`. Each product option has `name`, `position`, and `values`.

When **Include inventory details** is enabled and a public product detail route responds, the row also gets `detailLevel`, `inventoryCount`, `inventoryAccuracy`, and `sellingPlanGroups`. Individual variants can gain `inventoryQuantity`, `inventoryManagement`, `inventoryPolicy`, `barcode`, `gtin`, `quantityRule`, `requiresSellingPlan`, and `sellingPlanAllocations`. A `quantityRule` contains `min`, `max`, and `increment`. These fields are omitted when enrichment is off or detail data is unavailable. `inventoryAccuracy` is `storefrontReported` when all variant quantities are present and `unavailable` otherwise. Public quantities may be capped or delayed by the merchant.

### How to scrape Shopify products

1. Enter one or more public store hostnames or URLs in **Store domains**. A homepage URL is enough; you do not need to find collection pages.
2. Set **Maximum products per store**. Use 50 for a quick sample or 0 to continue through the public catalogue. Use **Maximum products total** if several stores share one export limit.
3. Turn on **Include inventory details** only when you need variant quantities, barcodes, quantity rules, or selling plans. It adds one request per product.
4. Run the actor. Download the default dataset as JSON, CSV, or Excel, or read it through the dataset API.

A catalogue with 146 products was observed at a public store during verification. A 50-product test emitted 50 rows, with ID, title, URL, currency, lowest price, variant count, description, and featured image filled in every row. A separate 30-product detail test enriched all 30 rows.

### Input

| Parameter | Type | Default | Description |
|---|---|---|---|
| `domains` | Array of strings | Required; sample URL prefilled | Public hostnames or URLs. Paths are ignored, so a product or collection URL resolves to its store hostname. |
| `maxProducts` | Integer | `0` | Maximum products for each store; 0 means no per-store limit. |
| `maxItems` | Integer | `0` | Hard row limit across all stores; 0 means no overall limit. |
| `includeInventoryDetails` | Boolean | `false` | Request each product's public detail JSON and add available inventory fields. |
| `proxyConfiguration` | Object | Proxy disabled | Enable a proxy if a store blocks direct cloud traffic. |
| `runId` | String | Unset | Copy a parent run identifier into each output row. |

A small run might use this input:

```json
{
  "domains": ["https://your-store.example"],
  "maxProducts": 50,
  "maxItems": 50,
  "includeInventoryDetails": false,
  "proxyConfiguration": {"useApifyProxy": false}
}
```

For a complete public catalogue, set both limits to 0. With multiple domains, `maxProducts` applies independently to each store, while `maxItems` stops the entire run. Duplicate input hostnames are processed once. A URL path is discarded; it does not restrict the run to that collection or product. The actor accepts public hostnames and rejects local addresses and custom ports.

### Output example

This is a shortened subset of one product row from the verified 50-product dataset. The full row also has store and URL fields, image objects, variant objects, options, description, and lifecycle timestamps.

```json
{
  "productId": 7502772076599,
  "handle": "white-chocolate-pistachio-coffee",
  "title": "White Chocolate Pistachio Coffee",
  "currency": "USD",
  "priceMin": 13.99,
  "priceMax": 69.95,
  "compareAtPrice": null,
  "onSale": false,
  "available": true,
  "variantCount": 3,
  "productType": "Coffee",
  "publishedAt": "2026-09-25T08:47:32-04:00"
}
```

A row represents the product rather than a single variant. To compare sizes, colors, or SKUs, expand its `variants` array after export. Product and variant IDs are better join keys than titles, because merchants can rename products. Publication and update timestamps provide useful change signals, although they do not reveal which field changed.

### Use cases

- **Price monitoring:** schedule repeat runs, join rows by `store` and `productId`, and compare minimum, maximum, and compare-at prices. Compare individual variant prices when a product has several options.
- **Assortment tracking:** count products by vendor, type, tag, and availability. Detect new or removed public products by comparing product IDs across dated exports.
- **Cataloguing:** build a searchable index from titles, descriptions, tags, images, and URLs. Keep original HTML when presentation matters and use plain text for text search.
- **Merchandising analysis:** inspect option names, variant counts, price ranges, image coverage, and availability. A product with many variants remains one row, preventing product counts from rising with each size.
- **Inventory observation:** enable details to capture publicly reported quantities and policies. Compare later runs for possible stock changes while treating public quantities as estimates when a store caps them.
- **Data pipelines:** pass a `runId` to label rows, and use each run's default dataset for a dated export.

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

The configured result price is **$1 per 1,000 emitted products**, or $0.001 per product row. A 50-product sample is $0.05; 1,000 products are $1; 5,000 products are $5. A product with five variants is still one product row. The current configuration has no separate inventory event, so turning on details does not add a second result charge. It does add one public detail request per product and can make a run slower.

These examples use the result event rate and assume the stated number of rows is emitted. A store exposing fewer public products yields fewer rows. Requests that fail before a product is emitted do not create a product row. Check the current pricing display before a large scheduled campaign.

### Tips for best results

Start with a modest `maxProducts` to confirm the store exposes public product JSON and that the fields fit your workflow. Then increase the limit or set it to 0. The actor requests catalogue pages of up to 250 products, advances until a route returns an empty page, and stops if a store repeats a page. This prevents endless loops on storefronts that ignore pagination.

For multiple stores, use `maxProducts` to keep samples comparable. If one store is much larger than another, `maxItems` may stop the run before later stores are reached. Separate runs provide more even coverage. Keep detail enrichment off for broad discovery. Turn it on for smaller runs when reported quantities and barcodes justify the extra requests.

If a store rejects direct cloud requests, enable a proxy and retry. A different network route may help, but the store may still restrict public access. The actor tries the general product catalogue first and a public collection product route if the first page is unavailable. Currency is read separately from public shop metadata, so `currency` can be null even when products are available.

### Limits

This actor collects products exposed by a public Shopify storefront. Draft, password protected, wholesale only, or otherwise hidden products are outside that surface. A headless storefront may use a private or token protected catalogue instead of the public routes. Such a store can return no products even though customers see items through another application.

The public catalogue does not guarantee image alt text, SKU, compare-at prices, shipping weight, or currency. Optional detail data also varies by store. A blank `barcode` is an absence of a public value, not proof the merchant has no barcode. Public `inventoryQuantity` may be capped at a display threshold or updated later than internal stock; do not treat it as warehouse truth. `inventoryCount` is null unless every variant reports a quantity.

The actor uses the store hostname as its source key. It does not limit extraction to a path pasted into `domains`, and it does not apply collection, tag, or price filters. Product order can change between runs, so use IDs rather than row positions for comparisons. If a store changes its catalogue while pages are read, a later page may repeat a product; repeated IDs are omitted. The actor cannot recover products a merchant never exposes through its public catalogue.

### Automated workflows

An automation can request: “Collect the first 50 public products from my store domain and return product IDs, titles, prices, and URLs.” For inventory review, it can request: “Collect public products with inventory details enabled, then list variants whose reported quantity is below ten.” Both workflows use the same dataset rows; the second needs detail enrichment to populate quantities.

A scheduled job can export the dataset after each run, compare product IDs with the previous export, and send a change summary to an internal system. Include a parent `runId` when several jobs feed one catalogue. Each run keeps its own default dataset for export.

### FAQ

**Does the actor need a store account?** No. It uses public storefront routes. It does not sign in, access private admin data, or collect customer records.

**Can it scrape every product in a store?** It continues through the public product route until the route returns no more products or an input limit is reached. Products absent from that public route cannot be recovered through this workflow.

**Are inventory numbers exact?** They are quantities reported by the public storefront detail response. A merchant can cap, delay, or omit those values. Use them as an observation, not a guaranteed physical stock count.

**Do I need a proxy?** The verified store worked with the proxy disabled. Some stores block cloud IP ranges; enable a proxy when direct requests fail. A proxy does not grant access to private products.

**How fast is a run?** Standard mode makes one metadata request and catalogue page requests per store. Detail mode adds one request per product. Runtime depends on store response times, protections, and product count.

**Can I schedule runs and monitor changes?** Yes. Schedule repeat runs, export each dataset, and compare product or variant IDs. Price and availability changes are easier to detect when you retain dated snapshots.

**Can I export to spreadsheets?** Yes. Download the dataset as CSV or Excel. Nested variants and images are best kept as JSON or expanded into separate tables before spreadsheet analysis.

**Is scraping public storefront data legal?** Public availability does not remove obligations under a store's terms or applicable law. Review the intended use, respect access limits, and avoid collecting or misusing personal data.

### Use with AI agents (MCP)

Add this actor to any MCP client (Claude, Cursor, VS Code, n8n and others) with one URL:

`https://mcp.apify.com?tools=mlg14/shopify-scraper`

The actor returns one dataset item per Shopify product with nested variants, options and images, plus the source store. Set `maxProducts` to keep runs small and fast.

**Prompt 1:** "Get the first 100 products from the Shopify store deathwishcoffee.com with prices and variants."

```json
{
  "domains": [
    "https://www.deathwishcoffee.com"
  ],
  "maxProducts": 100
}
```

**Prompt 2:** "Compare 50 products each from two Shopify stores."

```json
{
  "domains": [
    "https://www.allbirds.com",
    "https://www.gymshark.com"
  ],
  "maxProducts": 50
}
```

**Prompt 3:** "Export 30 products with stock quantities from this Shopify store."

```json
{
  "domains": [
    "https://www.deathwishcoffee.com"
  ],
  "maxProducts": 30,
  "includeInventoryDetails": true
}
```

### Integrations

Use the dataset API, schedules, and webhooks to feed a catalogue database, price history job, spreadsheet import, or monitoring workflow. JSON keeps nested variant and image records intact. CSV and Excel work well for product level summaries; expand arrays when you need one line per variant or image.

### Support

Open an issue on the Issues tab; we reply within 24h and add fields on request.

# Actor input Schema

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

Public Shopify store hostnames or URLs, e.g. \["https://www.deathwishcoffee.com"]. Each store is scraped separately and URL paths are ignored. Use one or many stores per run.

## `maxProducts` (type: `integer`):

Maximum product rows per store, e.g. 100. Set 0 to continue until the store's public catalogue ends. Use a small value for quick tests of large stores.

## `maxItems` (type: `integer`):

Hard limit on product rows across all stores, e.g. 500. Set 0 for no total limit. Use it to cap cost when scraping many stores at once.

## `includeInventoryDetails` (type: `boolean`):

Request each product's public detail JSON to add reported variant quantities, barcodes, inventory policy and selling plans when exposed. Allowed values: true or false. Example: false. Use true only when you need stock data; it adds one request per product.

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

Route requests through Apify Proxy when a store blocks direct cloud traffic. Leave disabled for accessible stores.

## `runId` (type: `string`):

Optional label copied to every product row as runId for pipeline tracking, e.g. weekly-2026-11-01. Use it to tell scheduled runs apart; leave empty otherwise.

## Actor input object example

```json
{
  "domains": [
    "https://www.deathwishcoffee.com"
  ],
  "maxProducts": 0,
  "maxItems": 0,
  "includeInventoryDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `products` (type: `string`):

Product rows in the default dataset.

# 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 = {
    "domains": [
        "https://www.deathwishcoffee.com"
    ]
};

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

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

```

## MCP server setup

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