The automatic identification system (AIS) is an automatic tracking system that uses transponders on ships to locate them. There are also databases that provide information about the ship — size, type, owner, registration, etc.

I need real-time data, preferably for the River Thames or the English Channel. Failing that, Singapore, Hong Kong or any major European (preferably German) river or port. Does anyone know of a free API to access any of this data?


3 Answers 3


The Norwegian Coastal Administration have an open AIS stream available, licensed under the Norwegian Licence for Open Government Data (NLOD) 2.0.

It's a TCP endpoint that you can access with a tool such as nc and pipe through a decoder like gpsdecode:

nc 5631|gpsdecode                                                                                                                                                                                                                                                                                                                                                    130 ↵
{"class":"AIS","device":"stdin","type":1,"repeat":0,"mmsi":257078370,"scaled":true,"status":0,"status_text":"Under way using engine","turn":"fastright","speed":3.8,"accuracy":true,"lon":6.019022,"lat":60.055675,"course":137.0,"heading":166,"second":47,"maneuver":0,"raim":false,"radio":23112}
  • 1
    Thanks. This looks useful. Plus, it takes me back to 4 or 5 very pleasant years in Hvalstad :-) Feb 25, 2021 at 11:56
  • Do you, by any chance, have a URL for the API documents, in English? My Norwegian has become rusty in 20 years away :-/ Feb 25, 2021 at 12:00
  • 1
    Maybe Google Translate could help? IIUC it's just standard AIS data. I used gpsd.gitlab.io/gpsd/AIVDM.html#_ais_payload_interpretation to interpret it Feb 25, 2021 at 12:05
  • G translate did not help :-( I will email them & ask. BU,T if you can interpolate the data, how did you get hold of it? Is there an API for a live data stream? Feb 25, 2021 at 12:08
  • 1
    I've edited my question to include an example Feb 25, 2021 at 13:20

I cannot find anything free. if you want it enough, then you can join AIS hub, BUT they require that you provide a feed before you can share the feeds of all other members.

The cheapest AIS receiver that I can find costs about $60, plus antenna.

If it's worth it, only you can decide.


AIS data for the USA is available from https://marinecadastre.gov/ais/.

I don't know about an API, but the site offers a variety of Arc Python-based tools that may lead you to a solution.

  • 1
    Thanks and upvote.Whiel it's not live, so no use to me, it could be of great use to anyone who wants a mouton of historical data. "The data available below contain records for U.S. coastal waters for calendar years 2009 through 2017. Records are filtered to one minute" BUT "Ship name and call sign fields have been removed, and the MMSI (Maritime Mobile Service Identity) field has been encrypted for the 2010 through 2014 data" Still very useful, though Jun 2, 2019 at 11:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.