1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "monitorId": "sample",
10 "productUrls": [
11 {
12 "url": "https://www.graza.co/products/hot-n-sweet-olive-oil-potato-chips",
13 "sku": "CHP-HS55",
14 },
15 {
16 "url": "https://olaplex.com/products/olaplex-the-healthy-hair-travel-set-us",
17 "sku": "VB000030",
18 },
19 {
20 "url": "https://www.beardbrand.com/products/fox-hunt-mens-cologne",
21 "sku": "32836920",
22 },
23 ],
24 "catalog": [
25 {
26 "sku": "CHP-HS55",
27 "gtin": "850062393370",
28 "mpn": "850062393370",
29 "title": "Hot 'n Sweet Olive Oil Potato Chips",
30 "packSize": 1,
31 "brand": "Graza",
32 },
33 {
34 "sku": "VB000030",
35 "gtin": None,
36 "mpn": "VB000030",
37 "title": "THE HEALTHY HAIR TRAVEL SET",
38 "packSize": 1,
39 "brand": "OLAPLEX",
40 },
41 {
42 "sku": "32836920",
43 "gtin": None,
44 "mpn": "32836920",
45 "title": "Fox Hunt Men's Cologne",
46 "packSize": 1,
47 "brand": "Beardbrand",
48 },
49 ],
50 "policies": [
51 {
52 "policyId": "SAMPLE-CHIPS",
53 "sku": "CHP-HS55",
54 "minAdvertisedPrice": 24,
55 "currency": "USD",
56 "effectiveFrom": "2026-01-01",
57 "effectiveTo": None,
58 "packSize": 1,
59 "appliesToCondition": "new",
60 },
61 {
62 "policyId": "SAMPLE-OLAPLEX",
63 "sku": "VB000030",
64 "minAdvertisedPrice": 0.01,
65 "currency": "USD",
66 "effectiveFrom": "2026-01-01",
67 "effectiveTo": None,
68 "packSize": 1,
69 "appliesToCondition": "new",
70 },
71 {
72 "policyId": "SAMPLE-COLOGNE",
73 "sku": "32836920",
74 "minAdvertisedPrice": 0.01,
75 "currency": "USD",
76 "effectiveFrom": "2026-01-01",
77 "effectiveTo": None,
78 "packSize": 1,
79 "appliesToCondition": "new",
80 },
81 ],
82 "approvedSellers": [
83 {
84 "sellerId": "graza",
85 "name": "Graza",
86 "aliases": [
87 "Graza",
88 "Graza Olive Oil",
89 ],
90 "domains": [
91 "graza.co",
92 "www.graza.co",
93 ],
94 },
95 {
96 "sellerId": "olaplex",
97 "name": "OLAPLEX",
98 "aliases": [
99 "OLAPLEX",
100 "OLAPLEX Inc.",
101 "Olaplex",
102 ],
103 "domains": [
104 "olaplex.com",
105 "www.olaplex.com",
106 ],
107 },
108 ],
109 "exemptions": [{
110 "exemptionId": "SAMPLE-UNUSED",
111 "sku": "NOT-IN-THIS-RUN",
112 "sellerId": "graza",
113 "reason": "Example exemption shape. It does not match the sample URLs.",
114 "effectiveFrom": "2026-01-01",
115 "effectiveTo": "2026-12-31",
116 "condition": "new",
117 "floorPrice": None,
118 }],
119 "stateStoreName": "map-price-policy-state",
120}
121
122
123run = client.actor("plusonets/map-price-policy-monitor").call(run_input=run_input)
124
125
126print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
127for item in client.dataset(run.default_dataset_id).iterate_items():
128 print(item)
129
130