1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "id": "s1",
12 "role": "AI Engineer",
13 "company": "Acme",
14 "location": "Austin",
15 "salaryMid": 185000,
16 },
17 {
18 "id": "s2",
19 "role": "AI Engineer",
20 "company": "Beta",
21 "location": "Austin",
22 "salaryMid": 178000,
23 },
24 {
25 "id": "s3",
26 "role": "Data Engineer",
27 "company": "Gamma",
28 "location": "Boston",
29 "salaryMid": 150000,
30 },
31 ],
32 "previousItems": [
33 {
34 "id": "s1",
35 "role": "AI Engineer",
36 "company": "Acme",
37 "location": "Austin",
38 "salaryMid": 160000,
39 },
40 {
41 "id": "s2",
42 "role": "AI Engineer",
43 "company": "Beta",
44 "location": "Austin",
45 "salaryMid": 165000,
46 },
47 {
48 "id": "s3",
49 "role": "Data Engineer",
50 "company": "Gamma",
51 "location": "Boston",
52 "salaryMid": 151000,
53 },
54 ],
55}
56
57
58run = client.actor("quanmatrix/salary-band-drift-role-intelligence").call(run_input=run_input)
59
60
61print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
62for item in client.dataset(run.default_dataset_id).iterate_items():
63 print(item)
64
65