1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "jobId": "J1",
12 "company": "Acme",
13 "role": "Data Engineer",
14 "employmentType": "Permanent",
15 "conversionWeight": 1,
16 "date": "2026-09-10",
17 },
18 {
19 "jobId": "J2",
20 "company": "Acme",
21 "role": "Data Engineer",
22 "employmentType": "Permanent",
23 "conversionWeight": 1,
24 "date": "2026-09-10",
25 },
26 {
27 "jobId": "J3",
28 "company": "Beta",
29 "role": "Designer",
30 "employmentType": "Contract",
31 "conversionWeight": 0,
32 "date": "2026-09-10",
33 },
34 ],
35 "previousItems": [
36 {
37 "jobId": "P1",
38 "company": "Acme",
39 "role": "Data Engineer",
40 "employmentType": "Contract",
41 "conversionWeight": 0,
42 "date": "2026-08-01",
43 },
44 {
45 "jobId": "P2",
46 "company": "Beta",
47 "role": "Designer",
48 "employmentType": "Contract",
49 "conversionWeight": 0,
50 "date": "2026-08-01",
51 },
52 ],
53}
54
55
56run = client.actor("quanmatrix/contractor-employee-conversion-intelligence").call(run_input=run_input)
57
58
59print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
60for item in client.dataset(run.default_dataset_id).iterate_items():
61 print(item)
62
63