1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "catalogue": [
10 {
11 "sku": "ACME-500",
12 "title": "Acme Hydro Flask 500ml",
13 "brand": "Acme",
14 "model": "HF-500",
15 "size": "500ml",
16 "packCount": 1,
17 "map": 24.99,
18 "currency": "USD",
19 },
20 {
21 "sku": "ACME-750",
22 "title": "Acme Insulated Bottle 750ml",
23 "brand": "Acme",
24 "model": "IB-750",
25 "size": "750ml",
26 "packCount": 1,
27 "map": 29.99,
28 "currency": "USD",
29 },
30 {
31 "sku": "ACME-500-4PK",
32 "title": "Acme Hydro Flask 500ml 4 Pack",
33 "brand": "Acme",
34 "model": "HF-500",
35 "size": "500ml",
36 "packCount": 4,
37 "map": 89.99,
38 "currency": "USD",
39 },
40 ],
41 "listings": [
42 {
43 "retailer": "discount-outlet.example",
44 "title": "Acme Hydro Flask 500ml Bottle",
45 "price": 17.99,
46 "url": "https://discount-outlet.example/p/123",
47 "currency": "USD",
48 "timestamp": "2026-11-20T09:00:00Z",
49 },
50 {
51 "retailer": "main-street-store.example",
52 "title": "Acme Hydro Flask 500ml",
53 "price": 24.99,
54 "url": "https://main-street-store.example/items/hf500",
55 "currency": "USD",
56 },
57 {
58 "retailer": "discount-outlet.example",
59 "title": "Acme Insulated Bottle 750ml Silver",
60 "price": 27.49,
61 "url": "https://discount-outlet.example/p/456",
62 "currency": "USD",
63 },
64 {
65 "retailer": "main-street-store.example",
66 "title": "Acme Hydro Flask 500ml 2 Pack",
67 "price": 45,
68 "url": "https://main-street-store.example/items/hf500-2pk",
69 "currency": "USD",
70 },
71 {
72 "retailer": "kitchen-hub.example",
73 "title": "Ceramic Coffee Mug 350ml White",
74 "price": 5.5,
75 "url": "https://kitchen-hub.example/p/789",
76 "currency": "USD",
77 },
78 ],
79}
80
81
82run = client.actor("that_red_bird/map-violation-detector").call(run_input=run_input)
83
84
85print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
86for item in client.dataset(run.default_dataset_id).iterate_items():
87 print(item)
88
89