naftiko: 1.0.0-alpha2 info: label: MarineTraffic Ports Information description: MarineTraffic Ports Information. 4 operations. Self-contained Naftiko capability covering one MarineTraffic AIS business surface. tags: - MarineTraffic - AIS - Maritime created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: MARINETRAFFIC_API_KEY: MARINETRAFFIC_API_KEY capability: consumes: - type: http namespace: ports-information baseUri: https://services.marinetraffic.com/api description: Expected arrivals, predictive arrivals, and port congestion intelligence. resources: - name: expectedarrivals-api_key path: /expectedarrivals/{api_key} operations: - name: expectedarrivals method: GET description: Expected Port Arrivals outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: v in: query type: integer description: Version of the service to be executed. Use version 4 to get the latest required: true - name: portid in: query type: integer description: The MarineTraffic ID of the port (found on the URL of the respective Port page) required: true - name: timespan in: query type: integer description: Number of days in the future to look for expected arrivals, starting from the time the API call is requested

Maximum value is 40 days

If neither this nor the fromdate/todate parameters are used, the response only inclu required: false - name: days_last_signal in: query type: integer description: Include vessels currently in port that have transmitted a position within the last x days (based on their last signal timestamp).

This parameter only works when no other timeframe is defined. required: false - name: fromdate in: query type: string description: 'Timestamp in the future to start looking for expected arrivals. If used, then you should also define the todate parameter

Date format: YYYY-MM-DD HH:MM:SS' required: false - name: todate in: query type: string description: 'Timestamp in the future to start looking for expected arrivals. If used, then you should also define the fromdate parameter

Date format: YYYY-MM-DD HH:MM:SS' required: false - name: fromportid in: query type: integer description: The MarineTraffic ID of the previous port (found on the URL of the respective Port page) or previous port UNLOCODE required: false - name: shiptype in: query type: integer description: 'Filter data by vessel type: