1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "eventId": "x1",
12 "company": "Acme Corp",
13 "person": "CEO A",
14 "role": "CEO",
15 "seniority": "C-Suite",
16 "moveType": "departure",
17 "seniorityWeight": 100,
18 "date": "2026-09-01",
19 },
20 {
21 "eventId": "x2",
22 "company": "Acme Corp",
23 "person": "CFO B",
24 "role": "CFO",
25 "seniority": "C-Suite",
26 "moveType": "departure",
27 "seniorityWeight": 95,
28 "date": "2026-09-04",
29 },
30 {
31 "eventId": "x3",
32 "company": "Beta Inc",
33 "person": "COO C",
34 "role": "COO",
35 "seniority": "C-Suite",
36 "moveType": "appointment",
37 "seniorityWeight": 90,
38 "date": "2026-09-05",
39 },
40 ],
41 "previousItems": [
42 {
43 "eventId": "x0",
44 "company": "Acme Corp",
45 "person": "VP D",
46 "role": "VP Sales",
47 "seniority": "VP",
48 "moveType": "departure",
49 "seniorityWeight": 55,
50 "date": "2026-06-01",
51 },
52 {
53 "eventId": "x3",
54 "company": "Beta Inc",
55 "person": "COO C",
56 "role": "VP Ops",
57 "seniority": "VP",
58 "moveType": "promotion",
59 "seniorityWeight": 70,
60 "date": "2026-06-10",
61 },
62 ],
63}
64
65
66run = client.actor("quanmatrix/executive-departure-cluster-intelligence").call(run_input=run_input)
67
68
69print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
70for item in client.dataset(run.default_dataset_id).iterate_items():
71 print(item)
72
73