# Find sale and discounted products on any Shopify store

**Use case:** 

Get only the products that are on sale: current price, original (compare-at) price, variants with stock, images and dates. Use it to track discounts, find deals or feed a price comparison. A product counts as on sale when its compare-at price is above its current price. This example keeps up to 15 sale products from each of three Shopify stores.

## Input

```json
{
  "stores": [
    "https://www.allbirds.com",
    "https://www.puravidabracelets.com",
    "https://www.deathwishcoffee.com"
  ],
  "maxProductsPerStore": 15,
  "onlyAvailable": false,
  "onlyOnSale": true,
  "includeVariants": true,
  "includeDescription": false,
  "onlyChanges": false,
  "monitorName": "default"
}
```

## Output

```json
{
  "store": {
    "label": "Store",
    "format": "text"
  },
  "title": {
    "label": "Product",
    "format": "text"
  },
  "price": {
    "label": "Price",
    "format": "number"
  },
  "compareAtPrice": {
    "label": "Was",
    "format": "number"
  },
  "currency": {
    "label": "Currency",
    "format": "text"
  },
  "available": {
    "label": "In stock",
    "format": "boolean"
  },
  "onSale": {
    "label": "On sale",
    "format": "boolean"
  },
  "change": {
    "label": "Change",
    "format": "text"
  },
  "url": {
    "label": "Product page",
    "format": "link"
  },
  "platform": {
    "label": "Platform",
    "format": "text"
  }
}
```

## How it works

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

The Shopify & WooCommerce Products Scraper: Prices, Stock & Changes Actor is ready to run with the inputs already set for "Find sale and discounted products on any Shopify store". [Sign up or log in](https://console.apify.com/create-task-from-example/6alVbnUgePb5nnYR1) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Find sale and discounted products on any Shopify store" task

The Shopify & WooCommerce Products Scraper: Prices, Stock & Changes Actor will start running based on the input automatically. You can also change all the input fields, like stores, max products per store, and more, to match your specific use case.

### 3. Receive the "Find sale and discounted products on any Shopify store" 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 store, product, 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 "Find sale and discounted products on any Shopify store" task via API](https://apify.com/webobsidians/shopify-woocommerce-products-scraper.md).

## FAQ

### How does it decide that a product is on sale?

The Shopify sale products task keeps a product when its compare-at price is higher than its current price. Each item has price, compareAtPrice and an onSale flag, so you can work out the discount.

### Can I combine the sale filter with other filters?

The Shopify sale products task also accepts keywords, excluded words, a price range and an in-stock switch, so you can ask for sale hoodies under a set price that are still available.

### How much does it cost to scrape sale products?

The Shopify sale products task costs $1.00 per 1,000 products plus $0.00005 per run start, with platform usage included. This example returns up to 45 products, about $0.05.

## About this Actor

This example demonstrates how to use [Shopify & WooCommerce Products Scraper: Prices, Stock & Changes](https://apify.com/webobsidians/shopify-woocommerce-products-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/webobsidians/shopify-woocommerce-products-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/webobsidians/shopify-woocommerce-products-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`).
