Hacker GitHub

← All repos

HackerNews/API

View on GitHub ↗ ★ 13,396

Documentation and Samples for the Official HN API

257 mentions on Hacker News by 206 people: 37 stories, 220 comments · first 2014-10-07 · latest 2026-10-31

Mentions per year 257 mentions · busiest year 2023 (30)
20082026
  1. …on their manual interventions, and this could be easily surfaced via the Hacker News API ( https://github.com/HackerNews/API ), if the Story JSON included the values of "contro," "bury," and "gag" fields, which are currently opaque to…
  2. …probably stopped updating BigQuery when they started hosting live Hacker News data in Firebase: https://github.com/HackerNews/API The live nature of the Firebase data is awesome, but the lack of ability to query is a loss.
    comment by xnx · 2024-03-10 · in Hacker News Stats: 2007–2022
  3. Congrats Nico. Came here to tell you about the HN API ( https://github.com/HackerNews/API ) but I see cheesehead beat me to it. Using the API it is much easier to pick up the latest thread each month and setup a cron job.
    comment by kpandit · 2024-03-07 · in Show HN: Tech jobs on the command line
  4. …a few months ago using an open source llm. Also, not sure if you know, there is an api you can use. https://github.com/HackerNews/API
    comment by cheesehead · 2024-03-07 · in Show HN: Tech jobs on the command line
  5. …could write a local (or web-based) client in any common language and add filters as you see fit. https://github.com/HackerNews/API
    comment by anigbrowl · 2024-01-31 · in Ask HN: How to filter out HN news by URL
  6. You could use the API: https://github.com/HackerNews/API
  7. You can now get Hacker News data in real time from the Hacker News API powered by Firebase: https://github.com/HackerNews/API This is great (real time!), but also kind of a pain (38+ millions individual http requests to get the whole…
  8. ….firebaseio.com/v0/user/ohjeez.json?print... and then scan the "submitted" articles as described here https://github.com/HackerNews/API I have a crawler that sucks down all the posts from HN and then I read it into Pandas and write all…
  9. From looking at the Hacker News API, you might be able to use that instead of scraping from the DOM: https://github.com/HackerNews/API#users
  10. You just need to make 38 million requests to the Firebase API document here https://github.com/HackerNews/API . :-) I actually made many more than that because I screwed up a few times. Might clean up the compiled data and put it on Kaggle…
  11. https://github.com/HackerNews/API
    comment by hnlmorg · 2023-12-21 · in Beeper – Moving Forward
  12. < https://github.com/HackerNews/API > Linked under "API" at the bottom of the page you're reading now.
    comment by dredmorbius · 2023-12-12 · in HN website is/was down. I'm curious why?
  13. …json import os # Set this: USER = 'Jugurtha' BASE_URL = 'https://hacker-news.firebaseio.com/v0' # https://github.com/HackerNews/API LINKS = f'${BASE_URL}/user/{USER}.json' class HNSpider(scrapy.Spider): name = 'hn' def…
  14. …"API" link at the bottom of the page[1]. [0] https://www.ycombinator.com/blog/hacker-news-api [1] https://github.com/HackerNews/API
  15. That’s the official API for HN: https://github.com/HackerNews/API
  16. …-i -C`) without a browser extension. Dogsheep / datasette has a SQLite query Web UI HackerNews/API: https://github.com/HackerNews/API
  17. …rate-limited) and Algolia does as well[1]. It isn't difficult to build a basic reader client. [0] https://github.com/HackerNews/API [1] https://hn.algolia.com/api
    comment by krapp · 2023-12-04 · in Lobsters
  18. …based on this post since 2014. Announcement https://www.ycombinator.com/blog/hacker-news-api API https://github.com/HackerNews/API
    comment by serial_dev · 2023-11-19 · in Why I tend not to use content negotiation
  19. Not anymore! https://github.com/HackerNews/API
    comment by benmanns · 2023-11-19 · in Why I tend not to use content negotiation
  20. …to catch edits, I think, although the readme is a bit vague about how exactly that works. [0] https://github.com/HackerNews/API
    comment by krapp · 2023-11-18 · in More people should write (2012)
  21. …as code…) and it’s just an unintentional missing DNS record, oops. The Hacker News API is still up: https://github.com/HackerNews/API https://hacker-news.firebaseio.com/v0/topstories.json?print=... To @dang or whoever is reading at…
  22. …operate within them. [1a] - https://postmill.xyz/ [1b] - https://gitlab.com/postmill/Postmill [2] - https://github.com/HackerNews/API
  23. If you care about the number of votes or comments an article gets you can get it out of Firebase https://github.com/HackerNews/API and it is a much more certain thing. I have a (i) a model that predicts "will this headline get more than 10…
    comment by PaulHoule · 2023-07-05 · in What gets to the front page of Hacker News?
  24. …[1] to pull, download, and iterate. Found a very basic demo to get up and running on SO [2]. [0] https://github.com/HackerNews/API#overview [1] https://firebase.google.com/docs/database [2] https://stackoverflow.com/questions/69518903/how-c…
  25. …API a year or two ago, we're in a similar position to what the article describes - we're paying for https://github.com/HackerNews/API and thus indirectly funding the commercial apps. Btw this is not to take a side on any of the Reddit…
  26. …rather than spending most of your time deleting stuff from Apollo that wouldn't even work here. [0] https://github.com/HackerNews/API
    comment by krapp · 2023-06-09 · in Reddit API to Hacker News API Bridge
  27. …and only on one NNTP server, does it count as usenet? Is that like the sound of one hand clapping? https://github.com/HackerNews/API https://www.npmjs.com/package/hackernews2nntp https://github.com/gromnitsky/hackernews2nntp Honorable…
    comment by ksherlock · 2023-06-02 · in Usenet over NNCP
  28. > a polite scraping method Shouldn't be needed, there's an API. https://github.com/HackerNews/API
  29. Author should have a look at https://github.com/HackerNews/API instead of scraping HN The HN API is linked to from every page on HN, at the bottom of the page in the footer. Look for the link named “API”.
    comment by codetrotter · 2023-05-20 · in LLM Powered Twitter Account
  30. Your app looks great! Re data: we just get the front page every few minutes from https://github.com/HackerNews/API The table is almost 10MB right now, so pretty small
    comment by kirubakaran · 2023-05-13 · in Show HN: Hacker News with Tags
  31. …the end of the API call (e.g. [2]). If the result has `dead: true`, your post is… well… dead ;) [1] https://github.com/HackerNews/API [2] https://hacker-news.firebaseio.com/v0/item/35700745.json?pri...
  32. You can make the intermediate step a bit more structured too via https://github.com/HackerNews/API For example, for the March one it is ID 34983767 (from the algolia search or a "there's only so many of them, here's a list that I'll add to…
  33. Built a terminal browser of HN based of HN API https://github.com/HackerNews/API and replbuilder: https://github.com/Aperocky/replbuilder Currently only supports read operations, but planning to add login and commenting eventually.
    comment by Aperocky · 2023-03-10 · in Show HN: Hnterminal, Browse HN in Terminal
  34. HN has an API[0], with a bit of effort you can make one yourself. [0] https://github.com/HackerNews/API
  35. In case no one post some hard number, you can try to calculate them yourself using https://github.com/HackerNews/API (If does not include [dead] comments, neither page views.)
  36. There's an official API. https://github.com/HackerNews/API
  37. …[2]. I used the Algolia search API, it has extremely generous rate limits and page limits. [0]: https://github.com/HackerNews/API [1]: https://hn.algolia.com/api [2]: https://console.cloud.google.com/bigquery?p=bigquery-public-...
    comment by FiloSottile · 2022-11-27 · in Fake HN titles generated by GPT-3
  38. …that way. There's also a Google dataset but I don't know the URL for it or if it's up to date. [0] https://github.com/HackerNews/API
    comment by krapp · 2022-11-27 · in Fake HN titles generated by GPT-3
  39. It's accessible through the API: https://github.com/HackerNews/API Although it doesn't seem to be sorted by score.
  40. …W.r.t. "and updated intermittently," I wanted to draw your attention to the HN realtime API: https://github.com/HackerNews/API#live-data and also that S.O. offers Atom Feeds: https://stackoverflow.com/feeds/ (I'd guess the rest do, too,…
  41. …feedback to improve my skills is more than welcome. Together with PRs to the repo, of course! [1] https://github.com/HackerNews/API
  42. …could release in the time we had. While awkward, it's possible to implement most of HN using it." https://github.com/HackerNews/API If one wants to get the comments for a post on HN from the API, they have to first fetch the post, then…
  43. …the HN API [1] to grab user profile info etc. The other is for the pro upgrade using ExtPay [2] [1] https://github.com/HackerNews/API [2] https://github.com/glench/ExtPay
  44. …https://serializer.io https://datatau.net/ https://hn.shiftedbits.org https://hn.algolia.com https://github.com/HackerNews/API https://deephn.org http://www.nackerhews.com/ https://yahni.news/ https://darkhn.herokuapp.com/…
    comment by pipiscrew · 2022-08-05 · in Autosummarized HN (With GPT3)
  45. There is a guide to the API here: https://github.com/HackerNews/API
  46. …Or was that read-only? Yes, it appears that at the time of publication, the API was read-only. [1] https://github.com/HackerNews/API
  47. Maybe used api[0] to get The top stories and then just parsed all the domains. [0] https://github.com/HackerNews/API
  48. Sure! It's a NextJS app that pulls data from the public HN api https://github.com/HackerNews/API . The source for it is here: https://github.com/chiptopher/hackernoise
  49. HN does have a REST API which is quite easy to use. https://github.com/HackerNews/API I'm not sure what rate limiting policy is in place, but in theory you can start with a request for maxitem and from that point on just GET all items down…
    comment by arinlen · 2022-04-29 · in Ask HN: Fastest Crawl of HN Articles
  50. Thanks! The GraphQL API is just a wrapper of HackerNews REST API (doc: https://github.com/HackerNews/API ) The REST endpoints do not provide a way to query the items with variable parameters. So, I could not support it either on GraphQL…