1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "tiktokProducts": [{
10 "title": "Portable Blender 500ml USB Rechargeable",
11 "price": 29.99,
12 "soldCount": 18500,
13 "rating": 4.6,
14 "reviewCount": 2140,
15 "url": "https://shop.tiktok.com/example-product",
16 "imageUrl": "https://example.com/blender.jpg",
17 }],
18 "supplierProducts": [{
19 "title": "USB Portable Juicer Blender 500ml Factory Wholesale",
20 "price": 4.2,
21 "moq": 2,
22 "supplierRating": 4.8,
23 "salesCount": 12000,
24 "url": "https://detail.1688.com/example-supplier",
25 "imageUrl": "https://example.com/supplier-blender.jpg",
26 }],
27 "tiktokDatasetIds": [],
28 "supplierDatasetIds": [],
29 "tiktokSourceActorInput": {},
30 "supplierSourceActorInput": {
31 "query": "{{keyword}}",
32 "maxItems": 20,
33 },
34}
35
36
37run = client.actor("cuscuslabs/tiktok-shop-1688-arbitrage-finder").call(run_input=run_input)
38
39
40print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
41for item in client.dataset(run.default_dataset_id).iterate_items():
42 print(item)
43
44