1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "id": "sku-a",
12 "product": "Wireless Earbuds",
13 "seller": "Alpha Store",
14 "market": "BR",
15 "price": 89.9,
16 "stock": 42,
17 "sold": 780,
18 "discountPct": 25,
19 "date": "2026-09-23",
20 },
21 {
22 "id": "sku-b",
23 "product": "Portable Blender",
24 "seller": "Beta Shop",
25 "market": "BR",
26 "price": 119,
27 "stock": 8,
28 "sold": 430,
29 "discountPct": 15,
30 "date": "2026-09-23",
31 },
32 {
33 "id": "sku-c",
34 "product": "Gaming Mouse",
35 "seller": "Gamma Tech",
36 "market": "SG",
37 "price": 31.5,
38 "stock": 75,
39 "sold": 920,
40 "discountPct": 10,
41 "date": "2026-09-23",
42 },
43 ],
44 "previousItems": [
45 {
46 "id": "sku-a",
47 "product": "Wireless Earbuds",
48 "seller": "Alpha Store",
49 "market": "BR",
50 "price": 99.9,
51 "stock": 70,
52 "sold": 690,
53 "discountPct": 18,
54 "date": "2026-09-16",
55 },
56 {
57 "id": "sku-b",
58 "product": "Portable Blender",
59 "seller": "Beta Shop",
60 "market": "BR",
61 "price": 119,
62 "stock": 31,
63 "sold": 390,
64 "discountPct": 15,
65 "date": "2026-09-16",
66 },
67 ],
68}
69
70
71run = client.actor("quanmatrix/shopee-seller-price-stock-shift-intelligence").call(run_input=run_input)
72
73
74print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
75for item in client.dataset(run.default_dataset_id).iterate_items():
76 print(item)
77
78