# Discounted Products Finder

**Use case:** 

In-stock products at least 30% below their compare-at price, biggest discount first, with prices converted to USD.

## Input

```json
{
  "storeUrls": [
    "www.ohpolly.com",
    "www.tentree.com",
    "snocks.com"
  ],
  "seedCategories": [],
  "maxStores": 10,
  "maxProductsPerStore": 120,
  "maxItems": 50,
  "minTrendScore": 0,
  "sortBy": "discountDesc",
  "includeCollections": "curated",
  "maxCollectionsPerStore": 8,
  "useHistory": false,
  "historyStoreName": "shopify-trending-history",
  "keywords": [],
  "excludeKeywords": [],
  "categories": [],
  "productTypes": [],
  "vendors": [],
  "tags": [],
  "minDiscountPercent": 30,
  "onlyAvailable": true,
  "dateField": "publishedAt",
  "currencies": [],
  "countries": [],
  "excludeNonProducts": true,
  "includeVariants": false,
  "includeDescription": true,
  "convertCurrencyTo": "USD",
  "maxConcurrency": 10,
  "requestTimeoutSecs": 30,
  "maxRetries": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "imageUrl": {
    "label": "Image",
    "format": "string"
  },
  "title": {
    "label": "Product",
    "format": "string"
  },
  "storeDomain": {
    "label": "Store",
    "format": "string"
  },
  "price": {
    "label": "Price",
    "format": "number"
  },
  "priceMax": {
    "label": "Max price",
    "format": "number"
  },
  "compareAtPrice": {
    "label": "Compare-at",
    "format": "number"
  },
  "discountPercent": {
    "label": "Discount %",
    "format": "integer"
  },
  "currency": {
    "label": "Currency",
    "format": "string"
  },
  "priceConverted": {
    "label": "Converted (estimate)",
    "format": "object"
  },
  "availableVariants": {
    "label": "Variants in stock",
    "format": "integer"
  },
  "variantsCount": {
    "label": "Variants",
    "format": "integer"
  },
  "url": {
    "label": "Link",
    "format": "string"
  }
}
```

## How it works

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

The Shopify Trending Products Scraper Actor is ready to run with the inputs already set for "Discounted Products Finder". [Sign up or log in](https://console.apify.com/create-task-from-example/ddFP5MQmc4KZBcXer) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Discounted Products Finder" task

The Shopify Trending Products Scraper Actor will start running based on the input automatically. You can also change all the input fields, like shopify stores, curated store categories, and more, to match your specific use case.

### 3. Receive the "Discounted Products Finder" 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, product, store, 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 "Discounted Products Finder" task via API](https://apify.com/badr_xba/shopify-trending-products-scraper.md).

## About this Actor

This example demonstrates how to use [Shopify Trending Products Scraper](https://apify.com/badr_xba/shopify-trending-products-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/badr_xba/shopify-trending-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/badr_xba/shopify-trending-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`).
