# Find Products On Sale In Shopify Stores

**Use case:** 

Keeps only products whose compare-at price sits above the selling price - the shop's own definition of a discount, not a guess from a price history. Combine it with a price band to watch one shelf.

## Input

```json
{
  "storeUrls": [
    "allbirds.com",
    "colourpop.com",
    "gymshark.com",
    "chubbiesshorts.com",
    "taylorstitch.com",
    "brooklinen.com",
    "drsquatch.com",
    "deathwishcoffee.com"
  ],
  "maxItems": 500,
  "maxItemsPerStore": 100,
  "includeVariants": true,
  "includeInventoryDetail": false,
  "includeCollections": false,
  "includeRecommendations": false,
  "collectionHandles": [],
  "titleContains": [],
  "excludeKeywords": [],
  "vendors": [],
  "productTypes": [],
  "tags": [],
  "priceMin": 0,
  "priceMax": 0,
  "availableOnly": false,
  "onSaleOnly": true,
  "updatedWithinDays": 0,
  "onlyNew": false,
  "emitUnchanged": false,
  "descriptionFormat": "text",
  "compactOutput": false,
  "excludeEmptyFields": false
}
```

## Output

```json
{
  "store_domain": {
    "label": "Store domain",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "vendor": {
    "label": "Vendor",
    "format": "string"
  },
  "product_type": {
    "label": "Product type",
    "format": "string"
  },
  "price_min": {
    "label": "Price min",
    "format": "integer"
  },
  "price_max": {
    "label": "Price max",
    "format": "integer"
  },
  "compare_at_price_max": {
    "label": "Compare at price max",
    "format": "integer"
  },
  "discount_percent": {
    "label": "Discount percent",
    "format": "integer"
  },
  "available": {
    "label": "Available",
    "format": "boolean"
  },
  "variant_count": {
    "label": "Variant count",
    "format": "integer"
  },
  "url": {
    "label": "Url",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Shopify Scraper - Products, Inventory, Variants, SKU, Prices](https://apify.com/snow_leo_data/shopify-inventory-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/snow_leo_data/shopify-inventory-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/snow_leo_data/shopify-inventory-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`).
