# Taobao Variant Stock Tracker

**Use case:** 

Follow the stock of every variant of the Taobao and Tmall products you resell: each run checks price and stock live with Taobao, and shows sold-out and nearly sold-out variants. Schedule it daily and compare runs on skuId. About $0.05 for 10 products.

## Input

```json
{
  "products": [
    "1079352038299",
    "974557823767",
    "1054472182712",
    "985506126857",
    "953990086979",
    "725845080848",
    "802585791953",
    "983611546675",
    "778120621214",
    "954724396894"
  ],
  "freshData": true,
  "minItems": 0
}
```

## Output

```json
{
  "itemId": {
    "label": "itemId",
    "format": "string"
  },
  "title": {
    "label": "title",
    "format": "string"
  },
  "variantCount": {
    "label": "variantCount",
    "format": "integer"
  },
  "priceRange": {
    "label": "priceRange",
    "format": "object"
  },
  "inStock": {
    "label": "inStock",
    "format": "boolean"
  },
  "stockTotal": {
    "label": "stockTotal",
    "format": "integer"
  },
  "soldOutVariants": {
    "label": "soldOutVariants",
    "format": "integer"
  },
  "lowStockVariants": {
    "label": "lowStockVariants",
    "format": "integer"
  },
  "variants": {
    "label": "variants",
    "format": "array"
  }
}
```

## How it works

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

The Taobao Product Details Scraper Actor is ready to run with the inputs already set for "Taobao Variant Stock Tracker". [Sign up or log in](https://console.apify.com/create-task-from-example/EftdL3BLCpypvMZOY) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Taobao Variant Stock Tracker" task

The Taobao Product Details Scraper Actor will start running based on the input automatically. You can also change all the input fields, like products (ids or links), live price and stock check, and more, to match your specific use case.

### 3. Receive the "Taobao Variant Stock Tracker" 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 itemid, title, variantcount, 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 "Taobao Variant Stock Tracker" task via API](https://apify.com/sleepmodesystems/taobao-product-details-scraper.md).

## FAQ

### What does the Taobao Variant Stock Tracker return?

For each product, every variant with its price and stock, the number of sold-out and nearly sold-out variants, and the total stock.

### How fresh is the stock in the Taobao Variant Stock Tracker?

Each product's price and stock are checked with Taobao right before the row is saved.

### How do I schedule the Taobao Variant Stock Tracker?

Save it as a task and add an Apify schedule, daily for example; compare runs on itemId and skuId.

### Is the stock exact in the Taobao Variant Stock Tracker?

Exact below 200 per variant; above that Taobao shows 200 and the row says so.

## About this Actor

This example demonstrates how to use [Taobao Product Details Scraper](https://apify.com/sleepmodesystems/taobao-product-details-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/sleepmodesystems/taobao-product-details-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/sleepmodesystems/taobao-product-details-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`).
