How hard is it for HN to make its own API? so I could do something like: curl https://api.news.ycombinator.com/
My understanding is that this is the official HN API. I think Firebase is a YC company. Others can correct me if I'm wrong. See the link at the bottom of every HN item page. Edit: I took a look, it seems like Firebase is owned by Google now, but it was original a YC-funded startup, judging by this page: https://www.crunchbase.com/funding_round/firebase-pre-seed--...
Hacker News Official API
81–90 of 138 posts
Re: Hacker News Official API
#82Re: Hacker News Official API
#83Earlier quoted context omitted.
It's not going to happen. Showing comments led to constantly flamewars about unfair commenting. Even without the comment scores, the mods are still constantly having to remind people to stop arguing about scores. The decision not to display or make available other people's scores was litigated intensely; it is now part of the premise of the community.
By “showing comments led” do you mean showing comment points/votes? Also, if comment viewable comment points are gone forever, then the “popularity” filter should be removed from HN’s search and the old voting data removed from the public API. To me, if users have concerns about “unfair voting” to me the solution is not to hide them. Also, if comment points aren’t important, why even allow them? They are obviously im…
Re: Hacker News Official API
#84Only using the official API is quite cumbersome, as fetching a story with comments requires one network request per each comment. Instead, try considering the (more unknown) Algolia API[0]. It supports fetching the entire tree in one request. Unfortunately the comments aren’t sorted, so you’ll still have to use the official one (or parse the HN HTML) if you need that. For my HN client[1], I parse the HN HTML (as it’s…
Van Puffelen answers some of this here, but he doesn't get into specific queries: https://www.youtube.com/watch?v=66lDSYtyils
He also mentions here that Firestore offers a bit more for WHERE type clauses over Firebase:
https://stackoverflow.com/questions/26700924/query-based-on-...
Re: Hacker News Official API
#85In response to people's complaints about the usability of the HN Firebase API: yes. We're going to eventually have a new API that returns a simple JSON version of any HN URL. At that point we'll phase out the Firebase API, with a generous deprecation period. I'd be curious to hear people's thoughts about what a generous deprecation period might be.
I want to build a HN web client but it's not possible without scrapping the site which won't scale.
Re: Hacker News Official API
#86In response to people's complaints about the usability of the HN Firebase API: yes. We're going to eventually have a new API that returns a simple JSON version of any HN URL. At that point we'll phase out the Firebase API, with a generous deprecation period. I'd be curious to hear people's thoughts about what a generous deprecation period might be.
Can you allow login and write operation via the API? I want to build a HN web client but it's not possible without scrapping the site which won't scale.
Re: Hacker News Official API
#87Only using the official API is quite cumbersome, as fetching a story with comments requires one network request per each comment. Instead, try considering the (more unknown) Algolia API[0]. It supports fetching the entire tree in one request. Unfortunately the comments aren’t sorted, so you’ll still have to use the official one (or parse the HN HTML) if you need that. For my HN client[1], I parse the HN HTML (as it’s…
Re: Hacker News Official API
#88Earlier quoted context omitted.
Can you allow login and write operation via the API? I want to build a HN web client but it's not possible without scrapping the site which won't scale.
Im typing this from the iOS app HACK which somehow allows for writing comments and upvoting etc.
Another issue is browser only client. If HN has set proper cors (I didn't check if it is the case), then you cannot build a web client through scrapping without proxy.
Re: Hacker News Official API
#89Re: Hacker News Official API
#90An official RSS/Atom feed would be great too.