1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "flightKey": "AA-JFK-LAX-1",
12 "origin": "JFK",
13 "destination": "LAX",
14 "carrier": "AA",
15 "seats": 220,
16 "date": "2026-10-01",
17 },
18 {
19 "flightKey": "AA-JFK-LAX-2",
20 "origin": "JFK",
21 "destination": "LAX",
22 "carrier": "AA",
23 "seats": 220,
24 "date": "2026-10-01",
25 },
26 {
27 "flightKey": "DL-JFK-LAX-1",
28 "origin": "JFK",
29 "destination": "LAX",
30 "carrier": "DL",
31 "seats": 180,
32 "date": "2026-10-01",
33 },
34 ],
35 "previousItems": [
36 {
37 "flightKey": "AA-JFK-LAX-1",
38 "origin": "JFK",
39 "destination": "LAX",
40 "carrier": "AA",
41 "seats": 180,
42 "date": "2026-09-01",
43 },
44 {
45 "flightKey": "DL-JFK-LAX-1",
46 "origin": "JFK",
47 "destination": "LAX",
48 "carrier": "DL",
49 "seats": 180,
50 "date": "2026-09-01",
51 },
52 ],
53}
54
55
56run = client.actor("quanmatrix/airline-route-capacity-change-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