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.
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_strinstead of numericproduct_id. Long 19-digit TikTok Shop IDs exceed IEEE-754 double precision, so JavaScript or JSON parsers round the last digits ofproduct_id. - Price bounds use the keys
floor_priceandcelling_price(spelled with twols in the raw API payload), alongside human-readableformat_price,format_discount, andcurrency.
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
Post a Comment