# Douyin Shop Products Scraper (`nice_dev/douyin-shop-products-scraper`) Actor

Scrape Douyin Shop products by keyword: price, discount, monthly sales, commission rate, creators, shop rating, ranking, images. No login. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/nice_dev/douyin-shop-products-scraper.md
- **Developed by:** [Nice Dev](https://apify.com/nice_dev) (community)
- **Categories:** E-commerce, Social media, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.59 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

### 🛒 What is Douyin Shop Products Scraper?

**Douyin Shop Products Scraper** extracts **products from [Douyin Shop](https://www.douyin.com) (抖音商城)**, seen from the side of the creators who sell them: **price, monthly sales, 30-day sales trend, commission rate, number of creators promoting the product, shop and shop score, rankings and badges**, for any keyword. It works as a **Douyin Shop API alternative**: run it on a schedule, call it from your code, or plug it into Make, Zapier or n8n.

Type a **keyword** (`口红`, lipstick), click **Start**, and download the products in JSON, CSV or Excel. No login, nothing to set up, and it is **fast: the first 30 products of a keyword in a few seconds**, then about 10 seconds for each further page of 30. Built for **product research, finding best-sellers for creators and affiliates, dropshipping and sales monitoring**.

### 📋 What data can you extract from Douyin Shop?

One item per product, 56 fields:

| Category                      | What you get                                                                                                              |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| 🏷️ **Product**                | title, link, product id, main image and white-background image — `【拍一发五 到手50片】白番茄熬夜面膜…`                    |
| 💰 **Price**                  | price in yuan, regular price, discount in %, price label — `39.9 CNY`, `12.88 %`                                          |
| 📈 **Sales**                  | monthly sales, sales of the last 7 and 30 days, daily trend, estimated monthly revenue — `5619` units a month             |
| 🤝 **Commission**             | commission rate and amount per sale, ad commission, previous commission, commission badge — `40 %`, `15.96 CNY`            |
| 👥 **Creators**               | how many creators promote the product — `1435`                                                                            |
| ⭐ **Reviews and shop**       | positive-review rate, shop name, logo and score — `89.25 %`, `82 / 100`                                                   |
| 🗂️ **Category**               | full path and each level — `个人护理 > 面部洗护 > 面膜`                                                                   |
| 🏆 **Rankings and badges**    | best-seller list, position, ranking note, badges, coupon, risk warnings — `补水面膜趋势榜·第9名`                           |
| 🔎 **Search**                 | keyword that found the product, its position and page, time it was read                                                   |

Every field, with an example, is listed in the **Output** section below.

Prices and amounts are in Chinese yuan (CNY). A value Douyin Shop does not show for a product is `null`, never `0`. The search takes a keyword only: product pages, reviews, variants and shop catalogues are not part of this Actor (see **Known limitations**).

### ✅ Why use Douyin Shop Products Scraper?

- 🤝 **The creator's view of each product**: commission rate and amount per sale, the previous rate, the commission on paid promotion, and how many creators already promote it — so you see which products pay well and which are crowded.
- 📈 **Sales you can read**: monthly sales, sales of the last 7 and 30 days, a daily trend and an estimated monthly revenue in yuan.
- 🎯 **Filters on what matters**: price, monthly sales, commission rate and amount, number of creators, positive reviews, shop score, plus words to exclude. Products that do not match are not saved.
- 🔔 **Monitoring built in**: tick **Only new products**, schedule the Actor, and each run saves (and charges as products) only what it has never delivered before.
- 🗂️ **Several keywords in one run**: up to 101, with a cap per keyword. A product found by several keywords is saved once.
- 🏆 **Rankings and badges**: best-seller list, position in it, coupon, shop badges, risk warnings.
- 🆓 **Try it for free**: the free plan returns a stored sample of 30 real products (see **Free plan** below).
- 🔌 API, scheduling, monitoring, integrations (Make, Zapier, n8n, Google Sheets…) and JSON/CSV/Excel export via the Apify platform.

### 🚀 How to scrape Douyin Shop

1. Create a free Apify account.
2. Open **Douyin Shop Products Scraper** and type a **Search keyword**, in Chinese for the best results (e.g. `口红`).
3. Optional: add more keywords in **More search keywords** (max 101 keywords per run) and set filters (price, sales, commission, creators).
4. Set **Max products** (100 by default, 0 = no limit) — and **Max products per keyword** when you run several keywords — then click **Start**.
5. Download the dataset in JSON, CSV, Excel or via API.

### 💰 How much does it cost to scrape Douyin Shop?

This Actor uses **pay per event** pricing: you pay for the **results pages** it reads, for the **products** it saves, and a small fee per run start. Platform usage (compute) is included in the price. Prices per 1,000 events, by Apify plan:

| What you pay for                                         | Event                        | Free       | Bronze | Silver | Gold   |
| -------------------------------------------------------- | ---------------------------- | ---------- | ------ | ------ | ------ |
| Results page (up to 30 products), charged when asked for | `search-page`                | **$86.99** | $86.98 | $86.97 | $86.96 |
| Product saved to your dataset                            | `apify-default-dataset-item` | **$2.69**  | $2.68  | $2.67  | $1.59  |

Plus **$0.01 per run** (`apify-actor-start`). Example on the Gold plan: 1,000 products with no filter = 34 pages + 1,000 products + 1 run ≈ **$4.56**.

- **A results page** holds up to 30 products and is charged when the Actor asks for it. A results page of up to 30 products is charged even when your filters keep none of its rows. A page read again by **Only new products** is charged again, even when all its products were delivered before.
- **A product** is charged once, when its row is saved to your dataset. A product that a filter drops, a product found twice by several keywords and a product that **Only new products** has already delivered are not saved and not charged as products.
- **A maximum cost on the run**: the Actor asks for a page only if what is left of that cost pays for the page and one product. When it cannot, it stops there with "the product search stopped: the run's maximum cost pays for no more", and that page is not charged.
- **A page that is not read**: a search that cannot even start charges no page. If the search stops while a run is going (it can be temporarily unavailable), the pages being asked at that moment are already charged, once each: one per keyword being read, at most **Max concurrency** of them. The pages after them are not asked and not charged, and the products already read are kept.
- **A page that comes back empty** is charged too: the request was made. It is the last page asked for that keyword.
- **A page that is read again** after a failed attempt is never charged twice.

How it adds up: 100 products with no filter take 4 pages (120 products read, 100 saved). With a filter that keeps one product in three, the same 100 products take about 10 pages. Set **Max products** to a multiple of 30 (`90`, `120`) so that the last page is not read for a few products only.

### 🆓 Free plan: a stored sample

A run on the **free Apify plan** does not search Douyin Shop. It returns a **stored sample**: **30 real products for the keyword 口红**, captured on **2026-11-10**, whatever keyword you typed. The rows say it: `isSample` is `true`, `searchQuery` is `口红` and `scrapedAt` is `2026-11-10T00:00:00.000Z`. Your filters, **Max products** and **Max products per keyword** apply to the sample. **Only new products** is not used: its memory is neither read nor written. No results page is read or charged; only the rows written to the dataset count as products.

The run tells you in two places. A warning at the start:

> Free plan: this run returns a stored SAMPLE — 30 real products for the keyword 口红, captured on 2026-11-10 — not live results. Your keywords were not searched. A paid Apify plan runs the live search.

And the last message of the run:

> Sample only (free plan): 30 stored products for 口红 captured on 2026-11-10, not live results — a paid plan runs the live search

When your filters drop all 30 products, the last message says so: "none of the 30 stored products for 口红 (captured on 2026-11-10) matches your filters". A paid Apify plan runs the live search for the keywords you type.

### ⚙️ Input

A first run, one page of products:

```json
{
    "query": "口红",
    "maxItems": 30
}
```

Several keywords, a cap per keyword, a price range:

```json
{
    "query": "口红",
    "searchQueries": ["面膜", "防晒霜"],
    "maxItems": 90,
    "maxItemsPerQuery": 30,
    "minPrice": 10,
    "maxPrice": 200
}
```

Products that sell and are not crowded, without gift boxes, only the ones not delivered before:

```json
{
    "query": "口红",
    "minMonthlySales": 100,
    "minCommissionRate": 20,
    "maxCreators": 50,
    "excludeKeywords": ["礼盒"],
    "onlyNew": true,
    "stateKey": "lipstick-daily"
}
```

| Field                                      | Notes                                                                                                                                                                                                                                                                  |
| ------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `query`, `searchQueries`                   | Keyword searched on Douyin Shop. Chinese keywords match best: `口红` (lipstick), `面膜` (face mask), `手机壳` (phone case). `searchQueries` adds more keywords, one search each; a product found by several keywords is saved once. English words find very few products. |
| `maxItems`                                 | Stop after this many products for the whole run, counted after filters and duplicates (`0` = no limit, up to about 500 per keyword). Results come in pages of 30 products: use a multiple of 30 (`90` = 3 pages, `120` = 4 pages).                                      |
| `maxItemsPerQuery`                         | Cap for EACH keyword, so that the first keyword cannot use up the whole **Max products**. `0` = no per-keyword cap.                                                                                                                                                    |
| `minPrice`, `maxPrice`                     | Price range in Chinese yuan (CNY), for example `10` to `200`. The bounds are included; `0` means no bound.                                                                                                                                                                                 |
| `minMonthlySales`                          | Only products that sold at least this many units in the last month (`100`).                                                                                                                                                                                            |
| `minCommissionRate`, `minCommissionAmount` | Commission paid to the creator who sells the product: at least this percentage of the price (`20`), or at least this amount per sale in yuan.                                                                                                                          |
| `minCreators`, `maxCreators`               | Number of creators already promoting the product: at least `20` for proven sellers, or at most `5` for little competition; a maximum of `0` keeps only the products nobody promotes yet.                                                                                                   |
| `minPositiveReviewRate`, `minShopScore`    | Only products with a positive-review rate of at least this percentage (`90`), and whose shop scores at least this out of 100 (`85`). A product without the value is dropped.                                                                                           |
| `excludeKeywords`                          | Drop the products whose title contains one of these WHOLE words (case and accents ignored): `art` drops "Art deco", not "Smart watch". Several words in one entry (`hand made`) must appear together. Chinese words are found anywhere in a title: `手机` drops `手机壳`. |
| `onlyNew`, `stateKey`, `resetState`        | Monitoring: only the products never delivered under this memory key (`lipstick-daily`). Give each schedule its own key; `resetState` forgets the memory.                                                                                                               |
| `maxConcurrency`, `maxRequestRetries`, `debugLog` | Advanced: how many keywords are searched at the same time (`4` by default, 1 to 20; the pages of one keyword are read one after the other), how many times a page that could not be read is tried again, and debug messages in the log.                          |

### 📦 Output

One product, as saved (the `salesTrend` is shortened to 5 days here):

```json
{
    "id": "3842322052258332740",
    "url": "https://haohuo.jinritemai.com/ecommerce/trade/detail/index.html?id=3842322052258332740&origin_type=2631",
    "title": "【拍一发五 到手50片】白番茄熬夜面膜水润服帖细腻补水护肤WNNR",
    "productId": "3842322052258332740",
    "promotionId": "3842326806854238631",
    "imageUrl": "https://p3-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_e6c430df9dd85aca954e77e722c03741_sx_438833_www1500-1500",
    "whiteImageUrl": "https://p3-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_1fab4854943f4278fa7d1e11cc83218f_sx_584365_www1500-1500",
    "images": ["https://p3-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_e6c430df9dd85aca954e77e722c03741_sx_438833_www1500-1500", "https://p3-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_1fab4854943f4278fa7d1e11cc83218f_sx_584365_www1500-1500"],
    "price": 39.9,
    "regularPrice": 45.8,
    "discountPercent": 12.88,
    "currency": "CNY",
    "priceLabel": "到手价",
    "monthlySales": 5619,
    "monthlySalesScope": "listing",
    "last7DaysSales": 1330,
    "last30DaysSales": 5511,
    "salesTrend": [
        { "date": "2026-11-05", "sales": 222 },
        { "date": "2026-11-06", "sales": 224 },
        { "date": "2026-11-07", "sales": 149 },
        { "date": "2026-11-08", "sales": 165 },
        { "date": "2026-11-09", "sales": 158 }
    ],
    "estimatedMonthlyRevenue": 224198.1,
    "positiveReviewRate": 89.25,
    "commissionRate": 40,
    "commissionAmount": 15.96,
    "commissionLabel": "爆品高佣",
    "adCommissionRate": 5,
    "adCommissionAmount": 2,
    "previousCommissionRate": 18,
    "previousCommissionAmount": 7.18,
    "cooperatingCreators": 1435,
    "promotionStatus": 2,
    "category": "个人护理 > 面部洗护 > 面膜",
    "categoryLevel1": "个人护理",
    "categoryLevel2": "面部洗护",
    "categoryLevel3": "面膜",
    "categoryLevel4": null,
    "categoryIds": [1000003462, 1000003463, 1000003482],
    "leafCategory": "面膜",
    "shopId": "268718295",
    "shopName": "龙咚锵优选",
    "shopLogoUrl": "https://p3-ecom-qualification-sign.ecombdimg.com/tos-cn-i-6vegkygxbk/78d3a323fdde41bd81e6dc619a7f579c~tplv-6vegkygxbk-s:750.image?lk3s=c9156bde&x-expires=1825873599&x-signature=wuJvJso5M9guZ9v%2BqWdQLNDMwP4%3D",
    "shopScore": 82,
    "tags": ["高结算率", "流量扶持", "消费券", "运费险"],
    "tagCodes": ["grab_order", "high_settlement_rate_grab", "traffic_support", "big_promote_coupon", "insurance_freight"],
    "couponText": "减10",
    "recommendReason": "补水面膜趋势榜·第9名",
    "rankingName": "补水面膜榜单",
    "rankingPosition": 9,
    "rankingType": "趋势榜",
    "rankingPeriod": "本月榜单",
    "riskWarnings": [],
    "productStatus": 0,
    "checkStatus": 3,
    "searchQuery": "面膜",
    "searchPosition": 1,
    "searchPage": 1,
    "isSample": false,
    "scrapedAt": "2026-11-10T20:09:39.000Z"
}
```

A real row carries up to 30 days of `salesTrend` (the day of the reading, which the data service has not counted yet, is left out), so `last7DaysSales` and `last30DaysSales` above are not the sum of the 5 days shown. You can download the dataset in various formats such as JSON, HTML, CSV or Excel.

#### All 56 fields

| Fields                                                                                                                                              | What you get                                                                                              |
| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| `id`, `productId`, `promotionId`, `url`, `title`                                                                                                    | product id (the same in `id` and `productId`), id in the creator programme, product page, title           |
| `imageUrl`, `whiteImageUrl`, `images`                                                                                                               | main image, white-background image when the shop gives one, both in a list                                 |
| `price`, `regularPrice`, `discountPercent`, `currency`, `priceLabel`                                                                                | `39.9`, `45.8`, `12.88`, `CNY`, `到手价` (price in yuan; the discount is computed)                         |
| `monthlySales`, `monthlySalesScope`, `last7DaysSales`, `last30DaysSales`, `salesTrend`, `estimatedMonthlyRevenue`                                   | units sold in the last month, `listing` or `same-item`, sums of the last 7 and 30 full days, daily sales, estimate in yuan |
| `positiveReviewRate`                                                                                                                                | `89.25` (%)                                                                                               |
| `commissionRate`, `commissionAmount`, `commissionLabel`, `adCommissionRate`, `adCommissionAmount`, `previousCommissionRate`, `previousCommissionAmount` | `40` (%), `15.96` (yuan per sale), badge `爆品高佣`, the same for paid promotion and for the previous rate |
| `cooperatingCreators`, `promotionStatus`                                                                                                            | number of creators promoting the product, status code in the creator programme                            |
| `category`, `categoryLevel1`, `categoryLevel2`, `categoryLevel3`, `categoryLevel4`, `categoryIds`, `leafCategory`                                   | `个人护理 > 面部洗护 > 面膜`, each level, level ids, deepest category                                      |
| `shopId`, `shopName`, `shopLogoUrl`, `shopScore`                                                                                                    | shop id and name, logo, experience score out of 100                                                       |
| `tags`, `tagCodes`, `couponText`                                                                                                                    | badges shown on the product, their codes, coupon badge `减10`                                              |
| `recommendReason`, `rankingName`, `rankingPosition`, `rankingType`, `rankingPeriod`                                                                 | ranking note `补水面膜趋势榜·第9名`, list, position, type, period                                          |
| `riskWarnings`, `productStatus`, `checkStatus`                                                                                                      | warnings Douyin shows to creators, status codes                                                           |
| `searchQuery`, `searchPosition`, `searchPage`, `isSample`, `scrapedAt`                                                                              | keyword, rank in its results from 1, results page from 1, `true` on the free-plan sample, ISO timestamp   |

### 💡 Tips

#### How to get more results

The search announces up to about 500 products per keyword, and a keyword is never read for more than 34 pages whatever happens. A keyword with more than 30 products waits about 8 seconds between two pages: asked sooner, the next page tends to come back empty. A keyword ends at the first page that comes back empty, and that can happen before the announced total: the log then says how many pages were read; run the keyword again later to read further. To get more, add related keywords in **More search keywords** (`口红`, `唇釉`, `唇膏`): a product found by several keywords is saved once. Set **Max products** to `0` to read every page a keyword has. The search has no sort: products come in the order Douyin Shop ranks them for the keyword (see `searchPosition`).

#### How to reduce costs

The Actor charges the pages it reads and the products it saves. The levers are **Max products** (a multiple of 30, so that no page is read for a few products), **Max products per keyword**, filters that keep many of each page (a page whose products are all dropped is still charged), and **Only new products** for recurring runs (a product delivered before is never charged as a product again).

#### Several keywords in one run

Fill **Search keyword** and **More search keywords**: one search per keyword, up to 101 keywords per run. The keywords are searched in parallel (**Max concurrency**, 4 by default) but the pages of one keyword are read one after the other. Set **Max products per keyword** to give every keyword its own cap: without it the first keywords can use up the whole **Max products** budget.

#### Filters

The filters read each product after its page is read: nine numeric bounds (price min and max, monthly sales, commission rate, commission per sale, creators promoting min and max, positive-review rate, shop score) and **Exclude keywords** on the title. A product without the value a filter reads (no review rate, a shop without score) is dropped as soon as that filter is set; a real `0` is a value, so `maxCreators` set to `0` keeps the products nobody promotes yet. A minimum of `0` means no minimum and a `maxPrice` of `0` no maximum, the bounds are included, and a minimum above its maximum is refused before the run starts. A filtered-out product is not saved and never counts in **Max products**; the page it came on is still charged.

#### Reading sales, revenue and commission

`monthlySales` is the figure Douyin Shop shows: `monthlySalesScope` tells whether it counts this listing only (`listing`) or every listing of the same item (`same-item`, 同款月销). `last7DaysSales` and `last30DaysSales` are sums of the daily `salesTrend`, that is of the last 7 and 30 full days (the day of the reading, not counted yet by Douyin Shop, is never in them). `estimatedMonthlyRevenue` is price × monthly sales: an estimate, not a figure published by Douyin. `discountPercent` is computed from `price` and `regularPrice`. Prices, commissions and revenue are in yuan; a missing value is `null`.

#### Monitoring: only the new products

Tick **Only new products** (`onlyNew`) and schedule the Actor. The memory lives in a named key-value store of your account (`douyin-shop-products-scraper-seen`, up to 150,000 products per key) and is only updated with products that really reached the dataset, so a failed run never hides anything. Give each schedule its own `stateKey` (two schedules sharing a key would hide each other's products), and tick `resetState` once to start over. A product delivered before is not saved and not charged as a product again. The search has no sort by newest, so a run still reads the results pages from the first one, and each page it reads is charged, even when all its products were delivered before. With **Only new products**, a keyword is read for at most **Max products** ÷ 30 pages, rounded up (with **Max products per keyword** too, the smaller of the two counts; with both set to 0, a keyword is read to its end, up to about 500 products). So with **Max products** 30, every run reads one page per keyword: repeat the same search and it reads that one page, returns nothing and says that the products were already delivered by a previous run. Each page it reads is charged, even when all its products were delivered before. To look further down the results, raise the smaller of **Max products** and **Max products per keyword**.

### 🔌 Integrations and API

Call the Actor via the Apify API, the JavaScript or Python clients, or connect it with integrations and webhooks (Make, Zapier, n8n, Google Sheets, Slack, Airtable…). The dataset can be fetched as JSON or CSV from any tool.

### 🤖 Use with AI agents (MCP)

AI agents (Claude, ChatGPT, Cursor…) can find and run this Actor through the [Apify MCP server](https://mcp.apify.com), billed to their Apify account like any run. It returns one item per Douyin Shop product. Actor id: `nice_dev/douyin-shop-products-scraper`; MCP server with this Actor only: `https://mcp.apify.com/?tools=fetch-actor-details,nice_dev/douyin-shop-products-scraper`.

Smallest input, for a cheap first call (one page of products):

```json
{
    "query": "口红",
    "maxItems": 30
}
```

Key output fields: `url`, `title`, `price`, `monthlySales`, `commissionRate`, `cooperatingCreators`, `shopName` and `category`.

Cost: a price per results page of up to 30 products, a price per product saved and a small fee per run start, see the pricing section above and the **Pricing** tab. Cap each call with `maxItems` (a multiple of 30) and, through the API, with the run option `maxTotalChargeUsd`.

### ❓ FAQ

#### Is it legal to scrape Douyin Shop?

The Actor returns what Douyin Shop shows about its products: titles, prices, sales, shop names and the promotion figures that go with each product. It logs in to nothing and needs no account of yours. The rows hold no personal data about people: of the creators who promote a product, only their number is given, never who they are. A shop name can still be a person's trade name, and personal data is protected by GDPR: do not store it without a legitimate reason. You are responsible for using the data in compliance with Douyin Shop's Terms of Use and applicable law. This Actor is not affiliated with Douyin, Douyin Shop or ByteDance.

#### Does it need a login or a proxy?

No login, no account of yours and no proxy to set up: you type keywords and, if you want, filters.

#### Why does my keyword return nothing, or very little?

The keyword is searched on Douyin Shop as you type it, and Chinese words match best: `口红` gives a long list of products, while the English word `lipstick` returned only 7 products when tested. When a keyword has no product, the run says "no products found for this keyword — check its spelling or try a more general one"; the page it asked is charged, as any page.

#### Why does my free-plan run return `口红` products whatever I type?

On the free plan the Actor does not search: it returns a stored sample of 30 real products for `口红`, captured on 2026-11-10, and says so in the run (see **Free plan** above). Your keywords are not searched. A paid Apify plan runs the live search.

#### Do the image links last?

Image addresses come from Douyin Shop and can expire: the link of a shop logo carries an expiry time. Download the pictures you want to keep soon after the run.

#### Is the data safe to open in Excel or to show on a web page?

Titles, shop names and badges are the sellers' own words, copied as they are. A text can begin with `-`, `+`, `=` or `@`: Excel and Google Sheets may read such a cell of a CSV file as a formula or as a number. The Actor leaves the text as it is, so that the JSON and the API give the real value: when you open a CSV, import these columns as text. On a web page, escape every field like any text written by a stranger.

#### Known limitations

- **Keywords only**: no search by URL, place or category, no sort and no date on a product (so no date filter).
- **About 500 products per keyword at most**, sometimes fewer: the search can end a keyword early with an empty page (charged like any page asked). Add related keywords to get more.
- **About 8 seconds between two pages of the same keyword**: a keyword of 17 pages takes about 3 minutes; the keywords run side by side.
- **Not returned**: product pages (description, variants, video), customer reviews and the full catalogue of a shop.
- **Chinese keywords** work best; English words find very few products.
- **Yuan only**: prices, commissions and revenue are in CNY.
- `onlyNew` remembers product ids, not their content: a product whose price changed is not returned again.
- Two runs sharing the same `stateKey` at the same time may both return the same new product.
- On the free plan, a stored sample replaces the live search.

**A run that reaches its timeout** stops itself about 45 seconds before it. From about 2 minutes before it, no new page is asked (a page needs that long to be read and saved) and no keyword is ended: what it read is saved and, with `onlyNew`, remembered, and the run ends *Succeeded* with "Stopped before the run's timeout". Resurrect it to go on from there, or give the next run a longer timeout (Run options).

**A keyword stopped in the middle of its pages** goes on only if the run is resurrected quickly: the next page of a keyword is asked with the search the page before it gave, and that search expires about 3 minutes after the page that gave it. After a stop at the timeout, its last page was read about 2 minutes before the end, so resurrect within about a minute. Resurrected later, that keyword stays stopped at the page it had reached: the Actor asks nothing and charges nothing for it, says so in the log, and the last message tells you to run it again; the keywords not yet started begin as usual.

**A run the platform stops without warning** (out of memory)

- Resurrect it: it goes on from where it stood at most a minute before the stop. What it had read since is read again, and the products already saved are skipped: none is delivered or charged twice, and `maxItems` still counts them. A keyword in the middle of its pages follows the rule above (its search expires about 3 minutes after its last page).
- With `onlyNew`, the memory is saved after each write (at most once every 2 seconds): resurrect the stopped run and the products it had saved meanwhile join the memory; leave it stopped for good, and the next run may return the products of its last 2 seconds once more.

#### Something doesn't work?

The last message of the run says how it ended. A search that cannot run says it: "the product search is temporarily unavailable" (with products already saved, "so some results are missing"), or "the product search stopped: the run's maximum cost pays for no more". A run whose search is temporarily unavailable ends with the products it had already read; the pages after the one that failed are not asked and not charged.

If Douyin Shop changes what it returns, you are told instead of paying for blank rows. If the first 20 products read all lack their title, product id or link, the run saves nothing more, stops and fails, and its last message names the missing field: at most those first products are charged. A run of fewer products (a scheduled `onlyNew` run that finds a few new ones, a small **Max products**) is checked at its end, from 5 products: its products are already saved, and the run fails with the missing field instead of ending green.

### 🛟 Support

Open an issue in the **Issues** tab with a link to your run: the run log and its last message show what happened.

# Actor input Schema

## `query` (type: `string`):

Product keyword, searched on Douyin Shop (抖音商城). Chinese keywords match best: `口红` (lipstick), `面膜` (face mask), `手机壳` (phone case), `蓝牙耳机` (Bluetooth earphones). English words find very few products.

## `searchQueries` (type: `array`):

Several keywords in one run: one search per keyword. Added to **Search keyword**; a product found by several searches is saved once. One keyword gives up to about 500 products: add related keywords to get more.

## `maxItems` (type: `integer`):

Maximum number of products to save for the whole run (after deduplication and filters). Results are read by pages of 30 products: the run stops asking for pages as soon as this number is reached. 0 = no limit (up to about 500 per keyword).

## `maxItemsPerQuery` (type: `integer`):

Cap for EACH keyword, so that the first keyword cannot use up the whole **Max products** budget. 0 = no per-keyword cap.

## `minPrice` (type: `number`):

Only products from this price, in Chinese yuan (CNY). Checked on each product after the page is read.

## `maxPrice` (type: `number`):

Only products up to this price, in Chinese yuan (CNY). Empty or 0 = no upper limit.

## `minMonthlySales` (type: `integer`):

Only products that sold at least this many units in the last month.

## `minCommissionRate` (type: `number`):

Only products whose creator commission rate is at least this percentage of the price (e.g. `20`).

## `minCommissionAmount` (type: `number`):

Only products that pay the creator at least this amount for one sale, in Chinese yuan (CNY).

## `minCreators` (type: `integer`):

Only products already promoted by at least this many creators (proven sellers).

## `maxCreators` (type: `integer`):

Only products promoted by at most this many creators (less competition). Empty = no upper limit.

## `minPositiveReviewRate` (type: `number`):

Only products whose share of positive reviews is at least this percentage (e.g. `90`). Products without a rate are dropped.

## `minShopScore` (type: `number`):

Only products whose shop scores at least this, out of 100 (e.g. `85`). Products whose shop has no score are dropped.

## `excludeKeywords` (type: `array`):

Drop the products whose title contains one of these WHOLE words (case and accents ignored): `art` drops "Art deco" but keeps "Smart watch". Several words in one entry (`hand made`) must appear together, in that order. Chinese, Japanese, Korean, Thai, Lao, Khmer and Burmese words are found anywhere in the title (no spaces there).

## `onlyNew` (type: `boolean`):

Skip the products that a previous run (same **Memory key**) already delivered: they are not saved and not charged as products. The results pages are still read (and charged) to find the new ones: with this option a keyword is read for at most the smaller of **Max products** and **Max products per keyword** ÷ 30 pages, rounded up (30 = one page per keyword at each run). First run = everything is new.

## `stateKey` (type: `string`):

Name of the memory used by **Only new products**. Give each schedule / task its own key (e.g. `lipstick-daily`) so that they do not share their memory. Letters, digits, `-` and `_`.

## `resetState` (type: `boolean`):

Forget everything remembered under this **Memory key** before the run: this run returns (and charges) every product again. Untick it afterwards.

## `maxConcurrency` (type: `integer`):

Maximum number of keywords searched in parallel. The pages of one keyword are always read one after the other.

## `maxRequestRetries` (type: `integer`):

Retries of a results page that could not be read, before the keyword stops there. A page that could not be read is never charged twice.

## `debugLog` (type: `boolean`):

Include debug messages in the run log.

## Actor input object example

```json
{
  "query": "口红",
  "searchQueries": [],
  "maxItems": 30,
  "maxItemsPerQuery": 0,
  "excludeKeywords": [],
  "onlyNew": false,
  "stateKey": "default",
  "resetState": false,
  "maxConcurrency": 4,
  "maxRequestRetries": 3,
  "debugLog": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "query": "口红",
    "maxItems": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("nice_dev/douyin-shop-products-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "query": "口红",
    "maxItems": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("nice_dev/douyin-shop-products-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "口红",
  "maxItems": 30
}' |
apify call nice_dev/douyin-shop-products-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nice_dev/douyin-shop-products-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/bnZ3PTl17sdHLG2h1/builds/eCIa9bbA0BnTTFR1I/openapi.json
