# Shopify Product Scraper - Multi-Store Export (`coughins/shopify-multi-store-catalog-exporter`) Actor

Scrape up to 20 public Shopify product catalogs in one run. Export prices, SKUs, variants, options, and availability to CSV, Excel, or JSON—without an API key, browser, proxy, or login. Pay only $0.80 per 1,000 products; error rows are free.

- **URL**: https://apify.com/coughins/shopify-multi-store-catalog-exporter.md
- **Developed by:** [Dominik Seehütter](https://apify.com/coughins) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 product scrapeds

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Shopify Multi-Store Catalog Exporter

Export public product catalogs from several Shopify storefronts in one Apify run. The Actor is deliberately narrow: product listings, prices, stock flags, options, and variants—no reviews, contacts, customers, orders, descriptions, or images.

### Why use it

- Process up to 20 store domains in one run.
- Receive one predictable product record with nested variants, suitable for JSON, CSV export, scheduling, or API integration.
- Get an explicit, unbilled error record when a store is protected, is not a compatible Shopify storefront, or disallows the endpoint in `robots.txt`.
- No browser, login, proxy, CAPTCHA service, or anti-bot bypass.
- Exact price strings are preserved; the Actor does not silently round money.

### Input

```json
{
  "storeUrls": [
    "https://store-one.example",
    "store-two.example"
  ],
  "maxProductsPerStore": 1000,
  "maxConcurrency": 2,
  "requestDelayMillis": 500
}
```

Only each URL's HTTPS origin is used. Duplicate domains are removed. Private/reserved network addresses, credentials, custom ports, and unsafe redirects are rejected.

### Output

Each billed `product` record contains:

- store and product URLs
- Shopify product ID, handle, title, vendor, and product type
- availability, minimum/maximum price, variant counts
- tags and product options
- nested variants with ID, title, SKU, exact price, compare-at price, availability, options, weight, and shipping flag
- published and updated timestamps

The public feed does not label its active currency, so prices are returned exactly as the storefront supplies them without guessing a currency. Product descriptions and images are intentionally omitted.

An incompatible or disallowed store returns one `error` record containing `storeUrl`, `errorCode`, and `errorMessage`. Error records are not associated with the billable product event.

### Pricing

Planned Store pricing:

- Actor start: **$0.00005** (Apify's synthetic start event)
- Product: **$0.0008 per saved product record**
- Error records: **free**

In Apify monetization settings, keep `apify-actor-start`, remove `apify-default-dataset-item`, and add the custom primary event `product` at $0.0008. This prevents error rows from being charged.

### Compliance and reliability

The Actor uses an identified user agent, reads `robots.txt` before the catalog endpoint, waits between pages, and processes no more than four stores concurrently. If `robots.txt` cannot be read, the store is skipped conservatively. HTTP 429 is reported and never bypassed.

The Actor reads only the unauthenticated public Shopify JSON storefront surface. It does not collect customer or order data and does not fall back to browser automation or proxies when a merchant restricts access.

### Local development

```bash
npm install
npm test
npm run validate
npm start
```

Local input lives in `storage/key_value_stores/default/INPUT.json`. The production build is capped at 256 MB.

# Actor input Schema

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

One to 20 public storefront domains or URLs. Duplicate domains are removed.

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

Stops each store after this many product records, so cost and runtime stay predictable.

## `maxConcurrency` (type: `integer`):

Number of stores processed at once. A low ceiling protects storefronts and reliability.

## `requestDelayMillis` (type: `integer`):

Polite delay between requests to the same store.

## Actor input object example

```json
{
  "storeUrls": [
    "https://www.allbirds.com"
  ],
  "maxProductsPerStore": 1000,
  "maxConcurrency": 2,
  "requestDelayMillis": 500
}
```

# Actor output Schema

## `dataset` (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 = {
    "storeUrls": [
        "https://www.allbirds.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("coughins/shopify-multi-store-catalog-exporter").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": ["https://www.allbirds.com"] }

# Run the Actor and wait for it to finish
run = client.actor("coughins/shopify-multi-store-catalog-exporter").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": [
    "https://www.allbirds.com"
  ]
}' |
apify call coughins/shopify-multi-store-catalog-exporter --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,coughins/shopify-multi-store-catalog-exporter"
        }
    }
}

```

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/0qWlR1sgpiBRJBQsi/builds/7UGAoO5YxDxKU9Xxg/openapi.json
