# Find a beauty brand's best-selling products

**Use case:** 

Tracks the stock of every shade and size in a beauty brand's online store (preset: ColourPop) and ranks products by estimated units sold and revenue. Spot hero products, sell-outs and restocks, and get an Excel report of the top sellers and best-selling categories for the last 7 and 30 days.

## Input

```json
{
  "startUrls": [
    "https://colourpop.com"
  ],
  "categoryUrls": [
    "https://cbeaux.com/product-category/dress/"
  ],
  "productUrls": [
    "https://cbeaux.com/product/badia-dress/"
  ],
  "trackingId": "beauty-bestsellers",
  "outputMode": "all",
  "createReport": true,
  "maxProductsPerStore": 200,
  "countOnly": false,
  "listCategories": false,
  "platform": "auto",
  "maxConcurrency": 3,
  "minDelaySecs": 1,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "productTitle": {
    "label": "Product",
    "format": "string"
  },
  "variantTitle": {
    "label": "Variant",
    "format": "string"
  },
  "estimatedUnitsSold": {
    "label": "Est. units sold",
    "format": "integer"
  },
  "estimatedRevenue": {
    "label": "Est. revenue",
    "format": "number"
  },
  "currency": {
    "label": "Currency",
    "format": "string"
  },
  "previousStockQuantity": {
    "label": "Units before",
    "format": "integer"
  },
  "stockQuantity": {
    "label": "Units in stock",
    "format": "integer"
  },
  "restockedUnits": {
    "label": "Units restocked",
    "format": "integer"
  },
  "hoursSincePrevious": {
    "label": "Hours since previous run",
    "format": "number"
  },
  "changeType": {
    "label": "Change",
    "format": "string"
  },
  "storeUrl": {
    "label": "Store",
    "format": "string"
  },
  "productUrl": {
    "label": "Page",
    "format": "string"
  }
}
```

## How it works

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

The Shopify Sales Tracker: Competitor Stock & Units Sold Actor is ready to run with the inputs already set for "Find a beauty brand's best-selling products". [Sign up or log in](https://console.apify.com/create-task-from-example/b8Camh7nG2lOz4ij5) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Find a beauty brand's best-selling products" task

The Shopify Sales Tracker: Competitor Stock & Units Sold Actor will start running based on the input automatically. You can also change all the input fields, like competitor stores, only these categories (optional), and more, to match your specific use case.

### 3. Receive the "Find a beauty brand's best-selling products" 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 product, variant, est. units sold, 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 a beauty brand's best-selling products" task via API](https://apify.com/rivalstock/competitor-stock-tracker.md).

## FAQ

### Why are units sold empty after the first run?

The beauty best sellers task estimates units sold from stock drops between two runs. The first run records the starting stock; from the second run on, each row shows estimated units sold and revenue since the previous run.

### Where is the Excel report?

The beauty best sellers task saves an Excel competitor report (top sellers, categories, price changes, sell-outs, restocks, daily sales) for the last 7 and 30 days in the run's key-value store after every run.

### How do I run it every day?

The beauty best sellers task runs daily once you save it to your account and add it to an Apify schedule. Keep the same Tracker name so each run is compared with the previous one and the 7/30-day history keeps growing.

### What does a run of this task cost?

The beauty best sellers task costs $3 per 1,000 products read on the Free and Starter plans, with every variant of a product included in one charge. With the preset limit of 200 products per store, one run costs at most $0.60.

## About this Actor

This example demonstrates how to use [Shopify Sales Tracker: Competitor Stock & Units Sold](https://apify.com/rivalstock/competitor-stock-tracker.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/rivalstock/competitor-stock-tracker.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/rivalstock/competitor-stock-tracker.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`).
