1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "monitorKey": "demo-store-us",
10 "products": [
11 {
12 "sku": "SKU-100",
13 "name": "Trail Shoe",
14 "price": 89.99,
15 "listPrice": 109.99,
16 "currency": "USD",
17 "inStock": True,
18 "variants": [
19 "black-42",
20 "blue-42",
21 ],
22 },
23 {
24 "sku": "SKU-200",
25 "name": "City Backpack",
26 "price": 59,
27 "currency": "USD",
28 "inStock": True,
29 },
30 ],
31}
32
33
34run = client.actor("egeusta/ecommerce-assortment-change-monitor").call(run_input=run_input)
35
36
37print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
38for item in client.dataset(run.default_dataset_id).iterate_items():
39 print(item)
40
41