# TikTok Shop Best-Sellers & Products Scraper (`abzalp/tiktok-shop-products-scraper`) Actor

Scrape TikTok Shop product listings, exact sold counts, discounts, review ratings, and shop profiles without official API keys.

- **URL**: https://apify.com/abzalp/tiktok-shop-products-scraper.md
- **Developed by:** [Abdul Basit](https://apify.com/abzalp) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 product scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/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 Best-Sellers & Products Scraper

Scrape TikTok Shop product listings, exact sales volumes, discount pricing, customer review statistics, and seller ratings. Built for e-commerce scouts, dropshippers, and market analysts tracking viral e-commerce items.

***

### Features

- **Pricing & Discounts:** Extracts live sale prices, original MSRP prices, and calculates discount percentages.
- **Sales Intelligence:** Pulls exact units sold and formatted sales counts (e.g., "12.5K sold") to identify fast-selling affiliate items.
- **Review & Rating Analytics:** Captures star ratings (e.g., 4.8★) and total customer review counts.
- **Merchant Details:** Extracts seller shop names, seller IDs, shop ratings, and direct storefront URLs.
- **Media Gallery:** Retrieves up to 10 high-resolution product image URLs.
- **AI-Ready Structured JSON:** Output formatted directly for analytics pipelines, Excel exports, or LLMs.
- **Multi-Region Support:** Supports United States (`US`), United Kingdom (`GB`), Indonesia (`ID`), Malaysia (`MY`), Thailand (`TH`), Vietnam (`VN`), and Philippines (`PH`).

***

### Pricing (Pay-Per-Event)

This Actor uses fair **Pay-Per-Event (PPE)** pricing:

- **$0.004** per successfully scraped product.
- **$0.00005** Actor start fee.
- **$0.00** charge for failed or unavailable products.

***

### Input Parameters

| Parameter | Type | Required | Description |
|---|---|---|---|
| `productUrls` | Array | Yes | Direct TikTok Shop product links (e.g., `https://www.tiktok.com/view/product/1729937400435937604`) or raw 19-digit product IDs. |
| `countryCode` | String | No | Target marketplace region (default: `US`). Options: `US`, `GB`, `ID`, `MY`, `TH`, `VN`, `PH`. |
| `maxProducts` | Integer | No | Maximum products to process in a single run (default: 50). |
| `proxyConfiguration` | Object | No | Optional Apify Proxy configuration for high-volume jobs. |

#### Example Input

```json
{
  "productUrls": [
    "https://www.tiktok.com/view/product/1729937400435937604"
  ],
  "countryCode": "US",
  "maxProducts": 50
}
```

***

### Output Dataset Schema

Each product record pushed to the default dataset includes:

```json
{
  "productId": "1729937400435937604",
  "title": "Ultra Fast Portable Power Bank 20000mAh",
  "description": "High capacity fast-charging power bank compatible with iPhone and Android.",
  "price": {
    "currency": "USD",
    "salePrice": 19.99,
    "originalPrice": 39.99,
    "discountPercentage": 50
  },
  "sales": {
    "soldCount": 12500,
    "soldCountFormatted": "12.5K sold"
  },
  "rating": {
    "score": 4.8,
    "reviewCount": 1420
  },
  "seller": {
    "id": "shop_987654321",
    "name": "Anker Official Store",
    "rating": 4.9,
    "shopUrl": "https://www.tiktok.com/shop/seller/shop_987654321"
  },
  "images": [
    "https://p16-oec-va.ibyteimg.com/tos-maliva-i-o3syd03w52-us/pic1.jpeg"
  ],
  "productUrl": "https://www.tiktok.com/view/product/1729937400435937604",
  "inStock": true,
  "scrapedAt": "2026-11-28T10:15:00.000Z"
}
```

***

### Integrity & Privacy

This Actor only extracts publicly visible marketplace information that any user or buyer can view in a web browser. No personal identifiable information (PII) or private user data is scraped or stored.

# Actor input Schema

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

Direct TikTok Shop product links (e.g. https://www.tiktok.com/view/product/1729937400435937604) or raw 19-digit product IDs.

## `searchKeywords` (type: `array`):

Optional search keywords to discover trending TikTok Shop products (e.g. 'wireless earbuds', 'lip oil', 'sunset lamp').

## `countryCode` (type: `string`):

Target marketplace country code (e.g. 'US', 'GB', 'ID', 'TH', 'VN').

## `maxProducts` (type: `integer`):

Maximum number of products to output in this run.

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

Select Apify Proxy or custom proxies if scraping high volumes or bypass geoblocks.

## Actor input object example

```json
{
  "productUrls": [
    "https://www.tiktok.com/view/product/1729937400435937604"
  ],
  "searchKeywords": [],
  "countryCode": "US",
  "maxProducts": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `products` (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 = {
    "productUrls": [
        "https://www.tiktok.com/view/product/1729937400435937604"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("abzalp/tiktok-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 = { "productUrls": ["https://www.tiktok.com/view/product/1729937400435937604"] }

# Run the Actor and wait for it to finish
run = client.actor("abzalp/tiktok-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 '{
  "productUrls": [
    "https://www.tiktok.com/view/product/1729937400435937604"
  ]
}' |
apify call abzalp/tiktok-shop-products-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,abzalp/tiktok-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/2zOPID27EYIQWNFCl/builds/8C6gfw9IN2PENQKsl/openapi.json
