# Shopify Collections Scraper (`apt_marble/shopify-collections-scraper`) Actor

List every collection in any Shopify store: titles, links, product counts and images, to map the catalog before pulling products.

- **URL**: https://apify.com/apt\_marble/shopify-collections-scraper.md
- **Developed by:** [Hamza](https://apify.com/apt_marble) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.20 / 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.

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 Collections Scraper

Paste one or more Shopify store domains and get back every collection in each store as clean rows: title, link, product count and image. Built for anyone who needs a store's category structure as data: merchandisers mapping a competitor's taxonomy, dropshippers finding the right category to pull, and analysts sizing assortments before collecting products.

### What you can do with it

- **Map a store's categories** — paste `allbirds.com` and see every collection with how many products sit in each.
- **Size an assortment before pulling it** — product counts per collection tell you how big a follow-up product run will be.
- **Find the right shelf** — collection links point straight at each category page for deeper product reads.
- **Feed a taxonomy study** — titles and descriptions across stores show how competitors group their ranges.
- **Monitor stores on a schedule** — re-run the same domains weekly and spot new or removed collections.

### What you get

One row per collection. Abridged sample of a single record:

```json
{
  "storeDomain": "drinkolipop.com",
  "collectionId": "123456789",
  "handle": "shop-9g-fiber",
  "url": "https://drinkolipop.com/collections/shop-9g-fiber",
  "title": "9g Fiber Sodas",
  "description": "Sodas with 9 grams of fiber.",
  "productsCount": 12,
  "publishedAt": "2024-03-01T10:00:00-07:00",
  "updatedAt": "2026-05-20T09:00:00-07:00",
  "imageUrl": "https://cdn.shopify.com/s/files/1/0000/example.jpg?v=1720000000"
}
```

### Input reference

| Setting | Type | Default | What it does |
| --- | --- | --- | --- |
| Store domains | list of text | — | Shopify store domains, e.g. `allbirds.com`. One batch of collection rows is collected per store. **Required.** |
| Max items | whole number | `200` | Maximum collections to collect per store. The actor reads the collection index in order until this number is reached or the index runs out. Maximum 5,000. |

### Output fields

| Field | Type | Description |
| --- | --- | --- |
| `storeDomain` | text | Store the collection was read from. |
| `collectionId` | text | Stable collection ID. |
| `handle` | text | URL slug of the collection page. |
| `url` | text | Direct link to the collection page. |
| `title` | text | Collection name. |
| `description` | text | Plain-text collection description when shown. |
| `productsCount` | number | How many products the store reports in the collection. |
| `publishedAt` | text | When the collection was published. |
| `updatedAt` | text | Last edit timestamp. |
| `imageUrl` | text | Collection image when shown. |

### Pricing

You pay per collection row, with no monthly minimum.

| What you are charged for | Price |
| --- | --- |
| Collection row — one row added to your dataset | **$1.20 per 1,000** |

### Limits & what this actor cannot do

- Records are a snapshot at the moment of collection; product counts and titles keep changing afterwards.
- Fields a store does not show come back empty rather than guessed — a collection with no description has no description in its row.
- Non-store domains and password-protected stores are skipped, not charged.
- Speed depends on the size of the job and on each store's own response times; no fixed throughput is promised.
- The source site's terms govern automated access. You are responsible for using the data lawfully and in line with the source site's terms, and for handling any personal data in line with applicable privacy law.

### FAQ

**Do I need a store account?**
No. The actor reads only what stores show publicly in their collection indexes.

**Does it need my login or password?**
No. There is nothing to connect and nothing to configure — paste store domains and press start.

**How many collections can I collect per run?**
Up to 5,000 per store in one run.

**Can I schedule it?**
Yes. Schedule it hourly, daily or weekly from the Apify console, and each run writes a fresh dataset you can compare against the last.

**Is the data complete?**
It is complete for everything the store shows openly in its collection index. Where a store omits a field, the actor leaves it empty rather than guessing.

# Actor input Schema

## `storeDomains` (type: `array`):

Shopify store domains to read, e.g. "allbirds.com". One batch of collection rows is collected per store.

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

Maximum collections to collect per store. The actor reads the collection index in order until this number is reached or the index runs out.

## Actor input object example

```json
{
  "storeDomains": [
    "https://silkandwillow.com"
  ],
  "maxItems": 200
}
```

# Actor output Schema

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

Every row this run produced.

## `runSummary` (type: `string`):

What this run collected, and anything it could not read.

# 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 = {
    "storeDomains": [
        "https://silkandwillow.com"
    ],
    "maxItems": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("apt_marble/shopify-collections-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 = {
    "storeDomains": ["https://silkandwillow.com"],
    "maxItems": 200,
}

# Run the Actor and wait for it to finish
run = client.actor("apt_marble/shopify-collections-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 '{
  "storeDomains": [
    "https://silkandwillow.com"
  ],
  "maxItems": 200
}' |
apify call apt_marble/shopify-collections-scraper --silent --output-dataset

```

## MCP server setup

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