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

TikTok Shop scraper for product research. Search products by keyword, optionally inside a category, or paste product links. Export price, discount, units sold, estimated 7- and 28-day sales and revenue (GMV), commission rate, rating and shop. 15 markets. No login. $0.15 per 100 products.

- **URL**: https://apify.com/deepmine/tiktok-shop-scraper.md
- **Developed by:** [DeepMine](https://apify.com/deepmine) (community)
- **Categories:** E-commerce, Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 11 total users, 4 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.99 / 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

## TikTok Shop Scraper

TikTok Shop scraper for product research: type a keyword or paste product links, and get each product with its
price, units sold, and estimated sales and revenue (GMV) for the last 7 and 28 days. No login and no cookies.

Three of the 100 products from the prefilled run (keyword `ergo chair`, United States):

| Rank | Product | Price | Sold (all time) | Sold 7d (est.) | Revenue 28d (est.) | Commission | Shop |
|---:|---|---:|---:|---:|---:|---:|---|
| 2 | TRALT Ergonomic Adjustable Office Computer Task Chair | $181.99 | 180 | 26 | $8,585 | 6% | TRALT |
| 5 | SYMINO Ergonomic Adjustable Gaming Chair | $199.99 | 1,750 | 250 | $118,368 | 13% | syminous |
| 19 | Sweetcrispy Cozy Modern Reclining Office Chair | $94.99 | 62,559 | 302 | $66,865 | 6% | Sweet Furniture |

<sub>Collected Nov 13, 2026. Rank is the product's place in TikTok Shop's search. Sales and revenue are estimates.</sub>

**Price: $0.15 per 100 products on Starter** ($1.49 per 1,000). The prefilled run (100 products) costs about $0.15,
or $0.18 on the Free plan. Sales analytics are included, and there's no start fee.

### Try it

```json
{"queries": ["ergo chair"], "maxResultsPerQuery": 100}
```

The market is the United States unless you pick another. In our test this run took about 8 seconds and filled the
7-day and 28-day sales on 93 of the 100 products.

### What you get for each product

- **The product:** name, link, image, price, original price and discount, currency and the USD price, rating,
  review count, all-time units sold, variants and labels such as "Free shipping".
- **Sales analytics:** units sold and revenue yesterday and over the last 7, 14 and 28 days, all-time revenue,
  7-day growth, the creator commission rate, the share of orders that came through creators, the number of
  creators, videos and lives selling it, the launch date, and the last 7 days of daily sales. These are FastMoss
  estimates, and each row says so.
- **The shop:** name, link, logo and the verified badge.
- **Product page details (optional, US store):** every image, the video, category, specifications, description,
  variants with stock, shipping fee, delivery time, where it ships from, the shop's rating, followers and product
  count, the 3 top reviews and the star counts. Turn on "Add product page details". There's no extra charge, but
  runs take longer.

The table has three views: **Products**, **Sales analytics** and **Product page**.

### Ways to search

- **Keywords:** what you'd type in TikTok Shop's search, one per line. Each product is saved once per run, even
  when several keywords find it.
- **Product links or IDs:** paste TikTok Shop product links instead of keywords. In the US each link gives the full
  product page.
- **Categories:** add category links or IDs to narrow a keyword search (US store). They need at least one keyword.
- **Sort and filter:** sort by 7-day sales, 28-day sales or revenue, and filter by units sold, 7-day sales, price,
  rating, reviews, discount, free shipping or shop.

**Markets:** 15 with products: US, GB, ID, MY, PH, SG, TH, VN, BR, MX, ES, DE, FR, IT and JP. In the US, rows come
from TikTok Shop's own search. Where that search doesn't answer, they come from FastMoss's search for that market,
with the same fields, usually 40 to 100 products per keyword (52 for "lip gloss" in GB). Ireland is on the list but
gives no products yet.

### Price

You pay per product saved, and each product is charged once per run. That's $1.79 per 1,000 products on the Free
plan, $1.49 on Starter, $1.29 on Scale and $0.99 on Business. Sales analytics and product page details are
included.

**Moving from TikTok Shop Search Pro?** Its input works as is, and its rows keep the same keys.

### Related Actors

- [TikTok Shop Reviews Scraper Pro](https://apify.com/deepmine/tiktok-shop-reviews-pro): every review of a product.
- [TikTok Shop Creators Scraper](https://apify.com/deepmine/tiktok-shop-creators-rust): creator stats and sales.
- [TikTok Shop Top Products & Best Sellers](https://apify.com/deepmine/tiktok-shop-winning-products): best sellers
  by category.
- [TikTok Shop Affiliate Products](https://apify.com/deepmine/tiktok-shop-affiliate-products): products ranked for
  affiliates.

### For developers

The Actor uses Mycelium v1.0.0 and the curl HTTP engine. The Dockerfile copies the prebuilt binary into
distroless Debian, so Apify never compiles Rust. The default and minimum memory are 512 MB.

Before building or testing, extract `libcurl-impersonate.a` from the
[2.2.2 Linux x86-64 release archive](https://github.com/lexiforest/curl-impersonate/releases/download/v2.2.2/libcurl-impersonate-v2.2.2.x86_64-linux-gnu.tar.gz)
and set `ACTOR_CORE_CURL_DIR` to the absolute path of its directory. Mycelium checks the archive's
checksum at build time and links it into the binary.

```sh
cargo test
cargo build --release      # target/release/ttsp
```

To push a build, commit first, build the binary on that commit, then push under a new Apify version:

```sh
python3 tools/push.py 0.10           # build tag beta; --dry-run shows the upload's tree without pushing
```

The tool saves the exact upload (source, binary and Dockerfile) as the branch `build/<version>` on GitHub before
it calls `apify push`, so every Apify build can be traced to a commit.

How it works:

- **Search:** each keyword's pages use a sticky proxy session. Three fresh sessions race for the first page.
  If the winning session stops answering, another starts from page one and skips products already seen.
- **Analytics:** each product is looked up on FastMoss by its id while the walk goes on. A lookup that hasn't
  answered after 1.5 seconds also goes out on a second IP.
- **Keywords:** up to three are searched at once, and their rows still reach the dataset in keyword order.
- **Product pages:** the product page call runs alongside the analytics lookup. If TikTok says it's busy
  (code 100000), the same session retries after a short wait. A 404 is checked on fresh US Apify Proxy sessions.
- **Delivery:** Mycelium saves and accounts for each distinct product once, with bounded final writes. A valid
  empty search or confirmed missing product finishes without a dataset row or charge. After migration, rows
  already in the dataset count toward the keyword and run limits.
  The run summary reports confirmed rows in `rowsSaved`. Mycelium v1.0.0 reserves `eventsCharged` for SDK
  diagnostics and removes it from `OUTPUT`; check Apify for charges.

Where things live:

- `src/main.rs`: the run (input, the search walk, lookups, filters, charging, OUTPUT)
- `src/tiktok.rs`: TikTok Shop's search call and the search row
- `src/pdp.rs`: the product page call and its fields
- `src/fastmoss.rs`: FastMoss lookups, analytics fields and FastMoss-only rows
- `src/input.rs`: input fields and filters
- `src/contract.rs`: the Search Pro compatibility lists (tests fail if a key goes missing)
- `testdata/`: recorded answers used by the tests

### Feedback

Getting good results? [Rate this Actor](https://apify.com/deepmine/tiktok-shop-scraper/reviews): it takes 10
seconds and helps others find it. Missing a field or a market? Open an issue on the Issues tab.

# Actor input Schema

## `queries` (type: `array`):

What you'd type in TikTok Shop's search, one per line, e.g. "led face mask" or "phone case". One row per product. Leave empty when you only paste product or shop links below.

## `productUrls` (type: `array`):

TikTok Shop product links (shop.tiktok.com/.../pdp/...) or product IDs. One row per product with its product page (US store): images, video, variants with stock, shipping and seller stats, plus sales analytics.

## `shopUrls` (type: `array`):

Not read yet by this Actor; kept so inputs from TikTok Shop Search Pro still run (OUTPUT notes it).

## `maxResultsPerQuery` (type: `integer`):

The maximum number of unique products to save per keyword. The Console starts at 100. You pay per saved product.

## `includeDetails` (type: `boolean`):

Also open each product's page and add every image, the video, category, specifications, description, variants with stock, shipping fee and delivery time, ships-from, the shop's rating, followers and product count, the 3 top reviews and the star counts. No extra charge, but runs take longer. US store only.

## `includeSalesAnalytics` (type: `boolean`):

Add units sold and revenue for yesterday and the last 7, 14 and 28 days, 7-day growth, commission rate, the share of orders that came through creators, and creator, video and live counts. These are FastMoss estimates. No extra charge.

## `region` (type: `string`):

TikTok Shop market to search. 15 markets with products (Ireland gives none yet); where TikTok's own search does not answer, rows come from FastMoss's product search for that market.

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

TikTok Shop's own order. Best sellers = TikTok Shop's best-seller ranking, not a strict order by units sold. TikTok Shop's search doesn't sort by price.

## `categoryIds` (type: `array`):

TikTok Shop category links (tiktok.com/shop/c/...) or IDs, e.g. 849416 = Personal Care Appliances. Narrows every keyword search to these categories (US store; use second-level categories). Needs at least one keyword: categories alone are not listed yet. Empty = all categories.

## `minSold` (type: `integer`):

Keep only products with at least this many lifetime units sold. Empty = no limit.

## `minSold7d` (type: `integer`):

Drop products that sold fewer units in the last 7 days.

## `maxSold` (type: `integer`):

Keep only products with at most this many lifetime units sold (find new or rising products). Products with no sales yet pass. Empty = no limit.

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

Keep only products priced at or above this. Empty = no limit.

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

Keep only products priced at or below this. Empty = no limit.

## `minRating` (type: `number`):

Keep only products rated at least this (1-5); products with no rating yet are left out. Empty = no limit.

## `minReviews` (type: `integer`):

Keep only products with at least this many reviews. Empty = no limit.

## `onlyDiscounted` (type: `boolean`):

Keep only products that are on sale (they have an original price and a % off).

## `minDiscountPercent` (type: `integer`):

Keep only products at least this much off their original price (20 = 20% off or more). Empty = no limit.

## `onlyFreeShipping` (type: `boolean`):

Keep only products TikTok Shop marks with free shipping.

## `onlySellers` (type: `array`):

Keep only products from these shops: a shop link, a seller ID, or the shop name (whole words, any case). Empty = every shop.

## `excludeSellers` (type: `array`):

Skip products from these shops: a shop link, a seller ID, or the shop name (whole words, any case: "jisulife" skips "JisuLife US").

## `excludeTitleWords` (type: `array`):

Skip products whose title has one of these words or phrases (whole words, any case: "case" skips "Phone Case" but not "Suitcase").

## `requireAllQueryTokens` (type: `boolean`):

Off: every product TikTok Shop shows for the keyword, in its order. On: only products whose title has every word of the keyword.

## `minimumQueryTokenMatches` (type: `integer`):

A looser version of the option above, used only when it is off. Empty = keep every product.

## `trackChanges` (type: `boolean`):

Not read yet by this Actor; kept so inputs from TikTok Shop Search Pro still run (OUTPUT notes it).

## `historyStoreName` (type: `string`):

Not read yet by this Actor; kept so inputs from TikTok Shop Search Pro still run (OUTPUT notes it).

## `includeRawProduct` (type: `boolean`):

Adds rawProduct, TikTok Shop's full product payload, to each row. Turn it off for smaller, cleaner rows. On for API calls that don't send it.

## `maxPagesPerQuery` (type: `integer`):

Most result pages per keyword or shop (25-30 products each). Stops early when TikTok Shop has no more.

## `requestTimeoutSec` (type: `integer`):

Per-request HTTP timeout. Increase if you see frequent timeouts on slow proxy routes.

## `maxFetchRetries` (type: `integer`):

Attempts per page request, each from a new IP, before the page counts as refused.

## `queryRetryAttempts` (type: `integer`):

How many other IPs to try per query when TikTok Shop gives a short or refused answer.

## `proxyConfiguration` (type: `object`):

Apify's datacenter proxy is enough.

## Actor input object example

```json
{
  "queries": [
    "ergo chair"
  ],
  "maxResultsPerQuery": 100,
  "includeDetails": false,
  "includeSalesAnalytics": true,
  "region": "US",
  "sortBy": "relevance",
  "onlyDiscounted": false,
  "onlyFreeShipping": false,
  "onlySellers": [
    "https://www.tiktok.com/shop/store/goodies/7495657286590434018"
  ],
  "excludeSellers": [
    "https://www.tiktok.com/shop/store/goodies/7495657286590434018"
  ],
  "excludeTitleWords": [
    "refurbished",
    "phone case"
  ],
  "requireAllQueryTokens": false,
  "trackChanges": false,
  "includeRawProduct": false,
  "maxPagesPerQuery": 10,
  "requestTimeoutSec": 30,
  "maxFetchRetries": 5,
  "queryRetryAttempts": 5,
  "proxyConfiguration": {
    "useApifyProxy": 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 = {
    "queries": [
        "ergo chair"
    ],
    "maxResultsPerQuery": 100,
    "includeRawProduct": false,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("deepmine/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 = {
    "queries": ["ergo chair"],
    "maxResultsPerQuery": 100,
    "includeRawProduct": False,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("deepmine/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 '{
  "queries": [
    "ergo chair"
  ],
  "maxResultsPerQuery": 100,
  "includeRawProduct": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call deepmine/tiktok-shop-scraper --silent --output-dataset

```

## MCP server setup

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