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

Scrape TikTok Shop products by keyword, product, store or category link: prices, discounts, units sold, ratings, sellers, stock, SKUs, specs, shipping and reviews. US plus Vietnam, Malaysia, Philippines, Thailand and Singapore. No login.

- **URL**: https://apify.com/calm_builder/tiktok-shop-scraper.md
- **Developed by:** [Coder](https://apify.com/calm_builder) (community)
- **Stats:** 2 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

Scrape TikTok Shop products by keyword, product link, store or category, and get prices, sales, ratings, sellers and reviews as clean, structured data, fast.

Add keywords or links, choose how much detail you need, and export the results as JSON, CSV or Excel, or pull them through the Apify API. Results appear in your dataset while the run is still going.

### What This Actor Does

- **Keyword search**: the products TikTok Shop shows for a search, up to a few hundred per keyword
- **Product links**: everything on the product page
- **Store links**: a seller's **whole catalogue**
- **Category links**: the category and **all its subcategories**, so large categories go into the thousands of products
- Every product has **price, original price, discount, currency, units sold, rating, review count**, brand, images, labels such as free shipping, and the **seller**
- **Full product details** (optional): stock, every variant (SKU) with its own price and stock, specifications, description, categories, shipping fee and delivery time, 1-5 star rating breakdown, and seller details (rating, followers, products, units sold, official shop label, business name)
- **Reviews** (optional): rating, text, date, variant, verified purchase, reviewer and photos, in their own table
- **Filters and sorting**: price range, minimum units sold, minimum rating; best selling, price, top rated, most reviewed
- **Countries**: United States, plus keyword search in Vietnam, Malaysia, the Philippines, Thailand and Singapore with local currency prices

### Best For

- Product research and finding winning products
- Price and discount monitoring
- Competitor and seller catalogue tracking
- Review analysis and customer insight
- Building datasets for dashboards, BI or AI workflows

### Input

| Field                       | What it does                                                                          |
| --------------------------- | ------------------------------------------------------------------------------------- |
| Keywords                    | What to search TikTok Shop for, one per row                                           |
| TikTok Shop links           | Product, store, category or Shop search links (United States)                         |
| Country                     | Which TikTok Shop to search; prices come in that country's currency                   |
| Maximum products per input  | How many products to collect for each keyword, store or category                      |
| Include full product details| Adds stock, SKUs, specifications, description, shipping and seller details            |
| Include reviews             | Also collects each product's reviews into the Reviews table                           |
| Maximum reviews per product | How many reviews to collect for each product                                          |
| Sort products by            | TikTok Shop order, best selling, price, top rated or most reviewed                    |
| Minimum / maximum price     | Only products in this price range                                                     |
| Minimum units sold          | Only products that sold at least this many units                                      |
| Minimum rating              | Only products rated at least this high                                                |

#### Example input

```json
{
    "keywords": ["led face mask"],
    "startUrls": [
        { "url": "https://shop.tiktok.com/us/store/goli-nutrition/7495794203056835079" },
        { "url": "https://shop.tiktok.com/us/c/phone-cases/909576" }
    ],
    "country": "us",
    "maxProductsPerInput": 100,
    "includeDetails": true,
    "includeReviews": true,
    "maxReviewsPerProduct": 50,
    "sortBy": "best_selling"
}
```

### Output

Products go to the default dataset, one row per product. Reviews (when on) go to the **Reviews** dataset. Both are shown on the Output tab, and every field is included when you export or use the API.

#### Product fields

| Field | Description |
| --- | --- |
| `id`, `title`, `url` | Product ID, name and link |
| `price`, `originalPrice`, `discountPercent`, `currency` | Current price, price before discount, discount and currency |
| `soldCount`, `rating`, `reviewCount` | Units sold, average rating, number of reviews |
| `brand`, `image`, `images`, `labels`, `freeShipping` | Brand, main image, all images, labels such as Free shipping |
| `seller` | Shop `id`, `name`, `url`, `logo`; with full details also `rating`, `followers`, `productCount`, `soldCount`, `reviewCount`, `videoCount`, `label` (for example OFFICIAL SHOP), `businessName` |
| `source` | Your input (`input`), its type and the product's `position` in it |
| `country`, `scrapedAt` | TikTok Shop country and collection time |

With **full product details** on (and always for product links):

| Field | Description |
| --- | --- |
| `stock` | Units in stock across all variants |
| `skus` | Each variant: `id`, `name`, `price`, `originalPrice`, `stock`, `available` |
| `specifications` | Name and value pairs, for example Brand, Material |
| `description` | Product description as text |
| `categories`, `categoryIds` | Category path from top level down |
| `shipping` | `free`, `fee`, `originalFee`, `method`, `minDays`, `maxDays`, `estimatedDelivery` |
| `ratingBreakdown` | Number of reviews per star, 1-5 |
| `status` | `available` or `unavailable` |

#### Review fields

| Field | Description |
| --- | --- |
| `reviewId`, `productId`, `productTitle`, `productUrl` | Review and the product it belongs to |
| `rating`, `text`, `createdAt` | Stars, review text and date |
| `variant`, `verifiedPurchase`, `incentivized` | Variant bought, verified purchase and incentivized flags |
| `reviewerName`, `reviewerAvatar`, `images` | Reviewer (as TikTok shows it) and review photos |
| `reviewCountry` | Reviewer's country |

### How To Use

1. Add keywords, or paste product, store or category links.
2. Choose the country and how many products per input.
3. Optionally turn on full product details or reviews, and add filters or a sort order.
4. Run the Actor and open the **Output** tab, export the results, or read them through the Apify API.

### Pricing

This Actor uses pay-per-event pricing, so you only pay for results you receive:

- **Product**: each product saved to your dataset
- **Product details** (optional add-on): each product saved with its full product page (always included for product links)
- **Review**: each review saved to your dataset
- **Actor start**: a small fee each time a run starts

Filters and sorting are included at no extra cost. A product whose full details could not be loaded is saved with its basic fields and not charged for details. Current prices for each Apify plan are shown on the Actor's Pricing tab.

If a run reaches the maximum cost you set for it, it stops cleanly and keeps everything collected so far.

#### Free plan

On the Apify free plan every feature is available to try, with smaller amounts per run: up to **3** inputs, **20** products per input and **10** reviews per product. Upgrade to a paid Apify plan to remove these limits.

### Best Practices

- Use **store links** to get a seller's full catalogue, and **category links** for broad market research.
- Leave full details off when you only need prices and sales; turn it on for stock, variants and shipping.
- Sorting looks at a wider set of products first, so it works best with a realistic maximum.

### FAQ

#### How many products can I get per keyword?

TikTok Shop itself shows a few hundred products for a search, and this Actor collects up to that. For more, add related keywords as extra inputs, or use category links, which include every subcategory.

#### Which countries are supported?

The United States for everything. Vietnam, Malaysia, the Philippines, Thailand and Singapore for keyword search, with prices in local currency.

#### Is the units sold number exact?

It is the number TikTok Shop shows for the product, counted since it was listed.

### Responsible Use

Only collect public data, and use it in line with TikTok's terms, data protection laws such as GDPR, and the rights of the people in the data.

### Troubleshooting

- **Fewer products than requested**: the keyword may be niche, or your filters strict. Loosen the filters or add more keywords.
- **A link was skipped**: product, store and category links work for the United States; for other countries, search by keyword.
- **Something else**: open an issue on the Actor's Issues tab with your run link.

# Actor input Schema

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

What to search TikTok Shop for, one per row, as you would type it into the Shop search bar.

Examples: `led face mask`, `phone case`, `lip gloss`

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

Product, store, category or Shop search links (United States).

- Product: `https://shop.tiktok.com/us/pdp/.../1729527313880355335`
- Store: `https://shop.tiktok.com/us/store/goli-nutrition/7495794203056835079` (the whole catalogue)
- Category: `https://shop.tiktok.com/us/c/phone-cases/909576` (subcategories included)
- Search: `https://shop.tiktok.com/us/s?q=led+mask`

## `country` (type: `string`):

Which TikTok Shop to search. Prices come in that country's currency. Product, store and category links, full details and reviews are available for the United States; the other countries support keyword search.

## `maxProductsPerInput` (type: `integer`):

How many products to collect for each keyword, store or category. A keyword returns up to a few hundred products (TikTok Shop's own limit per search); stores return their whole catalogue; categories include their subcategories, so large categories go into the thousands.

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

Add everything from the product page to each product: stock, every variant (SKU) with its own price and stock, specifications, description, categories, shipping fee and delivery time, rating breakdown (1-5 stars) and seller details (rating, followers, products, units sold, official shop label, business name).

Product links always include full details.

## `includeReviews` (type: `boolean`):

Also collect each product's reviews: rating, text, date, variant, verified purchase, reviewer and photos. Reviews go to their own **Reviews** table.

## `maxReviewsPerProduct` (type: `integer`):

How many reviews to collect for each product (newest and most relevant first).

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

Order of the products for each input. Anything other than TikTok Shop order looks at a wider set of products first, then keeps your maximum.

## `minPrice` (type: `integer`):

Only products at or above this price (in the country's currency).

## `maxPrice` (type: `integer`):

Only products at or below this price (in the country's currency).

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

Only products that have sold at least this many units.

## `minRating` (type: `string`):

Only products with at least this average rating.

## Actor input object example

```json
{
  "keywords": [
    "led face mask"
  ],
  "country": "us",
  "maxProductsPerInput": 100,
  "includeDetails": false,
  "includeReviews": false,
  "maxReviewsPerProduct": 20,
  "sortBy": "relevance"
}
```

# Actor output Schema

## `products` (type: `string`):

No description

## `reviews` (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": [
        "led face mask"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("calm_builder/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": ["led face mask"] }

# Run the Actor and wait for it to finish
run = client.actor("calm_builder/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": [
    "led face mask"
  ]
}' |
apify call calm_builder/tiktok-shop-scraper --silent --output-dataset

```

## MCP server setup

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