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

Show all comments

Showing thread 7 of 45

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!