# Export products from a Shopify store collection

**Use case:** 

Export the products of one Shopify collection to JSON, CSV or Excel. The task opens the collection page, follows links to each product and returns name, SKU, brand, images, price, currency and availability from the data the page publishes. Replace the example collection with any Shopify collection whose robots.txt allows fetching.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://www.muji.us/collections/backpacks"
    }
  ],
  "maxItems": 100,
  "crawl": true,
  "maxPagesPerCrawl": 50,
  "linkPattern": "/products/[a-z0-9-]+$",
  "maxConcurrency": 5
}
```

## Output

```json
{
  "name": {
    "label": "Name",
    "format": "text"
  },
  "brand": {
    "label": "Brand",
    "format": "text"
  },
  "price": {
    "label": "Price",
    "format": "number"
  },
  "priceCurrency": {
    "label": "Currency",
    "format": "text"
  },
  "availability": {
    "label": "Availability",
    "format": "text"
  },
  "sku": {
    "label": "SKU",
    "format": "text"
  },
  "ratingValue": {
    "label": "Rating",
    "format": "number"
  },
  "url": {
    "label": "URL",
    "format": "link"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Product Data API & Scraper - Prices & Stock Actor is ready to run with the inputs already set for "Export products from a Shopify store collection". [Sign up or log in](https://console.apify.com/create-task-from-example/jnYHdgmunIXfoNtcb) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Export products from a Shopify store collection" task

The Product Data API & Scraper - Prices & Stock Actor will start running based on the input automatically. You can also change all the input fields, like start urls, max results, and more, to match your specific use case.

### 3. Receive the "Export products from a Shopify store collection" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as name, brand, price, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Export products from a Shopify store collection" task via API](https://apify.com/rocketyard/product-schema-scraper.md).

## FAQ

### How do I export another collection?

Replace the start URL of the Shopify store product export task with a collection page. Its link pattern already matches Shopify product URLs, which end in /products/ and a product name.

### Does it return every variant?

The Shopify store product export task returns what each product page publishes. Stores that list variants in their page data give one record per variant, with the size or color in the name.

### Does it work on stores other than Shopify?

Yes, when the store publishes schema.org Product data. Change the link pattern of the Shopify store product export task to the URL shape of that store's product pages.

## About this Actor

This example demonstrates how to use [Product Data API & Scraper - Prices & Stock](https://apify.com/rocketyard/product-schema-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/rocketyard/product-schema-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/rocketyard/product-schema-scraper.md

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`).
