openapi: 3.0.2 info: title: MarineTraffic Power User API version: 1.0.0 description: Fleet management (create, modify, list, clear), account credit balance, and passage plan import endpoints reserved for power-user accounts. contact: name: MarineTraffic url: https://www.marinetraffic.com/ servers: - url: https://services.marinetraffic.com/api tags: - name: Fleets - name: Balances - name: Passage Plans paths: /setfleet/{api_key}: get: tags: - Fleets summary: Modify Fleet description: "Manage your MarineTraffic fleet.

To **create a new item** in a fleet, use the active parameter.\ \ If the item already exists, it will **update** item's status.

The active parameter can have values of\ \ 0, 1, 2 which corresponds to the three states of the fleet items (inactive, active, sat enabled)

The\ \ **delete** parameter must have a value of 1 and it **removes** the entry from the fleet.

If MMSI, IMO\ \ and SHIP ID are passed, the MMSI takes precedence and the IMO and SHIP ID will be ignored.

When you add\ \ vessels to a Fleet of Interest using the setfleet API endpoint: \n \nResponse is always an XML structure indicating\ \ success or failure with failure description message.

Notes " operationId: setfleet parameters: - $ref: '#/components/parameters/api_key' - $ref: '#/components/parameters/mmsi_PU01' - $ref: '#/components/parameters/imo_PU01' - $ref: '#/components/parameters/shipid_PU01' - $ref: '#/components/parameters/fleet_id_PU01' - $ref: '#/components/parameters/active_PU01' - $ref: '#/components/parameters/delete_PU01' responses: '200': description: Successful Response content: application/xml: schema: $ref: '#/components/schemas/200_pu01_update' examples: Update fleet: summary: Update fleet value: "\n\n \n \ \ \n \n" '400': description: Bad Request content: application/xml: schema: oneOf: - $ref: '#/components/schemas/400_pu01_invalid_ship_identifier' - $ref: '#/components/schemas/400_pu01_missing_ship_identifier' examples: Invalid ship identifier: summary: Invalid ship identifier value: "\n\n \n \ \ \n \n" Missing ship identifier: summary: Missing ship identifier value: "\n\n \n \ \ \n \n" '404': description: Not Found content: application/xml: schema: oneOf: - $ref: '#/components/schemas/404_pu01_invalid_fleet_identifier' examples: Invalid fleet identifier: summary: Invalid fleet identifier value: "\n\n \n \ \ \n \n" '429': description: Too Many Requests content: application/json: schema: $ref: '#/components/schemas/429_too_many_requests' application/xml: schema: $ref: '#/components/schemas/429_too_many_requests' examples: Area out of bound: summary: Too Many Requests value: "\n\n \n \ \ \n \n" /getfleet/{api_key}: get: tags: - Fleets summary: Vessels in Fleet description: "Get a detailed listing of vessels included in one of your MarineTraffic fleets.

Notes\ \ " operationId: getfleet parameters: - $ref: '#/components/parameters/api_key' - $ref: '#/components/parameters/v_PU02' - $ref: '#/components/parameters/fleet_id_PU02' - $ref: '#/components/parameters/page_PU02' - $ref: '#/components/parameters/protocol' responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/200_pu02_default' application/xml: schema: $ref: '#/components/schemas/200_pu02_default' examples: Default: summary: Simple value: "\n\n \n \n \n \n" '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/400_pu02_empty_fleet' application/xml: schema: $ref: '#/components/schemas/400_pu02_empty_fleet' examples: Empty fleet: summary: Empty fleet value: "\n \n \n \n" '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/403_pu02_invalid_fleet_identifier' application/xml: schema: $ref: '#/components/schemas/403_pu02_invalid_fleet_identifier' examples: Invalid fleet identifier: summary: Invalid fleet identifier value: "\n\n \n \ \ \n \n" '429': description: Too Many Requests content: application/json: schema: $ref: '#/components/schemas/429_too_many_requests' application/xml: schema: $ref: '#/components/schemas/429_too_many_requests' examples: Area out of bound: summary: Too Many Requests value: "\n\n \n \ \ \n \n" /getfleets/{api_key}: get: tags: - Fleets summary: List Fleets description: "Get an overview list of all your MarineTraffic fleets.

Notes " operationId: getfleets parameters: - $ref: '#/components/parameters/api_key' - $ref: '#/components/parameters/protocol' responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/200_pu03_default' application/xml: schema: $ref: '#/components/schemas/200_pu03_default' examples: Default: summary: Default value: "\n\n \n" '429': description: Too Many Requests content: application/json: schema: $ref: '#/components/schemas/429_too_many_requests' application/xml: schema: $ref: '#/components/schemas/429_too_many_requests' examples: Area out of bound: summary: Too Many Requests value: "\n\n \n \ \ \n \n" /clearfleet/{api_key}: get: tags: - Fleets summary: Clear Fleet description: "Clear your MarineTraffic fleet from all vessels.

Notes " operationId: clearfleet parameters: - $ref: '#/components/parameters/api_key' - $ref: '#/components/parameters/fleet_id_PU05' responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/200_pu05_default' application/xml: schema: $ref: '#/components/schemas/200_pu05_default' examples: Default: summary: Default value: "\n\n \n" '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/404_pu05_missing_or_invalid_fleet_identifier' application/xml: schema: $ref: '#/components/schemas/404_pu05_missing_or_invalid_fleet_identifier' examples: Missing or invalid fleet identifier: summary: Missing or invalid fleet identifier value: "\n\n \n \ \ \n \n" '429': description: Too Many Requests content: application/json: schema: $ref: '#/components/schemas/429_too_many_requests' application/xml: schema: $ref: '#/components/schemas/429_too_many_requests' examples: Area out of bound: summary: Too Many Requests value: "\n\n \n \ \ \n \n" /exportcredits/{api_key}: get: tags: - Balances summary: Credits Balance description: "Get a snapshot of your current credits balance.

Notes " operationId: exportcredits parameters: - $ref: '#/components/parameters/api_key' responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/200_pu04_default' application/xml: schema: $ref: '#/components/schemas/200_pu04_default' examples: Default: summary: Default value: "\n\n \n" '429': description: Too Many Requests content: application/json: schema: $ref: '#/components/schemas/429_too_many_requests' application/xml: schema: $ref: '#/components/schemas/429_too_many_requests' examples: Area out of bound: summary: Too Many Requests value: "\n\n \n \ \ \n \n" /import-passage-plan/{api_key}: post: tags: - Passage Plans summary: Import Passage Plan description: "Import a passage plan for one of your managed vessels.

Notes " operationId: import-passage-plan parameters: - $ref: '#/components/parameters/api_key' - $ref: '#/components/parameters/content_type_pu06' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/pu06_request_body' responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/200_pu06_default' application/xml: schema: $ref: '#/components/schemas/200_pu06_default' examples: Default: summary: Simple value: "\n\n \n \ \ CODE=\"s8\" DESCRIPTION=\"PASSAGE PLAN IMPORTED\"/>\n \n" '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/400_pu06_vessel_not_found' application/xml: schema: $ref: '#/components/schemas/400_pu06_vessel_not_found' examples: Vessel not found: summary: Vessel not found value: "\n\n\n \n \n\ \ \n" components: parameters: api_key: name: api_key in: path description: 'API key: 40-character hexadecimal number' required: true schema: type: string cursor: name: cursor in: query description: The pagination cursor provided in the metadata section of the previous response required: false schema: type: string limit: name: limit in: query description: The limit of vessels per page (min=1000, max=5000) required: false schema: type: integer default: 2000 protocol_mandatory: name: protocol in: query description: "Response type. Use one of the following: