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
-
▲ 2
Hacker News/API: Documentation and Samples for the Official HN APIstory by johncole · 2024-05-14 · 0 comments
-
…⁰ using the official HN API ¹ ⁰ https://github.com/gabrielsroka/gabrielsroka.github.io/blob/... ¹ https://github.com/HackerNews/API
comment by gabrielsroka · 2024-04-18 · in Ask HN: Is there a way to customize the stories on Hacker News? -
…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 -
▲ 1
Show HN: New Hacker News posts and comments in realtimestory by jerbear4328 · 2024-02-26 · 1 comment
-
…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 -
▲ 11
Show HN: Display all stories and comments for a specific Hacker News userstory by simonpure · 2023-10-07 · 5 comments
-
▲ 1
Ask HN: Have you ever needed additional context for LLM?story by pplonski86 · 2023-09-05 · 1 comment
-
▲ 2
RFC: Hacker News – OpenAPI Specification for the REST APIstory by wiremock · 2023-08-14 · 3 comments
-
…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? -
▲ 2
Ask HN: I'd like to offer a new HN karma metric but don't know how to build itstory by supernova87a · 2023-07-08 · 7 comments
-
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 -
▲ 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
-
…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? -
▲ 2
Ask HN: List of Top HN Usersstory by NKosmatos · 2023-01-16 · 1 comment
-
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? -
▲ 14
Ask HN: How does Hacker News avoid (successful) DDoS attacks?story by codesections · 2022-12-15 · 23 comments
-
…[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