TikTok Shop Product Data Scraping Guide: SEA Markets, Pricing Fields, and Python Setup

Tracking product pricing, units sold, and flash-sale schedules across Southeast Asia on TikTok Shop takes structured catalog data. TikTok Shop Scraper queries TikTok Shop product catalogs across six Southeast Asian markets and exports clean pricing, seller details, ratings, and promo flags to JSON or CSV.

Earlier descriptions of this Actor listed product and seller URLs as inputs, but the live schema accepts keyword searches or regional trending mode across supported SEA storefronts. Here is how its current inputs, output schema, and Python automation work.

TikTok Shop SEA product data scraping guide across six markets

Collecting TikTok Shop pricing, discounts, and sales data across six SEA markets.

SEA Market Coverage and Query Modes Supported Regions and Extraction Modes 6 SEA Storefronts (region) ID (Indonesia) MY (Malaysia) PH (Philippines) SG (Singapore) TH (Thailand) VN (Vietnam) Mode 1: Keyword Search (isTrendingProducts: false) keyword: "toys" | limit: 1..10000 sortType: RELEVANCE | BEST_SELLERS | PRICE_ASC | PRICE_DESC Mode 2: Trending Feed (isTrendingProducts: true) Pulls recommended products for the selected country (ignores keyword) Note: Runs slower than keyword search because of TikTok captcha steps

Pick a target SEA country code, then run either Keyword Search or Trending Products.

Supported inputs and configuration options

Before configuring a run on TikTok Shop Scraper, check these five fields:

Field Type Accepted values Default
region string ID, MY, PH, SG, TH, VN VN
limit integer 1 to 10000 (required) 20
isTrendingProducts boolean false (keyword search) or true (trending feed) false
keyword string Search phrase used when isTrendingProducts is false "baby"
sortType string RELEVANCE, BEST_SELLERS, PRICE_ASC, PRICE_DESC RELEVANCE

JSON configuration example for scraping best-selling baby items in Malaysia:

{
  "region": "MY",
  "keyword": "baby bottle",
  "sortType": "BEST_SELLERS",
  "limit": 50,
  "isTrendingProducts": false
}

Product payload fields and the product_id_str pitfall

Each returned product record contains pricing, stock and order signals, seller metadata, and promotion markers. Pay attention to two details in the schema so downstream ETL scripts do not break:

  • Always read product_id_str instead of numeric product_id. Long 19-digit TikTok Shop IDs exceed IEEE-754 double precision, so JavaScript or JSON parsers round the last digits of product_id.
  • Price bounds use the keys floor_price and celling_price (spelled with two ls in the raw API payload), alongside human-readable format_price, format_discount, and currency.
TikTok Shop Product Payload Anatomy Key Fields Inside Each TikTok Shop Dataset Item Identity & Media product_id_str (use str!) title, cover, img[] sku_ids[] Pricing & Discounts format_price, currency floor_price / celling_price discount, format_discount Demand & Reviews sold_count product_rating (e.g. "4.7") review_count, sell_points[] Seller & Fulfillment (seller_product_info) seller_id_str, seller_name, shop_status warehouse_region (origin province/city) Promotions (flash_sale & promotion_items) flash_sale.status, start_time, end_time promotion_items[].activity_name

Map price tracking databases against product_id_str and seller_id_str to avoid rounding bugs.

Pagination speed tip: Keyword searches paginate cleanly in batches of 10 products without captcha delays. Enable isTrendingProducts: true only when you want TikTok Shop's general discovery feed, because captcha handling makes trending mode noticeably slower.

Python price and flash-sale monitor

This script runs a keyword search sorted by BEST_SELLERS, extracts the exact string IDs, prices, discount percentages, and flash-sale timestamps, and saves a CSV report ready for spreadsheets or price-alert rules:

import csv
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])

run = client.actor("novi/tiktok-shop-scraper").call(
    run_input={
        "region": "VN",
        "keyword": "skincare",
        "sortType": "BEST_SELLERS",
        "limit": 50,
        "isTrendingProducts": False,
    },
    memory_mbytes=256,
)

records = []
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    seller = item.get("seller_product_info") or {}
    flash = item.get("flash_sale") or {}
    records.append({
        "product_id": item.get("product_id_str") or str(item.get("product_id", "")),
        "title": item.get("title", ""),
        "format_price": item.get("format_price", ""),
        "floor_price": item.get("floor_price", ""),
        "celling_price": item.get("celling_price", ""),
        "discount_pct": item.get("discount", ""),
        "sold_count": item.get("sold_count", 0),
        "rating": item.get("product_rating", ""),
        "reviews": item.get("review_count", 0),
        "seller": seller.get("seller_name", ""),
        "warehouse": item.get("warehouse_region", ""),
        "flash_sale_status": flash.get("status", ""),
    })

with open("tiktok_shop_products.csv", "w", newline="", encoding="utf-8") as fh:
    writer = csv.DictWriter(fh, fieldnames=records[0].keys())
    writer.writeheader()
    writer.writerows(records)

print(f"Exported {len(records)} TikTok Shop products")

Start scraping TikTok Shop data

Track competitor pricing, best sellers, and flash-sale activity across six SEA markets.

Open TikTok Shop Scraper

Comments