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

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

## Pricing

from $8.00 / 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: Products, Prices, Sales & Stock

Scrape full product data from **TikTok Shop** by product link or product ID. Works for **Malaysia, Philippines, Singapore, Thailand, Vietnam and the US**. You only pay for products that are scraped successfully.

### What data you get

| Field | Example |
|---|---|
| Title | Waterproof Bag Swimming Case... |
| Price, min and max price, original price | RM3.12 (was RM5.00) |
| Currency | MYR, PHP, SGD, THB, VND, USD |
| Units sold | 94,455 |
| Rating and review count | 4.8 from 8,634 reviews |
| Seller | name, ID, product count |
| Categories | Home Supplies > Storage Bags |
| Thumbnail and all product images | image URLs (open in any browser) |
| Variants (SKU) | name, price, **stock per variant** |
| In stock | true / false |
| Product link and status | `ok`, `not_found` or `failed` |

### Why this scraper

- **High success rate.** Uses a real browser and rotates sessions automatically, so TikTok's bot checks are retried until the page loads. In a test of 537 live products across 6 countries, every product that still existed returned full data (0 blocked). Products that were removed are marked `not_found`.
- **Pay only for results.** Products that fail or no longer exist are not charged.
- **Any link format.** Short share links (`vt.tiktok.com/...`), `/view/product/...`, `/shop/pdp/...` or just the numeric product ID.
- **Correct local currency.** Malaysian products come back in MYR, US products in USD, and so on.

### Supported countries

Tested on live products (number of products returned with full data):

| Country | Currency | Products tested |
|---|---|---|
| Malaysia | MYR (RM) | 183 |
| Philippines | PHP (₱) | 89 |
| Singapore | SGD (S$) | 82 |
| Thailand | THB (฿) | 53 |
| Vietnam | VND (₫) | 42 |
| United States | USD ($) | 30 |

Indonesia is not supported: no products could be found on TikTok Shop Indonesia.

### Pricing

**$8 per 1,000 products** ($0.008 per product). You pay only for products returned with `status: ok`. Removed products and failed loads are free. Apify's free $5 monthly credit covers about 600 products.

### How to use

1. Paste product links or IDs into **Product URLs or IDs** (one per line).
2. Click **Start**.
3. Download results as **Excel, CSV, JSON** or HTML, or get them through the Apify API.

Run it on a **schedule** (for example daily) to track competitor prices, sales growth and stock levels.

### Input example

```json
{
  "urls": [
    "https://vt.tiktok.com/ZS9fLJ2snunUD-7r0jG/",
    "https://shop.tiktok.com/my/pdp/1729625014964292380",
    "1730323353594138845"
  ]
}
```

### Output example

```json
{
  "id": "1729625014964292380",
  "status": "ok",
  "url": "https://shop.tiktok.com/my/pdp/owa-airbag-waterproof-phone-case-cover-20-5cmx10-5cm-pvc-tahan-air-untuk-telefon-selular-hitam-biru-/1729625014964292380?source=product_detail&enter_method=url_semantic_301",
  "region": "my",
  "title": "Waterproof Bag Swimming Case and Phone Case Protectors IPX8 Waterproof (Fit for Big Phones up to 7.2inch) Supplies",
  "currency": "MYR",
  "price": "RM3.12",
  "priceMin": 3.12,
  "priceMax": null,
  "originalPriceMin": 5,
  "sold": 94455,
  "rating": 4.8,
  "reviewCount": 8634,
  "seller": {
    "id": "7494862037564099356",
    "name": "Allblue",
    "productCount": 591,
    "followers": null
  },
  "categories": [
    "Home Supplies",
    "Home Organisers",
    "Storage Bags"
  ],
  "images": [
    "https://p16-oec-va.ibyteimg.com/tos-maliva-i-o3syd03w52-us/240df40d514a47d9b5c7adde7db529e0~tplv-o3syd03w52-resize-webp:800:800.webp?dr=15582&t=555f072d&ps=933b5bde&shp=c940a200&shcp=9b759fb9&idc=my&from=3376456192",
    "https://p16-oec-va.ibyteimg.com/tos-maliva-i-o3syd03w52-us/67156c7373c2485fabe18e199090e751~tplv-o3syd03w52-resize-webp:800:800.webp?dr=15582&t=555f072d&ps=933b5bde&shp=c940a200&shcp=9b759fb9&idc=my&from=3376456192"
  ],
  "variants": [
    {
      "skuId": "1729625014964357916",
      "stock": 14141,
      "name": "Black",
      "price": 3.12
    },
    {
      "skuId": "1729625014964423452",
      "stock": 10076,
      "name": "Yellow",
      "price": 3.12
    }
  ],
  "inStock": true,
  "scrapedAt": "2026-11-07T13:56:44.657Z"
}
```

Each result has a `status` field: `ok`, `not_found` (product removed) or `failed` (could not load after many retries).

### Use cases

- **Sellers:** monitor competitor prices, discounts and stock.
- **Dropshippers and affiliates:** find products that sell well (units sold, rating).
- **Brands and agencies:** market research across categories.
- **Developers:** feed TikTok Shop data into your own app, dashboard or AI agent via the API.

### Speed

Around 6 products are processed in parallel. Expect roughly 1,000 products in 2 to 3 hours. Increase **Max concurrency** to go faster.

### Limits

- Only public product pages. No login, no private seller data.
- Units sold is the lifetime total shown by TikTok, not a daily figure. Run on a schedule and compare to get daily sales.
- TikTok changes its site often. If something breaks, open an issue on the **Issues** tab and it will be fixed.

### Is it legal?

This Actor collects only publicly available product information shown to any visitor. It does not collect personal data of buyers. You are responsible for using the data in line with TikTok's terms and the laws in your country.

# Actor input Schema

## `urls` (type: `array`):

TikTok Shop product links (vt.tiktok.com share links, shop.tiktok.com/.../pdp/..., tiktok.com/view/product/...) or numeric product IDs. One per line.

## `browser` (type: `boolean`):

Real browser gives the highest success rate. Turn off only for a faster, cheaper test with a much lower success rate.

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

How many products to load in parallel. Higher is faster but uses more memory.

## Actor input object example

```json
{
  "urls": [
    "https://shop.tiktok.com/my/pdp/1729625014964292380",
    "1730323353594138845"
  ],
  "browser": true,
  "maxConcurrency": 6
}
```

# Actor output Schema

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

One record per product: title, price, currency, units sold, rating, seller, images, variants with stock, and status (ok, not_found, failed).

# 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 = {
    "urls": [
        "https://shop.tiktok.com/my/pdp/1729625014964292380",
        "1730323353594138845"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("muhdnaqib123/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 = { "urls": [
        "https://shop.tiktok.com/my/pdp/1729625014964292380",
        "1730323353594138845",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("muhdnaqib123/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 '{
  "urls": [
    "https://shop.tiktok.com/my/pdp/1729625014964292380",
    "1730323353594138845"
  ]
}' |
apify call muhdnaqib123/tiktok-shop-scraper --silent --output-dataset

```

## MCP server setup

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