1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "catalog": [
10 {
11 "catalogItemId": "tree-runner-jet-black-8",
12 "title": "Men's Tree Runner Jet Black size 8",
13 "brand": "Allbirds",
14 "gtin": "843416184854",
15 "mpn": "TR3MJBW080",
16 "sku": "TR3MJBW080",
17 "packQuantity": 1,
18 },
19 {
20 "catalogItemId": "strider-explore-natural-black-10",
21 "title": "Men's Strider Explore Natural Black size 10",
22 "brand": "Allbirds",
23 "gtin": "196942208595",
24 "mpn": "A11768M100",
25 "sku": "A11768M100",
26 "packQuantity": 1,
27 },
28 {
29 "catalogItemId": "coconut-caramel-1-bag",
30 "title": "Coconut Caramel Coffee 1 bag",
31 "brand": "Death Wish Coffee",
32 "gtin": "810063344313",
33 "mpn": "LGCCML09",
34 "sku": "LGCCML09",
35 "packQuantity": 1,
36 },
37 {
38 "catalogItemId": "coconut-caramel-5-bag",
39 "title": "Coconut Caramel Coffee 5 bags",
40 "brand": "Death Wish Coffee",
41 "gtin": "810063344313",
42 "mpn": "LGCCML45K",
43 "sku": "LGCCML45K",
44 "packQuantity": 5,
45 },
46 {
47 "catalogItemId": "classic-percale-queen-white",
48 "title": "Classic Percale Core Sheet Set Solid White Queen",
49 "brand": "Brooklinen",
50 "gtin": "840302715352",
51 "mpn": "COR-Q1",
52 "sku": "COR-Q1",
53 "packQuantity": 1,
54 },
55 ],
56 "mappings": [
57 {
58 "url": "https://www.allbirds.com/products/mens-tree-runners?variant=33179624669264",
59 "catalogItemId": "tree-runner-jet-black-8",
60 },
61 {
62 "url": "https://www.allbirds.com/products/mens-strider-explore?variant=41334294020176",
63 "catalogItemId": "strider-explore-natural-black-10",
64 },
65 {
66 "url": "https://www.deathwishcoffee.com/products/coconut-caramel-coffee",
67 "catalogItemId": "coconut-caramel-1-bag",
68 },
69 {
70 "url": "https://www.deathwishcoffee.com/products/coconut-caramel-coffee",
71 "catalogItemId": "coconut-caramel-5-bag",
72 },
73 {
74 "url": "https://www.brooklinen.com/products/classic-core-sheet-set?variant=41405019586650",
75 "catalogItemId": "classic-percale-queen-white",
76 },
77 ],
78 "expectedCurrency": "USD",
79 "country": "US",
80 "outputMode": "all",
81 "stateStoreName": "exact-variant-monitor-state",
82 "maxOffers": 50,
83}
84
85
86run = client.actor("plusonets/exact-variant-price-stock-monitor").call(run_input=run_input)
87
88
89print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
90for item in client.dataset(run.default_dataset_id).iterate_items():
91 print(item)
92
93