1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "productUrlsOrIds": [
9 "https://shop.tiktok.com/us/pdp/yonifu-4mm-tungsten-wedding-band-green-opal-inlay-hypoallergenic/1732131340301799679",
10 "https://shop.tiktok.com/id/view/product/1729425629348006083",
11 "https://shop.tiktok.com/sg/pdp/wulong-extrait-de-parfum-by-nefertum-mild-fragrance-for-tea-lovers-quality-glass-bottle-kosher-certified/1729654313118041250",
12 "https://shop.tiktok.com/vn/pdp/vo-bao-ve-tai-nghe-justicase-cho-airpods-1-4-hoa-tiet-meo/1731173056297142595",
13 ] }
14
15
16run = client.actor("rainfetch/tiktok-shop-product-scraper").call(run_input=run_input)
17
18
19print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
20for item in client.dataset(run.default_dataset_id).iterate_items():
21 print(item)
22
23