# Scrape products and prices from a Shopify collection

**Use case:** 

Opens a Shopify collection page (Tentree men's t-shirts here), follows each product link and saves each product with price, compare at price, stock, SKU, variants with sizes and colors, images and description. Useful for competitor catalog tracking and product feeds. Paste any Shopify collection or category URL.

## Input

```json
{
  "startUrls": [
    "https://www.tentree.com/collections/mens-t-shirts"
  ],
  "maxResults": 10,
  "maxProductsPerListing": 10,
  "maxListingPages": 1,
  "followListings": true,
  "variantMode": "nested",
  "includeDescription": true,
  "descriptionMaxChars": 2000,
  "monitorMode": false,
  "monitorWatchlist": "default",
  "emitUnchanged": false,
  "usePlatformJson": true,
  "browserFallback": false,
  "maxConcurrency": 4,
  "requestDelayMs": 1500,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "image": {
    "label": "image",
    "format": "string"
  },
  "name": {
    "label": "name",
    "format": "string"
  },
  "brand": {
    "label": "brand",
    "format": "string"
  },
  "price": {
    "label": "price",
    "format": "number"
  },
  "regularPrice": {
    "label": "regularPrice",
    "format": "number"
  },
  "currency": {
    "label": "currency",
    "format": "string"
  },
  "availability": {
    "label": "availability",
    "format": "string"
  },
  "inStock": {
    "label": "inStock",
    "format": "boolean"
  },
  "variantCount": {
    "label": "variantCount",
    "format": "number"
  },
  "rating": {
    "label": "rating",
    "format": "number"
  },
  "reviewCount": {
    "label": "reviewCount",
    "format": "number"
  },
  "sku": {
    "label": "sku",
    "format": "string"
  },
  "gtin": {
    "label": "gtin",
    "format": "string"
  },
  "seller": {
    "label": "seller",
    "format": "string"
  },
  "source": {
    "label": "source",
    "format": "string"
  },
  "canonicalUrl": {
    "label": "canonicalUrl",
    "format": "string"
  },
  "scrapedAt": {
    "label": "scrapedAt",
    "format": "string"
  }
}
```

## How it works

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

The Universal Product Page Extractor: Price, Variants, GTIN, Stock Actor is ready to run with the inputs already set for "Scrape products and prices from a Shopify collection". [Sign up or log in](https://console.apify.com/create-task-from-example/TCSNRBS4wIMx2VjK0) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Scrape products and prices from a Shopify collection" task

The Universal Product Page Extractor: Price, Variants, GTIN, Stock Actor will start running based on the input automatically. You can also change all the input fields, like product, category or sitemap urls, max results, and more, to match your specific use case.

### 3. Receive the "Scrape products and prices from a Shopify 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 image, name, brand, 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 "Scrape products and prices from a Shopify collection" task via API](https://apify.com/zhtech/universal-product-extractor.md).

## FAQ

### What does the Shopify collection products task return?

The Shopify collection products task saves one row per product: name, brand, price, compare at price, currency, availability, SKU, variants with size, color, price and stock, images, description and URL.

### How do I scrape another store?

In the Shopify collection products task, replace the Tentree URL with any collection or category page and raise Max products per category page. WooCommerce and other platforms work too.

### Can I get one row per size or color?

The Shopify collection products task nests variants inside each product. Set Variants output to Separate rows to get one row per variant with its own price, stock and SKU.

### Can I track price changes in a collection?

The Shopify collection products task can run daily on an Apify schedule. Turn on Monitor mode so each run outputs only products whose price or stock changed, or start it from the Apify API.

### How much does the Shopify collection products task cost?

The Shopify collection products task uses pay per event pricing: a small start fee plus a fixed price per product saved, with no charge for compute time. Small runs like this fit the Apify free plan credit.

## About this Actor

This example demonstrates how to use [Universal Product Page Extractor: Price, Variants, GTIN, Stock](https://apify.com/zhtech/universal-product-extractor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/zhtech/universal-product-extractor.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/zhtech/universal-product-extractor.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`).
