1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "id": "port-la",
12 "port": "Los Angeles",
13 "region": "US West",
14 "dwellHours": 86,
15 "vesselsWaiting": 14,
16 "throughputIndex": 71,
17 "containersDelayed": 4200,
18 "date": "2026-09-23",
19 },
20 {
21 "id": "port-sg",
22 "port": "Singapore",
23 "region": "SEA",
24 "dwellHours": 42,
25 "vesselsWaiting": 8,
26 "throughputIndex": 84,
27 "containersDelayed": 1600,
28 "date": "2026-09-23",
29 },
30 {
31 "id": "port-rtm",
32 "port": "Rotterdam",
33 "region": "EU",
34 "dwellHours": 31,
35 "vesselsWaiting": 5,
36 "throughputIndex": 91,
37 "containersDelayed": 900,
38 "date": "2026-09-23",
39 },
40 ],
41 "previousItems": [
42 {
43 "id": "port-la",
44 "port": "Los Angeles",
45 "region": "US West",
46 "dwellHours": 54,
47 "vesselsWaiting": 7,
48 "throughputIndex": 83,
49 "containersDelayed": 2100,
50 "date": "2026-09-16",
51 },
52 {
53 "id": "port-sg",
54 "port": "Singapore",
55 "region": "SEA",
56 "dwellHours": 39,
57 "vesselsWaiting": 7,
58 "throughputIndex": 85,
59 "containersDelayed": 1450,
60 "date": "2026-09-16",
61 },
62 ],
63}
64
65
66run = client.actor("quanmatrix/port-congestion-change-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