1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mapPolicy": [
10 {
11 "sku": "GS-LEGGING-ONYX",
12 "productName": "Gymshark Everyday Seamless Legging",
13 "category": "Apparel",
14 "mapPrice": 55,
15 "currency": "USD",
16 "retailers": [{
17 "name": "Gymshark",
18 "url": "https://www.gymshark.com/products/gymshark-everyday-seamless-washed-legging-2-0-gs-onyx-grey-wash",
19 }],
20 },
21 {
22 "sku": "ALLBIRDS-WR-BLACK",
23 "productName": "Allbirds Wool Runners",
24 "category": "Footwear",
25 "mapPrice": 110,
26 "currency": "USD",
27 "retailers": [{
28 "name": "Allbirds",
29 "url": "https://www.allbirds.com/products/mens-wool-runners",
30 }],
31 },
32 {
33 "sku": "MVMT-CLASSIC-40",
34 "productName": "MVMT Classic Watch 40mm",
35 "category": "Accessories",
36 "mapPrice": 128,
37 "currency": "USD",
38 "retailers": [{
39 "name": "MVMT",
40 "url": "https://www.mvmt.com/watches/mens/classic-40mm-40000107-d",
41 }],
42 },
43 ],
44 "proxyConfiguration": { "useApifyProxy": False },
45}
46
47
48run = client.actor("e-commerce/map-compliance-monitor").call(run_input=run_input)
49
50
51print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
52for item in client.dataset(run["defaultDatasetId"]).iterate_items():
53 print(item)
54
55