Lurker News
I built this because I was interested in the data. Didn't fully get it to what I wanted, but thought I'd share it nonetheless. Maybe someone has better data sources they could share!

Turns out live ship tracking APIs are expensive so I manually just copied the json from https://www.marinetraffic.com/en/ais/home/centerx:57.4/cente... I'll probably have an ai agent do the same thing on some cron interval, if this gets any fanfare.
To actually know if the port is open without live ship tracking I found https://portwatch.imf.org/pages/cb5856222a5b4105adc6ee7e880a... which was perfect, except it has 4 day lag!
I also thought of adding news feed parsing or prediction market data to get a more definitive answer on if it's open right when you load it, but I spent a few hours and am gonna move on for now.

Comments (209) 45 threads

Earlier comments
alerter1 reply#
I work for a consultancy that does vessel tracking as one of its main products, and yeah it's expensive! afaik they have remote teams with sensors at key points and a bunch of people using AI/software to manage things like GPS spoofing. So it's all pretty guarded proprietary stuff.

Great bit of topical datavis here.

anonfunction#
Yeah! The AIS terrain data is expensive, but the good stuff is from satellite tracking and out of my budget for silly site I built on a whim.

https://i.imgflip.com/aopmmf.jpg

namewithhe1d3 replies#
OP, DM me and I'll get you a persistent key for this data. Not from MarineTraffic
anonfunction1 reply#
Wow thanks, there's not really any dm functionality on hn and I didn't see a clear social handle in your profile. https://github.com/montanaflynn/ has my email.
codethief#
You could get in touch with GP by googling for his company (see profile), finding his name through the company website (he's the CEO), and then googling for his LinkedIn/X accounts.

Also: Cool project!

HiroProtagonist#
Very cool thing of you to do.
nodesocket#
Aren't ships turning off their AIS when traveling the straight? I think https://atlas.flexport.com/ could also be a good source.
bl4ckneon1 reply#
Very cool! I love one off intresting sites like this. Thanks for building it and talking a little bit about where the data comes from etc.

On the note of Ai agent getting the data for you, could you not just build a chrome extention that intercepts/read the api response and then uploads it to whatever ingest endpoint you have? You could probably just call their api end points they use on the page as well but not sure what protections they have so might be a bit tricky. A custom chrome extention could do it though if they have protections.

anonfunction1 reply#
Their APIs are protected by cloudflare, I didn't want to circumvent that. Also I dont really want to make a chrome extension or have a browster tab open, if that's what you meant? I've already made a cron style agent framework[1] so that's what I'd probably reach for since they can actually open the browser and inspect the network traffic to grab the json.

1. https://botctl.dev/

Klonoar1 reply#
How is doing it via agent not circumventing it?
anonfunction#
I think I was just spit-balling what would be possible, rather than what I intend to do. As mentioned elsewhere I'm hoping to get an API key from one the data providers, I even reached out to the api behind marinetraffic.com, https://www.kpler.com/product/maritime/data-services to see if they would sponsor the project.

This was just something I built on a whim, but I appreciate your comment and took it to heart!

spaghetdefects2 replies#
It was mentioned in this thread and quickly flagged, but Israel broke the ceasefire today by attacking civilians in Lebanon so Iran closed the straight. It was open prior to the ceasefire violation.

France's Macron actually just commented on this: https://x.com/EmmanuelMacron/status/2041990505760772551

globalnode#
israels only option is to get america involved since they cant achieve their goals by themselves. trump unwittingly got a punch in the face last time he let himself get dragged in so doubt hell go 100% in again, maybe just lip service attacks to try and appease israel while backchannel appologising profusely to iran as he does it lol

edit: actually im likely completely wrong, what i wrote above is what i hope would be the case but sadly in reality the violence will never end and oil prices will go up and up and up. this is just a temporary blip. the fighting will continue until something more substantial happens to sort it out in favour of one side or the other.

xdennis1 reply#
> Israel broke the ceasefire

Correct me if I'm wrong, but Israel didn't sign any ceasefire. The ceasefire was between Iran and US. Israel separately announced (not part of any deal) that it would stop attacking Iran. It honored that self-imposed limit. Israel attacked Lebanon (Iran's proxy).

LarsKrimi#
It's impossible to know right now. Some are saying Pakistan messed up by not specifying properly to both sides what would constitute a cease fire. And US (Israel's proxy) is probably a bit unreliable in how their military command and political leadership separately interpreted the agreements as well

/S trying to highlight how stupid it sounds when you try to retrofit sense into this conflict

Load more comments