1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "personId": "p1",
12 "sourceCompany": "Beta",
13 "destinationCompany": "Acme",
14 "role": "Director AI",
15 "seniorityWeight": 12,
16 },
17 {
18 "personId": "p2",
19 "sourceCompany": "Beta",
20 "destinationCompany": "Acme",
21 "role": "Engineer",
22 "seniorityWeight": 4,
23 },
24 {
25 "personId": "p3",
26 "sourceCompany": "Gamma",
27 "destinationCompany": "Beta",
28 "role": "VP Sales",
29 "seniorityWeight": 12,
30 },
31 ],
32 "previousItems": [{
33 "personId": "p0",
34 "sourceCompany": "Beta",
35 "destinationCompany": "Acme",
36 "role": "Engineer",
37 "seniorityWeight": 4,
38 }],
39}
40
41
42run = client.actor("quanmatrix/cross-company-talent-flow-intelligence").call(run_input=run_input)
43
44
45print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
46for item in client.dataset(run.default_dataset_id).iterate_items():
47 print(item)
48
49