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
20082026
-
…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…
comment by cbeach · 2024-03-22 · in Hacker News Rankings. Graphs of HN posts rank on timeline -
…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 -
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 -
…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 -
…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 -
You could use the API: https://github.com/HackerNews/API
comment by andsoitis · 2024-01-29 · in Ask HN: How to track subjects in HN like a particular programming language? -
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…
comment by xnx · 2024-01-27 · in Ask HN: Has Hacker News stopped uploading its dataset in 2022? -
….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…
comment by PaulHoule · 2024-01-25 · in Ask HN: How do I find my most popular HN posts? -
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
comment by cwales95 · 2024-01-06 · in Show HN: Hacker News User Information on Hover -
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…
comment by xnx · 2024-01-03 · in Show HN: Hacker News Year in Review: 2023 -
https://github.com/HackerNews/API
comment by hnlmorg · 2023-12-21 · in Beeper – Moving Forward -
< 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? -
…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…
comment by gabrielsroka · 2023-12-11 · in Ask HN: Is there a Hacker News takeout to export my comments / upvotes, etc.? -
…"API" link at the bottom of the page[1]. [0] https://www.ycombinator.com/blog/hacker-news-api [1] https://github.com/HackerNews/API
comment by krapp · 2023-12-11 · in Ask HN: Is there a Hacker News takeout to export my comments / upvotes, etc.? -
That’s the official API for HN: https://github.com/HackerNews/API
comment by firloop · 2023-12-11 · in HN-comments-drawer: one line HN comments integration into sites -
…-i -C`) without a browser extension. Dogsheep / datasette has a SQLite query Web UI HackerNews/API: https://github.com/HackerNews/API
comment by westurner · 2023-12-10 · in Ask HN: Is there a Hacker News takeout to export my comments / upvotes, etc.? -
…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 -
Not anymore! https://github.com/HackerNews/API
comment by benmanns · 2023-11-19 · in Why I tend not to use content negotiation -
…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) -
…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…
comment by compumike · 2023-10-09 · in Tell HN: DNS record "hn.algolia.com" was gone -
…operate within them. [1a] - https://postmill.xyz/ [1b] - https://gitlab.com/postmill/Postmill [2] - https://github.com/HackerNews/API
comment by LinuxBender · 2023-07-29 · in Ask HN: What would it take for HN to become ActivityPub compatible? -
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? -
…[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…
comment by soderfoo · 2023-06-27 · in How to download Hacker News (posts and comments) in 2023? -
…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…
comment by dang · 2023-06-16 · in Reddit CEO lashes out on protests, moderators and third-party apps -
…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 -
…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 -
> a polite scraping method Shouldn't be needed, there's an API. https://github.com/HackerNews/API
comment by lucideer · 2023-05-25 · in Ask HN: For users with 10k+ karma, how much time do you spend on HN? -
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 -
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 -
…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...
comment by scastiel · 2023-04-25 · in Ask HN: Why don't I see [dead] mark next my own submits? -
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…
comment by shagie · 2023-03-22 · in Show HN: A structured list of jobs from “Who is hiring?”, parsed with GPT -
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 -
HN has an API[0], with a bit of effort you can make one yourself. [0] https://github.com/HackerNews/API
comment by krapp · 2023-01-25 · in Ask HN: Is anyone building a question answering system using the HN corpus? -
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.)
comment by gus_massa · 2022-12-22 · in Ask HN: Is somewhere out there some HN statistics? -
There's an official API. https://github.com/HackerNews/API
comment by gabrielsroka · 2022-12-16 · in Ask HN: How to “subscribe” to comments in a specific post? -
…[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 -
…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 -
It's accessible through the API: https://github.com/HackerNews/API Although it doesn't seem to be sorted by score.
comment by krapp · 2022-11-10 · in Ask HN: Any way to get the top weekly Ask HN submissions in my mailbox? -
…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,…
comment by mdaniel · 2022-11-06 · in Show HN: Feep! search, an independent search engine for programmers -
…feedback to improve my skills is more than welcome. Together with PRs to the repo, of course! [1] https://github.com/HackerNews/API
comment by call-me-al · 2022-10-04 · in Show HN: GoHN – Hacker News API Wrapper for Go -
…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…
comment by busymom0 · 2022-09-26 · in Tell HN: My Hacker News app (HACK) is sort of broken this afternoon -
…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
comment by sjdz · 2022-09-09 · in Show HN: I made a modern web UI for Hacker News -
…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) -
There is a guide to the API here: https://github.com/HackerNews/API
comment by Agamus · 2022-08-04 · in Quaise Energy is working to create geothermal wells -
…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
comment by guessmyname · 2022-06-26 · in ‘Reverse Engineering’ Hacker News into an API -
Maybe used api[0] to get The top stories and then just parsed all the domains. [0] https://github.com/HackerNews/API
comment by vorticalbox · 2022-06-23 · in Brave Search Goggles: Alter search rankings with rules and filters -
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
comment by chiptopher · 2022-06-20 · in Show HN: Hacker News but it's only the comments with none of the context -
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 -
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…
comment by hsblhsn · 2022-04-18 · in Show HN: GraphQL Wrapper for Hacker News API