# TikTok Shop Scraper (`sleepmodesystems/tiktok-shop-scraper`) Actor

\[💰 $4.99 / 1K products] Scrape TikTok Shop products by keyword, shop, category or link in 10 markets: ~200 per search, ~2,000 with deep search. Get prices, sold counts, sales since your last run, stock per variant, shop and creator videos. No account, no proxy. Export JSON, CSV or Excel.

- **URL**: https://apify.com/sleepmodesystems/tiktok-shop-scraper.md
- **Developed by:** [Sleep Mode Systems](https://apify.com/sleepmodesystems) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.49 / 1,000 complete 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

**\[💰 $4.99 per 1,000 products]** Scrape TikTok Shop products by keyword, shop, category or link in 10 markets: 20 complete products for a search in ~12 seconds, a brand's whole shop (57 products) in ~14 seconds, with every variant's live stock, sold counts and the creator videos that sell each product. No account, no proxy. Export JSON, CSV or Excel.

### What can the TikTok Shop Scraper do?

The TikTok Shop Scraper **extracts product data from TikTok Shop** (https://shop.tiktok.com) in a single tool: **search** like you do in TikTok Shop's search box, read a **shop's whole catalogue**, a **category's best sellers**, or paste any **product link**. Every product comes with its **price and original price**, **units sold**, **every variant's live stock**, shipping, the shop, the **star breakdown** and the **creator videos** that sell it, and each run tells you how many were **sold since your previous run**.

<table>
<tr><th>📦 What you can extract</th><th>⚙️ Features &amp; integrations</th></tr>
<tr><td valign="top">

🛒 **Products** with price, discount, units sold <br>
📦 **Variants** with live stock and price <br>
🏪 **Shops**: rating, followers, units sold <br>
⭐ **Reviews**: star breakdown, top reviews <br>
🎬 **Creator videos** with plays, likes

</td><td valign="top">

🔎 **Search** by keyword, shop, category, link <br>
🌏 **10 markets**: US, Southeast Asia and more <br>
📈 **Sales since your last run** <br>
⬇️ **Export** to JSON, CSV, Excel or XML <br>
🦾 **API, webhooks**, Node.js & Python clients <br>
🤖 **LLM-ready data** for MCP, Claude, ChatGPT

</td></tr>
</table>

If you hunt winning products, track competitors' prices and sales, find the creators who sell in your niche or build a product database, the TikTok Shop Scraper gives you the products and everything around them in one run.

### What data can I scrape from TikTok Shop?

- 🛒 **Products**: *what sells, at what price.* Title, price, original price and discount, the price as shown, lowest and highest variant price, **units sold**, rating and review count, brand, badges (Flash sale, Free shipping...), images, full description, specifications, category path and whether it can be bought now.
- 📦 **Variants**: *what is in stock.* Every variant with its options (size, color...), price, original price, **live stock**, in-stock flag and purchase limit, plus the total stock of the product.
- 📈 **Sales over time**: *how fast it sells.* Units sold since your previous run that saw the product, and the count and time of that run. Schedule the actor daily or weekly to get sales per day or week.
- 🏪 **The shop on every row**: *who sells it.* Shop name, link and logo, rating, followers, products on sale, units sold, reviews, videos, and its business name and address when TikTok shows them.
- 🚚 **Shipping**: free or not, fee and original fee, delivery days and the delivery estimate.
- ⭐ **Reviews summary**: the number of reviews for each star rating, 1 to 5, and the reviews the product page shows (text, rating, date, verified purchase, variant, country, photos).
- 🎬 **Creator videos**: *who promotes it.* The TikTok videos that sell the product, with link, plays, likes, length, date, the creator and whether the creator earns a commission.

In a 20-product search ("vitamin c serum", US), every row had its price, units sold, variants with stock, specifications, shipping, star breakdown and category path; 45% had creator videos (7.8 per product on average). In a brand's shop (Goli Nutrition, 57 products), 88% of products had creator videos (14.7 on average).

### How much will scraping TikTok Shop cost?

The TikTok Shop Scraper uses **pay-per-event** pricing: you pay for each product it returns, nothing else. Repeats, products that were not found and inputs a market does not offer are not charged. Platform usage is included.

| Event | FREE | BRONZE | SILVER | GOLD |
|---|---|---|---|---|
| Complete product (per 1,000) | $4.99 | $4.29 | $3.49 | $2.49 |
| Essentials product (per 1,000) | $1.99 | $1.69 | $1.39 | $0.99 |
| Actor start | $0.00005 | $0.00005 | $0.00005 | $0.00005 |

The tiers are Apify's discount tiers; PLATINUM and DIAMOND pay the GOLD price. Creator videos, the star breakdown, sales since your last run, filters and deep search are included in the product price: no add-ons. A product that TikTok shows without its page details is charged as an essentials product.

#### Cost examples

| What you scrape | Products | FREE | GOLD |
|---|---|---|---|
| A keyword's ~200 products, complete | 200 | $1.00 | $0.50 |
| A brand's whole shop, complete | 57 | $0.28 | $0.14 |
| A broad keyword with deep search, essentials | ~2,000 | $3.98 | $1.98 |
| 50 keywords every week, complete | 10,000 | $49.90 | $24.90 |

### How do I use the TikTok Shop Scraper?

<a href="https://console.apify.com/actors/qG5cVeyE7G0AJE1hb/input"><img src="https://raw.githubusercontent.com/sleepmodesystems/actor-readme-images/main/tiktok-shop-scraper/tiktok-shop-scraper-how-it-works.png" alt="TikTok Shop Scraper, how it works: keywords, shops, categories or product links in, complete product rows out, exported as JSON, CSV or Excel" style="width:100%;"></a>

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open the [TikTok Shop Scraper](https://console.apify.com/actors/qG5cVeyE7G0AJE1hb) in Apify Console.
3. Pick the **TikTok Shop market**, then type a search in **Search TikTok Shop for**, or paste shops, categories or product links in **Products, shops, categories or links**.
4. Set **Products per search word or category**, and an order or filters if you want them.
5. Click **Save & Start**, then download your data as JSON, CSV, Excel or XML, or read it through the API.

### ⬇️ Input

Each search word and each link is read on its own; the order and filters apply to every search word and category. A link means the same as typing its value in its own field, and it is always read in its own market: a Singapore shop link reads the Singapore shop, whatever market you pick. A product found twice is delivered once.

<a href="https://console.apify.com/actors/qG5cVeyE7G0AJE1hb/input"><img src="https://raw.githubusercontent.com/sleepmodesystems/actor-readme-images/main/tiktok-shop-scraper/tiktok-shop-scraper-input.png" alt="TikTok Shop Scraper input form in Apify Console: market, search words, links, counts, order and filters" style="width:100%;"></a>

#### Search TikTok Shop

```json
{ "keywords": ["vitamin c serum", "led face mask"], "maxProductsPerKeyword": 200 }
```

TikTok Shop's own ranking for each word, ~200 products for a broad word, complete.

#### Find the best sellers for a keyword

```json
{ "keywords": ["phone case"], "sortBy": "best_sellers", "minPrice": 10, "maxPrice": 30, "fourStarsAndUp": true }
```

The best sellers between $10 and $30 rated 4 stars and up, as TikTok Shop ranks them.

#### Go deep: the whole market for a keyword

```json
{ "keywords": ["vitamin c serum"], "deepSearch": true, "maxProductsPerKeyword": 3000, "output": "essentials" }
```

Far past TikTok's ~200 per search: ~2,000 products for a broad word, across every price range. Products further down are less closely related to the word.

#### A shop's whole catalogue

```json
{ "startUrls": ["https://shop.tiktok.com/us/store/goli-nutrition/7495794203056835079"] }
```

Every product the shop has on sale, complete.

#### Southeast Asia

```json
{ "market": "sg", "keywords": ["sunscreen"], "maxProductsPerKeyword": 100 }
```

The Singapore shop in Singapore dollars. Malaysia, the Philippines, Thailand and Vietnam work the same way.

#### What to paste

<a href="https://console.apify.com/actors/qG5cVeyE7G0AJE1hb/input"><img src="https://raw.githubusercontent.com/sleepmodesystems/actor-readme-images/main/tiktok-shop-scraper/tiktok-shop-scraper-what-to-paste.png" alt="What to paste in TikTok Shop Scraper: search words, product links, shops and categories" style="width:100%;"></a>

| Paste this | You get |
|---|---|
| `https://shop.tiktok.com/us/pdp/…/<id>`, `https://www.tiktok.com/shop/pdp/<id>`, `…/view/product/<id>`, a share link, or a product id | that product |
| `https://shop.tiktok.com/us/store/<name>/<id>`, `https://www.tiktok.com/shop/store/<name>/<id>` | the shop's whole catalogue |
| `https://shop.tiktok.com/us/c/<name>/<id>` | the category's best sellers |
| `https://shop.tiktok.com/us/s?q=…`, `https://www.tiktok.com/shop/s/…`, `https://shop.tiktok.com/us/k/…` | that search |

#### Markets

| Market | Search | Products | Shops | Categories | Creator videos |
|---|---|---|---|---|---|
| United States | ✅ | ✅ | ✅ | ✅ | ✅ |
| Singapore, Malaysia, Philippines, Thailand, Vietnam | ✅ | ✅ | ✅ | ✅ | ✅ |
| Japan, Indonesia | ❌ | ✅ | ✅ | ✅ | ✅ |
| Mexico | ❌ | ✅ | ✅ | ❌ | ✅ |
| United Kingdom | ❌ | ✅ | first 20 | ✅ | ❌ |

Where a market has no keyword search on TikTok Shop's website, paste product, shop or category links. Germany, France, Italy, Spain, Ireland and Brazil show their shop only in TikTok's app: links from them are named in the run's message and not charged.

#### Fields

| Field | Type | Default | Meaning |
|---|---|---|---|
| `market` | text | us | us, sg, my, ph, th, vn, jp, id, mx, gb |
| `keywords` | list | | Search words, one per line, any language |
| `startUrls` | list | | Products, shops, categories or search links, or product ids |
| `maxProductsPerKeyword` | number | 200 | Products per search word or category |
| `deepSearch` | yes/no | no | Go past TikTok's ~200 per search word |
| `sortBy` | text | relevance | relevance, best_sellers, newest, price_low, price_high |
| `minPrice`, `maxPrice` | number | | Price range in the market's currency |
| `fourStarsAndUp` | yes/no | no | Only products rated 4 stars or more |
| `dealsOnly` | yes/no | no | Only products on a deal |
| `output` | text | complete | complete or essentials |
| `creatorVideos` | yes/no | yes | Creator videos in complete rows |
| `trackSales` | yes/no | yes | Units sold since your previous run |
| `maxItems` | number | | Products in total for the run |
| `minItems` | number | | Fail the run below this many products |

### ⬆️ Output

<a href="https://console.apify.com/actors/qG5cVeyE7G0AJE1hb/input"><img src="https://raw.githubusercontent.com/sleepmodesystems/actor-readme-images/main/tiktok-shop-scraper/tiktok-shop-scraper-output.png" alt="TikTok Shop Scraper output table: image, title, price, original price, discount, units sold, rating, reviews, brand, shop and stock" style="width:100%;"></a>

One row is one product. The Output tab has three views: Products, Variants, shipping and shop, and Reviews and creator videos.

#### 🛒 Product data sample

```json
{
  "productId": "1729527313880355335",
  "url": "https://shop.tiktok.com/us/pdp/x/1729527313880355335",
  "title": "Goli Ashwagandha & Vitamin D Gummy - Mixed Berry, KSM-66, Vegan, Plant Based, Non-GMO",
  "price": 19.47,
  "originalPrice": 24.7,
  "discountPercent": 21,
  "currency": "USD",
  "soldCount": 1308406,
  "soldSincePreviousRun": null,
  "rating": 4.5,
  "reviewCount": 94584,
  "brand": "Goli",
  "shop": {
    "id": "7495794203056835079",
    "name": "Goli Nutrition",
    "url": "https://shop.tiktok.com/us/store/goli-nutrition/7495794203056835079",
    "rating": 4.6,
    "followers": 600618,
    "productCount": 57,
    "soldCount": 5841209,
    "businessName": "Goli Nutrition Inc."
  },
  "labels": ["Flash sale", "Black Friday", "Free shipping"],
  "freeShipping": true,
  "totalStock": 321699,
  "variants": [
    { "skuId": "1729527298861535751", "options": { "Size": "1 Bottle" }, "price": 19.47, "originalPrice": 24.7, "stock": 321699, "inStock": true, "purchaseLimit": 200 }
  ],
  "categoryPath": "Health > Nutrition & Wellness > Vitamins, Minerals & Wellness Supplements > Vitamins Supplements",
  "shipping": { "free": true, "fee": 0, "originalFee": 4.95, "minDays": 5, "maxDays": 8, "estimate": "Nov 24 - Nov 27", "method": "Standard shipping" },
  "ratingBreakdown": { "1": 5779, "2": 1516, "3": 3738, "4": 7825, "5": 75726 },
  "topReviews": [
    { "rating": 5, "text": "More straight, more healthy than ever, peaceful mind ...", "date": "2026-07-09T14:46:53Z", "verifiedPurchase": true, "variant": "1 Bottle", "country": "US" }
  ],
  "videos": [
    { "url": "https://www.tiktok.com/@bestrunupss/video/7397839934461136158", "plays": 18501260, "likes": 1724204, "durationSeconds": 15, "creatorName": "bestrunupss", "creatorEarnsCommission": true }
  ],
  "videoCount": 9,
  "source": "shop",
  "detailLevel": "complete",
  "market": "US"
}
```

#### Fields

| Field | Meaning |
|---|---|
| `productId`, `url`, `title` | The product |
| `price`, `originalPrice`, `discountPercent`, `currency`, `priceText`, `priceMin`, `priceMax` | Prices in the market's currency |
| `soldCount`, `soldSincePreviousRun`, `previousSoldCount`, `previousRunAt` | Units sold, and since your previous run |
| `rating`, `reviewCount`, `ratingBreakdown`, `topReviews` | Ratings and the reviews shown on the page |
| `brand`, `labels`, `freeShipping`, `available` | Brand, badges, free shipping, on sale now |
| `variants`, `options`, `variantCount`, `totalStock` | Every variant with price and stock |
| `description`, `specifications`, `categoryPath`, `categories`, `images`, `descriptionImages` | The product page |
| `shipping` | Fee, original fee, delivery days and estimate |
| `shop` | The shop, with rating, followers, units sold and business details |
| `videos`, `videoCount` | Creator videos that sell the product |
| `aiSummary`, `warnings` | TikTok's own summary and keywords, safety notices |
| `searchWord`, `searchRank`, `source`, `sourceInput` | How the product was found |
| `detailLevel`, `market`, `scrapedAt` | Complete or essentials row, market, time |

Essentials rows have the card fields: price, original price, discount, currency, units sold, rating, reviews, brand, shop, image, badges and how the product was found.

#### Run summary

Each run saves a summary (key-value store, `SUMMARY`): `products`, `completeRows` and `essentialsRows`, `rowsWithoutDetails` (products TikTok showed without their page details, charged as essentials), `notFound` (links or ids TikTok Shop does not know), `notAnswered` (searches or links to run again), `notOffered` (inputs a market does not have on the web) and the run's plan in words.

#### 📝 Notes and limits

- A search word returns TikTok Shop's own ranking, ~200 products for a broad word; deep search reads further, across every price range.
- `soldSincePreviousRun` fills from the second run that sees a product in your Apify account.
- Units sold, stock and review counts are exact numbers, not rounded. Prices are in the market's own currency.
- The product page shows a handful of reviews; every review's star is counted in `ratingBreakdown`.
- The United Kingdom shows the first 20 products of a shop on the web, and no creator videos.

### What can you do with TikTok Shop data?

#### 🏆 [Find Winning Products on TikTok Shop](https://apify.com/sleepmodesystems/tiktok-shop-scraper/examples/tiktok-shop-winning-products-finder)

Find what sells in your niche before you source it: TikTok Shop's best sellers for your keywords with units sold, price, stock, shop and the creator videos behind them. **Recipe:** 1. Type your niche keywords in **Search TikTok Shop for**. 2. Set **Order** to Best sellers, a price range and **4 stars and up**. 3. Sort the rows on `soldCount` and read the `videos` of the top ones. Run it every week.

#### 📈 Track sales and prices week by week

Follow how fast products sell and how their prices move. **Recipe:** 1. Paste the products or the shops you follow. 2. Keep **Sales since your previous run** on. 3. Schedule it daily or weekly: `soldSincePreviousRun` gives the units sold between runs, `price` and `discountPercent` the price changes.

#### 🏪 Watch competitor shops

See a competitor's whole catalogue, what is in stock and what they promote. **Recipe:** 1. Paste the shop links. 2. Run it with complete rows: every product with its variants' stock, price, units sold and creator videos. 3. Compare runs to spot new products, stock-outs and price cuts.

### TikTok Shop scrapers compared

| | TikTok Shop Scraper | silentflow TikTok Shop Scraper | pro100chok TikTok Shop Scraper | coregent Product Scraper | pratikdani TikTok Shop Scraper |
|---|---|---|---|---|---|
| Price per 1,000 complete products | $4.99 | $5.50 | $2.00 | $9.00 | $25.00 |
| Keyword search | ✅ | ✅ | ✅ | ✅ | ❌ |
| ~2,000 per keyword | ✅ | ❌ | ❌ | ❌ | ❌ |
| Stock per variant | ✅ | ✅ | ✅ | ✅ | ❌ |
| Creator videos | ✅ | ✅ | ❌ | ❌ | ❌ |
| Sales since last run | ✅ | ✅ | ❌ | ❌ | ❌ |
| Whole shops | ✅ | ✅ | ✅ | ✅ | ❌ |
| Full review lists | ❌ | ✅ | ✅ | ✅ | ❌ |

### How do you use the TikTok Shop Scraper with AI agents (Claude, ChatGPT, Cursor)?

The [Apify MCP server](https://mcp.apify.com/) lets AI agents run the TikTok Shop Scraper and read its results:

```
https://mcp.apify.com/?tools=sleepmodesystems/tiktok-shop-scraper
```

```json
{
  "mcpServers": {
    "tiktok-shop-scraper": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.apify.com/?tools=sleepmodesystems/tiktok-shop-scraper"]
    }
  }
}
```

Example prompts:

- "Find the 50 best-selling phone cases on TikTok Shop US under $20 and list which creators promote them."
- "Compare Goli Nutrition's whole TikTok Shop catalogue with last week's: what sold most and what went out of stock?"
- "What are the top sunscreens on TikTok Shop Singapore, with their prices in SGD and units sold?"

https://www.youtube.com/watch?v=BKu8H91uCTg

#### Why agents should choose the TikTok Shop Scraper

- **Complete rows by default**: price, units sold, every variant's stock, shipping and the star breakdown on every product of a 20-product search.
- **One call for every job**: keywords, shops, categories and product links, in 10 markets, in the same run.
- **Filters as inputs**: TikTok Shop's own order (best sellers, newest, price), price range, 4 stars and up, deals.
- **Errors an agent can act on**: input it cannot read ends the run in seconds with what to fix and nothing charged; links TikTok Shop does not know and markets without web search are named in the run's message, not charged.
- **Price**: $4.99 per 1,000 complete products on FREE, $2.49 on GOLD; no setup, no account, no proxy.

#### Quick reference for AI agents

- Actor: `sleepmodesystems/tiktok-shop-scraper`.
- One row per product.
- Smallest input: `{"keywords": ["phone case"]}` gives ~200 complete US products.
- Common inputs: `market`, `startUrls` (products, shops, categories, searches), `maxProductsPerKeyword`, `sortBy`, `minPrice` / `maxPrice`, `deepSearch`, `output` (`complete` or `essentials`).
- Main fields: `productId`, `url`, `title`, `price`, `originalPrice`, `currency`, `soldCount`, `soldSincePreviousRun`, `rating`, `reviewCount`, `shop`, `variants`, `totalStock`, `videos`.
- `null` means TikTok Shop does not show the value: no reviews yet (`rating`), no brand, no creator videos, or an essentials row's page fields.
- The run summary (`SUMMARY` in the key-value store) counts complete and essentials rows and names inputs not found, not answered or not offered in a market.
- Zero rows: nothing matched, or the market has no keyword search on the web; the status message says which, and nothing is charged.

### ❓ Frequently Asked Questions

#### How many products can I get for one keyword?

TikTok Shop shows ~200 products for a broad word. Turn on **Deep search** and set the count to 2,000 or more: ~2,000 products for a word like "vitamin c serum", across every price range.

#### Can I get every product of a shop?

Yes. Paste the shop's link: every product it has on sale is read (the United Kingdom shows the first 20 on the web).

#### How do I get sales per day or week?

Keep **Sales since your previous run** on and schedule the actor. From the second run that sees a product, `soldSincePreviousRun` gives the units sold since the previous run, with `previousRunAt`.

#### Which markets does it support?

The United States, Singapore, Malaysia, the Philippines, Thailand and Vietnam for everything; Japan, Indonesia, Mexico and the United Kingdom for product, shop and category links (see the Markets table). Germany, France, Italy, Spain, Ireland and Brazil show their shop only in TikTok's app.

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

The TikTok Shop Scraper collects only public data that anyone can see without logging in, and you choose what to collect. You are responsible for how you use the data, including shop business details, reviewers' masked names and creators' names, under TikTok's terms and laws such as the GDPR and CCPA. The TikTok Shop Scraper is an independent tool by Sleep Mode Systems. It is not affiliated with, endorsed by or sponsored by TikTok or ByteDance; TikTok is a trademark of its owner.

#### Can I integrate TikTok Shop data with other apps?

Yes. Export to JSON, CSV, Excel or XML, or connect Apify's integrations (webhooks, Zapier, Make, Google Drive) to send results anywhere.

#### Can I use the TikTok Shop Scraper with the Apify API?

Yes. Start runs and read results through the [Apify API](https://docs.apify.com/api/v2), or the Node.js and Python clients.

#### The TikTok Shop Scraper is not working?

Open an issue on the Issues tab or write to sleepmodesystems@proton.me; we answer fast. If it helped you, a review on the Store takes a minute and helps others find it.

#### Can I use the TikTok Shop Scraper through an MCP server?

Yes: `https://mcp.apify.com/?tools=sleepmodesystems/tiktok-shop-scraper`. See the [API's MCP page](https://apify.com/sleepmodesystems/tiktok-shop-scraper/api/mcp) and [the AI agents section](#how-do-you-use-the-tiktok-shop-scraper-with-ai-agents-claude-chatgpt-cursor).

# Changelog

This Actor's version history is a separate document: https://apify.com/sleepmodesystems/tiktok-shop-scraper/changelog.md

# Actor input Schema

## `market` (type: `string`):

Which country's TikTok Shop to read for search words and product ids. Links are always read in the market they come from. Keyword search: United States and Southeast Asia. Product, shop and category links also work for Japan, Indonesia, Mexico and the United Kingdom. Germany, France, Italy, Spain, Ireland and Brazil show their shop only in TikTok's app.

## `keywords` (type: `array`):

Words as you would type them in TikTok Shop's search box, one search per line, in any language. Example: vitamin c serum. Each word returns TikTok's own ranking, ~200 products for a broad word. Available for the United States and Southeast Asia.

## `startUrls` (type: `array`):

Any TikTok Shop link from the United States, Southeast Asia, Japan, Indonesia, Mexico or the United Kingdom: a product (shop.tiktok.com/us/pdp/..., tiktok.com/shop/pdp/..., view/product/..., a share link or just the product id), a shop (its whole catalogue), a category (its best sellers) or a search page. Example: https://shop.tiktok.com/us/store/goli-nutrition/7495794203056835079

## `maxProductsPerKeyword` (type: `integer`):

How many products to return for each search word and category. TikTok shows ~200 for a broad word; turn on deep search below to go further.

## `deepSearch` (type: `boolean`):

Reads far more of the market for each search word: ~2,000 products for a broad word such as "vitamin c serum", across every price range. Products further down are less closely related to the word. Set the count above to 2000 or more to use it.

## `sortBy` (type: `string`):

Relevance (TikTok's default), best sellers, newest, or price.

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

Only products from this price, in the market's currency (US$, S$, RM...). Example: 10.

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

Only products up to this price, in the market's currency. Example: 40.

## `fourStarsAndUp` (type: `boolean`):

Only products rated 4 stars or more.

## `dealsOnly` (type: `boolean`):

Only products on a deal (flash sales, discounts).

## `output` (type: `string`):

Complete: everything on the product page (every variant with live stock and price, full description, specifications, shipping, the shop with its scores, the 1-5 star breakdown and the reviews shown, the category path, creator videos). Essentials: the product card (price, sold count, rating, shop, image, badges), cheaper and faster.

## `creatorVideos` (type: `boolean`):

Complete rows: the TikTok videos that sell each product, with plays, likes, the creator, the date and whether the creator earns a commission.

## `trackSales` (type: `boolean`):

Each product gets how many were sold since the last run in your account that saw it (from the second run on). Schedule the actor daily or weekly to get sales per day or week.

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

Stop after this many products for the whole run. Empty = no limit.

## `minItems` (type: `integer`):

For monitoring: the run fails when it delivers fewer products than this. Empty = never.

## Actor input object example

```json
{
  "market": "us",
  "keywords": [
    "vitamin c serum"
  ],
  "maxProductsPerKeyword": 20,
  "deepSearch": false,
  "sortBy": "relevance",
  "fourStarsAndUp": false,
  "dealsOnly": false,
  "output": "complete",
  "creatorVideos": true,
  "trackSales": true
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "keywords": [
        "vitamin c serum"
    ],
    "maxProductsPerKeyword": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("sleepmodesystems/tiktok-shop-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 = {
    "keywords": ["vitamin c serum"],
    "maxProductsPerKeyword": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("sleepmodesystems/tiktok-shop-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 '{
  "keywords": [
    "vitamin c serum"
  ],
  "maxProductsPerKeyword": 20
}' |
apify call sleepmodesystems/tiktok-shop-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sleepmodesystems/tiktok-shop-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/qG5cVeyE7G0AJE1hb/builds/WcIuIgTrde9vJijsj/openapi.json
