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. ▲ 2
    Hacker News/API: Documentation and Samples for the Official HN API
    story by johncole · 2024-05-14 · 0 comments
  2. …⁰ using the official HN API ¹ ⁰ https://github.com/gabrielsroka/gabrielsroka.github.io/blob/... ¹ https://github.com/HackerNews/API
  3. …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…
  4. …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
  5. 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
  6. …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
  7. ▲ 1
    Show HN: New Hacker News posts and comments in realtime
    story by jerbear4328 · 2024-02-26 · 1 comment
  8. …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
  9. You could use the API: https://github.com/HackerNews/API
  10. 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…
  11. ….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…
  12. 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
  13. 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…
  14. https://github.com/HackerNews/API
    comment by hnlmorg · 2023-12-21 · in Beeper – Moving Forward
  15. < 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?
  16. …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…
  17. …"API" link at the bottom of the page[1]. [0] https://www.ycombinator.com/blog/hacker-news-api [1] https://github.com/HackerNews/API
  18. That’s the official API for HN: https://github.com/HackerNews/API
  19. …-i -C`) without a browser extension. Dogsheep / datasette has a SQLite query Web UI HackerNews/API: https://github.com/HackerNews/API
  20. …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
  21. …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
  22. Not anymore! https://github.com/HackerNews/API
    comment by benmanns · 2023-11-19 · in Why I tend not to use content negotiation
  23. …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)
  24. …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…
  25. ▲ 11
    Show HN: Display all stories and comments for a specific Hacker News user
    story by simonpure · 2023-10-07 · 5 comments
  26. ▲ 1
    Ask HN: Have you ever needed additional context for LLM?
    story by pplonski86 · 2023-09-05 · 1 comment
  27. ▲ 2
    RFC: Hacker News – OpenAPI Specification for the REST API
    story by wiremock · 2023-08-14 · 3 comments
  28. …operate within them. [1a] - https://postmill.xyz/ [1b] - https://gitlab.com/postmill/Postmill [2] - https://github.com/HackerNews/API
  29. ▲ 2
    Ask HN: I'd like to offer a new HN karma metric but don't know how to build it
    story by supernova87a · 2023-07-08 · 7 comments
  30. 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?
  31. …[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…
  32. …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…
  33. ▲ 21
    Ask HN: How is it likely for Hacker News to block its public API in the future?
    story by redbell · 2023-06-13 · 15 comments
  34. …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
  35. …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
  36. > a polite scraping method Shouldn't be needed, there's an API. https://github.com/HackerNews/API
  37. 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
  38. 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
  39. …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...
  40. 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…
  41. 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
  42. HN has an API[0], with a bit of effort you can make one yourself. [0] https://github.com/HackerNews/API
  43. ▲ 2
    Ask HN: List of Top HN Users
    story by NKosmatos · 2023-01-16 · 1 comment
  44. 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.)
  45. There's an official API. https://github.com/HackerNews/API
  46. ▲ 14
    Ask HN: How does Hacker News avoid (successful) DDoS attacks?
    story by codesections · 2022-12-15 · 23 comments
  47. …[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
  48. …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
  49. It's accessible through the API: https://github.com/HackerNews/API Although it doesn't seem to be sorted by score.
  50. …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,…