1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "stores": ["https://www.allbirds.com"],
10 "watch": [
11 "new-product",
12 "removed-product",
13 "price-drop",
14 "price-increase",
15 "sale-started",
16 "sale-ended",
17 "restock",
18 "out-of-stock",
19 "variant-added",
20 "variant-removed",
21 ],
22 "minPriceChangePct": 0,
23 "firstRunBehavior": "emit-all",
24 "trackInventory": False,
25 "collections": [],
26 "productHandles": [],
27 "maxInventoryLookups": 100,
28 "maxProductsPerStore": 25,
29 "maxChangesPerStore": 2000,
30 "outageGuardThreshold": 10,
31 "stateStoreName": "shopify-store-monitor-state",
32 "requestTimeoutSecs": 20,
33 "maxConcurrency": 3,
34 "maxRunSecs": 240,
35 "proxyConfiguration": { "useApifyProxy": True },
36}
37
38
39run = client.actor("insight.solutions/shopify-store-monitor").call(run_input=run_input)
40
41
42print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
43for item in client.dataset(run.default_dataset_id).iterate_items():
44 print(item)
45
46