# Shopify Collection Scraper: Export All Public Collections (`mrslm_data/shopify-collections-exporter`) Actor

Export every public collection of any Shopify store: title, URL, product count and dates, plus optional products, stock and price range per collection. CSV or JSON.

- **URL**: https://apify.com/mrslm_data/shopify-collections-exporter.md
- **Developed by:** [MRSLM Data](https://apify.com/mrslm_data) (community)
- **Categories:** E-commerce, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 collections

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Collection Scraper: Export All Collections

**Export every public collection of any Shopify store, with product counts, and optionally the products, stock and price range inside each one. $1.00 per 1,000 collections.**

This Shopify collections scraper turns public collection information into a structured dataset for catalog research, merchandising and SEO audits. Export Shopify collections with their titles, handles, URLs and reported product counts, then optionally include product lists and summary statistics. The result provides a practical view of a store’s Shopify category structure using the collections available through its public feed.

Supply one or more Shopify domains or URLs, choose whether to include products, and download one row per saved collection. Collection and product information depends on the public feeds returned by each store. Product-derived counts and price ranges describe the products actually listed by the Actor, which may be a limited or incomplete subset.

### Quick start

1. Press **Start**. The form is already filled with this example input, so the first run returns real rows in under a minute:

```json
{
  "stores": [
    "allbirds.com",
    "colourpop.com"
  ]
}
```

2. Swap in your own values, or call the Actor through the Apify API, Make, Zapier, n8n or the Python/JS clients with the same JSON.
3. Download the results as JSON, CSV or Excel from the **Output** tab, or schedule the run to repeat.

### Sample row (real run, trimmed)

```json
{
  "store": "allbirds.com",
  "title": "30% Off Tree Runner Go & Tree Gliders",
  "handle": "30-off-tree-runner-go-tree-gliders",
  "url": "https://allbirds.com/collections/30-off-tree-runner-go-tree-gliders",
  "productsCount": 107,
  "productsListed": 12,
  "inStockProducts": 11,
  "onSaleProducts": 3,
  "priceMin": 60,
  "priceMax": 140,
  "vendors": ["Allbirds"],
  "publishedAt": "2024-09-07T20:37:09-07:00",
  "updatedAt": "2026-10-26T16:16:40-07:00"
}
```

`productsCount` is the number the store reports; it can include products hidden from the storefront. `productsListed` is the number collected from the public collection product feed. The product-derived fields in the sample require `includeProducts` to be enabled.

### Input fields

At least one valid store domain or URL is needed. Prefilled store examples are separate from the defaults below.

| Field | Type | Default | What it does |
| --- | --- | --- | --- |
| `stores` | Array of strings | No default; form prefilled with `allbirds.com` and `colourpop.com` | Shopify store domains or URLs. One row is saved per collection. |
| `includeProducts` | Boolean | `false` | Fetches product handles and titles, stock and sale counts, price range and vendors for each collection. Requires extra requests and is slower. |
| `maxProductsPerCollection` | Integer | `250` | Limits products listed for each collection when `includeProducts` is enabled. `0` means all. |
| `skipEmptyCollections` | Boolean | `true` | Leaves out collections whose reported product count is exactly zero. |
| `maxCollectionsPerStore` | Integer | `0` | Limits collections per store. `0` means all. |
| `maxResults` | Integer | `0` | Caps saved collections across all stores. `0` means no result cap; the run’s maximum cost is still respected. |
| `proxyConfiguration` | Object | `{"useApifyProxy": false}` | Configures the proxy. The schema suggests Apify Proxy for many stores at once. |

For a collection-only export, leave `includeProducts` off. Turn it on when you need product-derived fields, and use `maxProductsPerCollection` to control how many products are collected for each collection. The per-store collection limit and the run-wide result limit are separate controls.

### Output fields

The base collection fields are created for each saved row. The product-derived fields are added only when `includeProducts` is enabled.

| Field | What it represents |
| --- | --- |
| `store` | Store hostname. |
| `collectionId` | Collection ID returned by the store. |
| `title` | Collection title. |
| `handle` | Collection handle. |
| `url` | Collection page URL constructed from the store origin and handle. |
| `productsCount` | Product count reported by the collection feed, or `null` if unavailable. |
| `description` | Plain-text collection description, truncated to 1,000 characters, or `null`. |
| `imageUrl` | Collection image URL, or `null`. |
| `publishedAt` | Published timestamp from the feed, or `null`. |
| `updatedAt` | Updated timestamp from the feed, or `null`. |
| `scrapedAt` | Timestamp when the collection row was created. |
| `productHandles` | Handles of collected products. |
| `productTitles` | Titles of collected products. |
| `productsListed` | Number of products collected for the row. |
| `productsListComplete` | Whether the public product feed ended without the collected page being cut by the limit. |
| `inStockProducts` | Collected products with at least one available variant. |
| `onSaleProducts` | Collected products with at least one variant whose compare-at price exceeds its price. |
| `priceMin` | Lowest numeric variant price among collected products, or `null`. |
| `priceMax` | Highest numeric variant price among collected products, or `null`. |
| `vendors` | Distinct nonempty vendors among collected products, limited to 50. |

The overview table displays selected fields; the full dataset can contain the other fields above. Product statistics are calculated from the collected product list, not necessarily every product reported by the store.

### How collection discovery works

The Actor requests the store’s public `/collections.json` feed in pages of up to 250 collections. With product inclusion enabled, it also requests each collection’s public product feed in pages of up to 250 products. The default product limit is 250 per collection; use `0` to request all available products.

`productsListComplete` helps interpret the result. A `false` value can mean that a product limit cut the list or that collection of the list did not finish. If a product request fails part-way, the Actor can save the products collected so far and mark the list incomplete. A complete public list can still differ from the store’s reported `productsCount`.

### Use cases

#### Map a Shopify category structure

1. Enter the store domain in `stores`.
2. Leave `includeProducts` set to `false` for a collection-focused export.
3. Choose whether to retain empty collections with `skipEmptyCollections`.
4. Run the Actor and download the dataset as CSV or Excel.
5. Review collection titles, handles and URLs to build a map of the store’s public collection pages.

#### Review collection assortment and pricing

1. Set `includeProducts` to `true`.
2. Set `maxProductsPerCollection` to the number you want to inspect, or `0` to request all available products.
3. Run the export and review `productsListed` and `productsListComplete`.
4. Compare the listed products’ stock counts, sale counts, price range and vendors.
5. Treat summaries from incomplete lists as summaries of the collected subset.

#### Audit collections before a redesign

1. Add the store domain and set `skipEmptyCollections` to `false` if empty collections should be included.
2. Export the collection titles, URLs, descriptions, images and timestamps.
3. Review missing or outdated-looking information against the public collection pages.
4. Keep the export as an inventory of the collection feed available at the time of the run.

### Run through the API

Replace `YOUR_API_TOKEN` with your Apify API token. This synchronous endpoint starts the Actor and returns dataset items.

```bash
curl -X POST \
  'https://api.apify.com/v2/acts/mrslm_data~shopify-collections-exporter/run-sync-get-dataset-items?token=YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "stores": ["allbirds.com", "colourpop.com"],
    "includeProducts": true,
    "maxProductsPerCollection": 250
  }'
```

With the Python `apify-client`, start the Actor and iterate through its dataset:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("mrslm_data/shopify-collections-exporter").call(
    run_input={
        "stores": ["allbirds.com", "colourpop.com"],
        "includeProducts": True,
        "maxProductsPerCollection": 250,
    }
)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

Remove `includeProducts` or set it to `false` if you only need collection-level fields. Add more domains to `stores` to process multiple stores in one run.

### Pricing

The examples below show collection charges. Add **$0.00005 per Actor start** for each run. Including products takes additional requests but has the same collection price.

| Saved collections | Free/Bronze | Silver | Gold |
| ---: | ---: | ---: | ---: |
| 100 | $0.10 | $0.09 | $0.08 |
| 1,000 | $1.00 | $0.90 | $0.80 |
| 10,000 | $10.00 | $9.00 | $8.00 |

The rates are $1.00, $0.90 and $0.80 per 1,000 collections for Free/Bronze, Silver and Gold respectively. Non-Shopify stores are free. Use `maxResults` and your run’s maximum cost setting to help bound a run.

### FAQ

#### Can I export Shopify collections to CSV?

Yes. Run the Actor with the desired store domains, then download the resulting dataset as CSV from the **Output** tab. JSON and Excel are also available.

#### Does the Actor include products by default?

No. `includeProducts` defaults to `false`. Enable it to fetch product handles and titles and calculate the stock, sale, price and vendor summaries.

#### Why are `productsCount` and `productsListed` different?

`productsCount` comes from the collection feed and can include products hidden from the storefront. `productsListed` counts products collected from the public collection product feed. A product limit or an incomplete request can also affect the listed count.

#### How do I include empty Shopify collections?

Set `skipEmptyCollections` to `false`. By default, the Actor skips collections whose reported `products_count` is exactly zero.

#### Can I get every product in a collection?

Set `includeProducts` to `true` and `maxProductsPerCollection` to `0` to request all available products from the public feed. Check `productsListComplete` to see whether collection of that list finished without being cut short.

#### How are stock and sale counts calculated?

A collected product counts as in stock if at least one variant is available. It counts as on sale if at least one variant has a compare-at price greater than its price. These counts cover the collected product list.

#### Does the price range cover the entire collection?

It covers numeric variant prices in the collected product list. If the list is limited or incomplete, the range describes that subset. The fields are `null` when no numeric prices are available.

#### What if the public collections feed is unavailable?

If the first collections response does not contain a collections array, the run summary records that the site may not be a Shopify store or that its public collections feed may be turned off. A later feed failure is also recorded.

#### Can I limit an export across several stores?

Yes. `maxCollectionsPerStore` limits collections per store, while `maxResults` caps saved collections across all stores. Set either to `0` for no corresponding limit.

### Related Actors

- [Shopify Products](https://apify.com/mrslm_data/shopify-products)
- [WooCommerce Products](https://apify.com/mrslm_data/woocommerce-products)
- [BigCommerce Products](https://apify.com/mrslm_data/bigcommerce-products)
- [Product Page JSON](https://apify.com/mrslm_data/product-page-json)
- [Store Change Watcher](https://apify.com/mrslm_data/store-change-watcher)

### Is it legal?

This Actor only reads pages and feeds that the website itself publishes to every visitor without a login. It obeys each site's robots.txt, keeps a polite request rate, and never tries to get past logins, paywalls, captchas or bot checks. It does not collect personal data such as emails, phone numbers or names of private individuals. You are responsible for how you use the data: follow the source site's terms, copyright and the privacy laws that apply to you (GDPR, CCPA, etc.). This tool is independent and not affiliated with or endorsed by the platforms it reads.

# Actor input Schema

## `stores` (type: `array`):

Store domains or URLs, e.g. "allbirds.com". One row is saved per collection.

## `includeProducts` (type: `boolean`):

Also list each collection's product handles and titles, with in-stock and on-sale counts, price range and vendors. Slower (one extra request per 250 products), same price.

## `maxProductsPerCollection` (type: `integer`):

When products are included, how many to list per collection. 0 = all.

## `skipEmptyCollections` (type: `boolean`):

Leave out collections that currently have 0 products.

## `maxCollectionsPerStore` (type: `integer`):

0 = all collections.

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

Safety cap on saved collections across all stores. 0 = no cap. Your max cost per run is always respected.

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

Usually not needed. Turn on Apify Proxy for many stores at once.

## Actor input object example

```json
{
  "stores": [
    "allbirds.com",
    "colourpop.com"
  ],
  "includeProducts": false,
  "maxProductsPerCollection": 250,
  "skipEmptyCollections": true,
  "maxCollectionsPerStore": 0,
  "maxResults": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

All results as a dataset (JSON, CSV, Excel and more via the API or Console).

## `summary` (type: `string`):

Counts of results, targets that succeeded or failed, and the stop reason.

# 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 = {
    "stores": [
        "allbirds.com",
        "colourpop.com"
    ]
};

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

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

```

## MCP server setup

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