Blog · Guide

What AIS data is, and what it cannot tell you

5 min read

How the Automatic Identification System works, what a vessel broadcasts, how often, and the limits to keep in mind before you build on AIS data.

Almost every vessel position you see on a map, in a chartering tool or in an API response started as an AIS message. Knowing what goes into those messages, and what does not, is the fastest way to avoid wrong conclusions later. This article explains how the Automatic Identification System works, what a vessel actually broadcasts, how often, and where the data stops being reliable.

What AIS is

AIS is a radio system that ships use to tell each other, and the shore, who they are and where they are going. It was designed for collision avoidance: a transponder on board broadcasts the ship's identity and movement on two VHF maritime channels (161.975 MHz and 162.025 MHz), and every other transponder and receiver in range picks it up.

The carriage rules come from the SOLAS convention. AIS is mandatory on ships of 300 gross tonnage and more on international voyages, on cargo ships of 500 gross tonnage and more on domestic voyages, and on all passenger ships whatever their size. Those ships carry Class A transponders. Smaller vessels, such as many fishing boats, workboats and yachts, often carry the simpler Class B units voluntarily or because a national rule requires them.

Because the signal is VHF, its range depends on the height of the antennas: typically a few tens of nautical miles between a ship and a coastal station. Beyond that, messages are only heard by receivers further out, including receivers carried by satellites.

What a vessel broadcasts

AIS messages fall into three families.

Dynamic data comes from the ship's sensors, automatically:

  • position (latitude and longitude from the ship's GNSS receiver)
  • speed over ground and course over ground
  • true heading, from the gyro compass when one is connected
  • rate of turn
  • the time of the fix

Static data is programmed into the transponder when it is installed:

  • MMSI, the 9-digit radio identity (see MMSI vs IMO)
  • IMO number, name and call sign
  • ship type, as a two-digit code (70–79 cargo, 80–89 tanker, 60–69 passenger, 30 fishing, 52 tug, and so on)
  • dimensions, given as four distances from the GNSS antenna to the bow, stern, port and starboard sides

Voyage data is typed in by the crew:

  • navigational status (under way using engine, at anchor, moored, engaged in fishing…)
  • destination, as free text
  • ETA to that destination
  • current draught

On a Class A transponder, position reports (message types 1, 2 and 3) go out every 2 to 10 seconds while the ship is under way, faster when it turns, and every 3 minutes when it is at anchor or moored. Static and voyage data (message type 5) go out every 6 minutes. Class B units report less often and carry fewer fields.

How AIS data reaches you

A single transponder only reaches nearby receivers, so a global picture needs a network: coastal stations run by authorities, receivers operated by companies and volunteers, and satellites that listen from orbit. Each receiver decodes the messages it hears and forwards them, and a data provider merges the streams, removes duplicates, keeps the latest position of every vessel and stores the history.

That is what an API such as our vessel location API returns: for each vessel, the most recent position the network heard, with the time of that position, plus the static and voyage data from the latest type 5 message.

The limits you should design for

AIS is extremely useful, but it is a radio broadcast filled in partly by hand. Every serious integration accounts for the following.

Coverage is uneven

Near busy coasts, ports and straits, many receivers hear every vessel. Far offshore, a vessel may be heard only occasionally. So the most important field in any position is its timestamp: a position from two minutes ago and one from two days ago look identical on a map. Always read the time of the position, and decide in your own logic how old is too old for your use case.

Voyage data is often stale

Destination, ETA and draught are typed in by the crew, and nobody forces them to update it. You will see destinations that belong to the previous voyage, ETAs in the past, and free-text destinations that are abbreviations, port codes or simply wrong. Treat them as a declaration, not a fact. A calculated ETA, based on the actual distance left and the vessel's real speed, is a useful second opinion; our vessel ETA API returns both side by side.

Identities are not guaranteed

The MMSI is programmed by the installer. Some transponders keep a default or test MMSI, some ships reuse the MMSI of a previous vessel, and two transponders occasionally share one. The name can be misspelled, padded with punctuation, or outdated. Good data pipelines reject impossible jumps (a vessel cannot cross an ocean in ten minutes) and validate the IMO number with its check digit rather than trusting every message.

Positions can be wrong or missing

GNSS jamming and spoofing in some regions produce positions far from the ship's real location. Transponders get switched off, legally or not, and a vessel that goes quiet leaves a gap in its track. A gap is information too: monitoring tools often alert when a vessel stops reporting.

Some details are simply not in AIS

AIS does not carry the owner, the operator, the gross tonnage, the deadweight, the year of build or the cargo. Anyone selling those fields alongside AIS is combining it with other registries; ask where they come from and how complete they are. We publish exactly which particulars we return and how many vessels have each on the vessel particulars API page.

What AIS is good for

Within those limits, AIS answers a lot of practical questions:

  • Where is this vessel now, and where is it heading? The last position, speed, course and declared destination.
  • Where has it been? A history of positions shows its route, its port calls and the time it spent in each. See the historical positions API.
  • What is happening in this area or port? Every vessel inside a bounding box, or the arrivals and departures at a port over the last weeks.
  • Has something changed? A vessel that stops reporting, changes its destination or enters a port can trigger an alert.

A checklist before you build

  1. Decide how fresh a position must be for your use case, and filter on the position time.
  2. Identify vessels by MMSI or IMO, never by name.
  3. Treat destination and ETA as declarations; compare them with a calculated ETA when the decision matters.
  4. Expect gaps in coverage and in reporting, and handle them explicitly rather than drawing straight lines across them.
  5. Ask your data provider what each field means, where it comes from and how many vessels have it.

AIS is the backbone of vessel tracking because almost every commercial ship broadcasts it, all the time. Used with its limits in mind, it gives you a live and remarkably detailed view of world shipping. If you want to try it, the vessel tracking API gives every endpoint with its price per call, and a free account comes with credits to test them.

AISbasics

More from the blog

Try it on your own vessels

Free account, no card, an API key in a minute.

Get a free API key