If you're interested in tracking a particular type of ship (fishing, cargo, tanker, etc.), then we recommend trying the Spire Sense Vessels API. From here, you can easily filter for ships of specific types.

As an example, the following API query will only return information on cargo ships that Spire is currently tracking: 

curl -i -H "Authorization: Bearer {your_token}" -X GET
https://beta.ais.spire.com/vessels/?ship_type=cargo

Response:

{
  "paging": {
    "previous": "MQ==",
    "total": 11036,
    "limit": 1000,
    "next": "Mg=="
  },
  "data": [
    {
      "name": "FREDO",
      "ais_version": 0,
      "mmsi": 211202400,
      "updated_at": "2017-06-16T22:47:25.955658+00:00",
      "imo": 8504208,
      "class": "A",
      "flag": "DE",
      "width": 11,
      "ship_type": "Cargo",
      "id": "e61971d0-4429-4ac9-8e7d-0a31ea12c73c",
      "length": 82,
      "call_sign": "DPCD"
    },
    {
      "name": "SWIFTNES",
      "ais_version": 1,
      "mmsi": 374277000,
      "updated_at": "2017-06-16T22:47:25.939107+00:00",
      "imo": 9708930,
      "class": "A",
      "flag": "PA",
      "width": 30,
      "ship_type": "Cargo",
      "id": "682ecfb3-e9ed-4e48-849b-f6245554ff0f",
      "length": 177,
      "call_sign": "H9RF"
    }
  ]
}

(Listing continues...)

To learn more, please visit our Developer Portal.

Did this answer your question?