1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "schemaVersion": "1.1.0",
10 "mode": "decision",
11 "requestId": "rq_0123456789abcdef0123456789abcdef",
12 "reportingYear": 2026,
13 "ruleVersion": "eu-ets-maritime-2026-v2",
14 "vessel": {
15 "imoNumber": "1234567",
16 "grossTonnage": 5000,
17 "shipCategory": "cargo",
18 "excludedClass": "none",
19 "article12Treatment": "none_declared",
20 },
21 "portCalls": [
22 {
23 "portCallId": "p1",
24 "unlocode": "NLRTM",
25 "memberStatePort": True,
26 "isPortOfCall": True,
27 "specialTreatment": "ordinary",
28 "startedAt": "2026-03-01T00:00:00Z",
29 "endedAt": "2026-03-01T12:00:00Z",
30 },
31 {
32 "portCallId": "p2",
33 "unlocode": "USLAX",
34 "memberStatePort": False,
35 "isPortOfCall": True,
36 "specialTreatment": "ordinary",
37 "startedAt": "2026-03-05T00:00:00Z",
38 "endedAt": "2026-03-05T12:00:00Z",
39 },
40 ],
41 "legs": [{
42 "legId": "l1",
43 "departurePortCallId": "p1",
44 "arrivalPortCallId": "p2",
45 "departureAt": "2026-03-01T12:00:00Z",
46 "arrivalAt": "2026-03-05T00:00:00Z",
47 "fuelRecords": [{
48 "recordId": "f1",
49 "consumptionStartAt": "2026-03-01T12:00:00Z",
50 "consumptionEndAt": "2026-03-04T12:00:00Z",
51 "fuelType": "HFO",
52 "massTonnes": "100",
53 "dataTruth": "measured",
54 }],
55 }],
56 "berthRecords": [{
57 "recordId": "b1",
58 "portCallId": "p1",
59 "consumptionStartAt": "2026-03-01T01:00:00Z",
60 "consumptionEndAt": "2026-03-01T03:00:00Z",
61 "fuelType": "MDO_MGO",
62 "massTonnes": "10",
63 "dataTruth": "measured",
64 }],
65 "priceInput": {
66 "currency": "USD",
67 "usdPerAllowance": "100",
68 "priceDate": "2026-03-05",
69 "priceObservedAt": "2026-03-05T12:00:00Z",
70 "dataTruth": "buyer_reported",
71 },
72 "scenario": { "alternativeFuelMassMultiplier": "1" },
73}
74
75
76run = client.actor("zinin/voyage-carbon-compliance-evidence").call(run_input=run_input)
77
78
79print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
80for item in client.dataset(run.default_dataset_id).iterate_items():
81 print(item)
82
83