1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "brandAsins": [
10 "B012345678",
11 "B0ABCDEFGH",
12 ],
13 "capMode": "capped",
14 "checkHours": 6,
15 "configId": "demo-seller-01",
16 "groupCodes": [
17 {
18 "code": "SAVE20",
19 "expiresAt": "2027-06-01T00:00:00.000Z",
20 "scope": "private",
21 },
22 {
23 "code": "INFLU10",
24 "expiresAt": "2027-06-01T00:00:00.000Z",
25 "scope": "influencer",
26 },
27 ],
28 "maxTotalChargeUsd": 3,
29 "stackWatch": True,
30}
31
32
33run = client.actor("steadyworks/amazon-promo-leak-monitor").call(run_input=run_input)
34
35
36print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
37for item in client.dataset(run.default_dataset_id).iterate_items():
38 print(item)
39
40