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. If more than one vessels are found with the same parameter (MMSI, IMO, SHIP ID) then an error message is return with all the available vessels. Response is always an XML structure indicating success or failure with failure description message. Notes
api_key required | string API key: 40-character hexadecimal number |
mmsi required | integer The Maritime Mobile Service Identity (MMSI) of the vessel you wish to handle, comma separated values supported You can instead use imo or shipid |
imo | integer The International Maritime Organization (IMO) number of the vessel you wish to handle, comma separated values supported |
shipid | integer A uniquely assigned ID by MarineTraffic for the subject vessel, comma separated values supported |
fleet_id | integer If used, vessel will be added to the specific fleet, otherwise default fleet is used |
active | integer Possible values are:
|
delete | integer Set this parameter to 1 to delete a vessel from your fleet |
<?xml version="1.0" encoding="utf-8" standalone="no"?> <RESPONSE> <STATUS> <SUCCESS CODE="7" DESCRIPTION="FLEET ITEM UPDATED" /> </STATUS> </RESPONSE>
Get a detailed listing of vessels included in one of your MarineTraffic fleets. Notes
api_key required | string API key: 40-character hexadecimal number |
v required | integer Default: 1 Version of the service to be executed. Use version 2 to get the latest |
fleet_id | integer If used, will return specific fleet otherwise default fleet is used |
protocol | string Default: "xml" Response type. Use one of the following:
|
[- {
- "SHIP_ID": "319",
- "MMSI": "228316700",
- "IMO": "9387542",
- "SHIPNAME": "KAOMBO NORTE",
- "ACTIVE": "1"
}, - {
- "SHIP_ID": "326",
- "MMSI": "256609000",
- "IMO": "9409156",
- "SHIPNAME": "LAPEROUSE",
- "ACTIVE": "1"
}, - {
- "SHIP_ID": "487",
- "MMSI": "228333700",
- "IMO": "9320075",
- "SHIPNAME": "GASELYS",
- "ACTIVE": "1"
}, - {
- "SHIP_ID": "510",
- "MMSI": "228337700",
- "IMO": "9306495",
- "SHIPNAME": "PROVALYS",
- "ACTIVE": "1"
}, - {
- "SHIP_ID": "1595",
- "MMSI": "229036000",
- "IMO": "9529475",
- "SHIPNAME": "PETALIDI",
- "ACTIVE": "1"
}
]
Get an overview list of all your MarineTraffic fleets. Notes
api_key required | string API key: 40-character hexadecimal number |
protocol | string Default: "xml" Response type. Use one of the following:
|
[- {
- "ID": "1696822",
- "NAME": "Demo fleet",
- "ACTIVE": "1",
- "CREATED": "2020-09-22T06:51:00.000Z",
- "DEFAULT": "1"
}
]
Clear your MarineTraffic fleet from all vessels. Notes
api_key required | string API key: 40-character hexadecimal number |
fleet_id required | integer The fleet id you wish to clear |
[- {
- "FLEET_ID": "1716163",
- "DELETE": "1"
}
]