Live data from Hacker News

Hacker News Official API

github.com

51–60 of 138 posts

Re: Hacker News Official API

#51
I found the official API quite a pain to work with while building myself an alternative "hn ui"[0]. I mostly switched over to using the Algolia API[1], which is a lot more "fun" to work with. I can only recommend checking that one out as well.

[0]: https://hnhub.dev/

[1]: https://hn.algolia.com/api/

Re: Hacker News Official API

#52

Earlier quoted context omitted.

Again, just expressing my opinion, but another example would be it would allow custom ranking algorithms like PageRank, TrustRank, etc. And yes, aware of Lobste.rs mod logs, but Lobste.rs is basically dead compared to HN — largely because it’s an HN clone.

This is a website where people post links and other people comment below them. Most front page discussions don't surpass 50 replies. I don't really think we should care so much about this place to the point that we're willing to employ state of the art data analysis tools just to read a blog post and see if someone has critiqued it in the comments

This kind of stuff would probably just seed the sort of neuroticism that makes forums worse.

Re: Hacker News Official API

#54
post #40
post #9

Annoying how it doesn't show the text or anything for dead items. Is there any way to query this API as if showdead is switched on?

I used to query flagged comments from time to time using the API, just out of some morbid curiosity. It definitely used to work for that; I am not sure if flagged items are in the same class as dead ones, though, or if they have since deliberately eliminated this capability. I eventually found more interesting things to do :)

The problem was that many third party apps and clients were displaying flagged and [dead] comments as if they were normal comments. Then we'd get angry emails about all the horrendous comments we were "condoning" when in fact the users posting them were as banned as banned could be.

Re: Hacker News Official API

#56

I'm currently writing an HN posts score tracker (basically it plots score variations over time since they were in new for each popular post) and it's really handy that you can just subscribe with eventsource [0] and get realtime update when something changes without having to manually poll each post wasting resources. Not yet sure about the latency though. [0] https://github.com/jpopesculian/reqwest-eventsource/

https://hnrankings.info/

Re: Hacker News Official API

#58

Earlier quoted context omitted.

This is a website where people post links and other people comment below them. Most front page discussions don't surpass 50 replies. I don't really think we should care so much about this place to the point that we're willing to employ state of the art data analysis tools just to read a blog post and see if someone has critiqued it in the comments

This kind of stuff would probably just seed the sort of neuroticism that makes forums worse.

[deleted]

Re: Hacker News Official API

#59

Anyone know of a good tool to get something like push notifications when specific topics come up on HN? I've been thinking maybe I should build one, but I also feel like someone must have already done it by now.

There's been several, but they always get abandoned after a year or two.
Post reply on HN