{ "opencollection": "1.0.0", "info": { "name": "MarineTraffic Events AIS API Ports Information API", "version": "1.0.0" }, "items": [ { "info": { "name": "Ports Information", "type": "folder" }, "items": [ { "info": { "name": "Expected Port Arrivals", "type": "http" }, "http": { "method": "GET", "url": "https://services.marinetraffic.com/api/expectedarrivals/:api_key", "params": [ { "name": "api_key", "value": "", "type": "path", "description": "API key: 40-character hexadecimal number" }, { "name": "v", "value": "", "type": "query", "description": "Version of the service to be executed. Use version 4 to get the latest" }, { "name": "portid", "value": "", "type": "query", "description": "The MarineTraffic ID of the port (found on the URL of the respective Port page)" }, { "name": "timespan", "value": "", "type": "query", "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 includes vessels currently in port (or the country’s ports) and the last vessel's signal is received during the last 2 days" }, { "name": "days_last_signal", "value": "", "type": "query", "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." }, { "name": "fromdate", "value": "", "type": "query", "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" }, { "name": "todate", "value": "", "type": "query", "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" }, { "name": "fromportid", "value": "", "type": "query", "description": "The MarineTraffic ID of the previous port (found on the URL of the respective Port page) or previous port UNLOCODE" }, { "name": "shiptype", "value": "", "type": "query", "description": "Filter data by vessel type: