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
-
Have you look at the API https://github.com/HackerNews/API ?
comment by gus_massa · 2022-04-06 · in Ask HN: How to index all possible HN new links? -
…of careful consideration I would simply prefer to discuss elsewhere, do not show up in my feed. [0] https://github.com/HackerNews/API
comment by nathanasmith · 2022-02-28 · in Tell HN: Thank you for the noprocrast flag -
It's Firebase. https://github.com/HackerNews/API
comment by r6203 · 2022-02-08 · in HN ran on a single box in 2018 has anything changed? -
…https://fsharpforfunandprofit.com/ https://github.com/crispgm/awesome-engineering-blogs https://github.com/HackerNews/API https://github.com/jkup/awesome-personal-blogs https://github.com/markodenic/awesome-tech-blogs…
comment by Pr0ject217 · 2022-02-07 · in Ask HN: Great Blogs by Programmers -
FYI, this uses the Hacker News API which I didn't know existed until researching this: https://github.com/HackerNews/API
comment by statico · 2022-02-02 · in Show HN: Add a “1” to your Hacker News URL to get fancy social previews -
Quite surprised that you're scraping HN and parse the DOM. Maybe should try use the API? https://github.com/HackerNews/API
comment by cheeaun · 2022-01-23 · in Show HN: Hacker XP – Hacker News styled as a Windows XP Outlook email client -
…performance to spare. (Hopefully that will change this year.) If you need to check more frequently, https://github.com/HackerNews/API works fine and you can get JSON that way anyhow.
comment by dang · 2022-01-13 · in Show HN: Login with HN (Unofficially) -
…in the future Why are you scraping? We have an API, it's linked at the bottom of every page[0]. 0: https://github.com/HackerNews/API
comment by diogenesjunior · 2022-01-13 · in Show HN: Login with HN (Unofficially) -
…scraping. HN has a rudimentary but functioning API [1], and there is dump on BigQuery [2]. [1]: https://github.com/HackerNews/API [2]: https://console.cloud.google.com/marketplace/product/y-combi...
comment by finite_jest · 2021-12-30 · in Ask HN: Is it OK to scrape HN comments and save for data collection? -
No; a copy of the HN database is synced regularly to Firebase ( https://github.com/HackerNews/API ), but IIRC the site itself runs on a single process on a single machine with a standby ready. edit: Yup.…
comment by ceejayoz · 2021-12-16 · in Tell HN: AWS appears to be down again -
Hacker news provides its own api, but it's not as easy to use as you would like. https://github.com/HackerNews/API#design
comment by sorahn · 2021-12-09 · in Two lines of CSS that will improve HN on mobile (IMO) -
didn't know about it. https://github.com/HackerNews/API . Checked it out, the api wouldn't have helped me: the API reponse for this flagged story doesn't indicate, that it has been flagged. https://hacker-news.firebaseio.com/v0/item/2910305…
comment by MichaelMoser123 · 2021-11-05 · in Show HN: Page and crawler that show flagged HN submissions only -
…can filter. Maybe you could obtain something more specific building a special RSS feed through the API ( github.com/HackerNews/API )?
comment by mdp2021 · 2021-10-24 · in RSS is wonderful -
…we could release in the time we had. While awkward, it's possible to implement most of HN using it. https://github.com/HackerNews/API My words may have been a bit too harsh but I still think I have a point. The only thing I could find use…
comment by busymom0 · 2021-10-01 · in CNLabelContactRelationYoungerCousinMothersSiblingsDaughterOrFathersSistersDaught -
Hmm, it seems to be working. There are some nice examples on https://github.com/HackerNews/API
comment by BoHerfIIIJrEsq · 2021-08-26 · in Ask HN: How do I connect to Hacker News API? -
Most 3rd apps use the Hackernews API https://github.com/cheeaun/awesome-hacker-news https://github.com/HackerNews/API
comment by mtmail · 2021-08-12 · in Ask HN: Is the Hacker News source code public? -
…page as seen by the API. https://hacker-news.firebaseio.com/v0/item/28060112.json?pri... See also https://github.com/HackerNews/API
comment by gabrielsroka · 2021-08-07 · in Ask HN: Any (free) Hacker News datasets around? -
…a hundred requests, so I use this approach in my client[2]. [0]: https://hn.algolia.com/api [1]: https://github.com/HackerNews/API [2]: https://github.com/goranmoomin/HackerNews
comment by pcr910303 · 2021-08-01 · in Extracting Objects Recursively with Jq -
…never leave the app (except for news.ycombinator.com) — it’s tucked in your keychain. [0]: https://github.com/HackerNews/API
comment by pcr910303 · 2021-07-22 · in Show HN: I developed a native macOS Hacker News client -
…for offline reading I guess that’s one more feature that I should add to my backlog :) [0]: https://github.com/HackerNews/API [1]: https://hn.algolia.com/api
comment by pcr910303 · 2021-07-22 · in Show HN: I developed a native macOS Hacker News client -
Is there actually a search.json endpoint? https://github.com/HackerNews/API doesn't list this as a valid endpoint. Indeed, when I try to access it via curl, I get a HTTP 405 with a "Permission denied" error (same result when I try to…
comment by vitus · 2021-07-03 · in GitHub Copilot -
…News was openly available. https://news.ycombinator.com/item?id=1390685 And there's also an API. https://github.com/HackerNews/API There's lots of Wikipedia-like software available, too. I guess it depends on what you mean by "build" a…
comment by MilnerRoute · 2021-06-20 · in How do you build a community like HN or similar? -
Last time I "archived" my account data on HN I used https://github.com/HackerNews/API which seems to be working good enough for my needs.
comment by capableweb · 2021-05-25 · in Data portability, the forgotten right of GDPR -
There is public API for HN data https://github.com/HackerNews/API Does it count like ability to download your data?
comment by vincnetas · 2021-05-25 · in Data portability, the forgotten right of GDPR -
…Totally hilarious that you posted this on a discussion site whose API doesn't require tokens. https://github.com/HackerNews/API
comment by KirillPanov · 2021-05-03 · in Truly unified inbox – BlackBerry got it right and nobody has since -
…get at most 500 stories. [0]: https://hn.algolia.com/api/v1/search?tags=front_page&hitsPer... [1]: https://github.com/HackerNews/API
comment by aome510 · 2021-04-25 · in Show HN: hackernews_tui – A Terminal UI to browse Hacker News discussions -
…Hacker News Posts we were using the public Hacker News API, which returns the posts in JSON format: https://github.com/HackerNews/API The crawling speed of 100...1000 pages per second refers to crawling the external pages linked from…
comment by wolfgarbe · 2021-04-15 · in Show HN: DeepHN – Full-text search of 30M Hacker News posts and linked webpages -
I notice there's an API https://github.com/HackerNews/API but don't see any of the core site code. Is there any way people can contribute back?
comment by dalrympm · 2021-01-09 · in Ask HN: Dark mode for HN please? (2021) -
Not sure you mean, content is from the API https://github.com/HackerNews/API
comment by cheeaun · 2020-12-28 · in HN Alternative UIs -
The (best) stories are fetched via the Hacker News API: - API call documentation: https://github.com/HackerNews/API#new-top-and-best-stories - Code pointer: https://github.com/lopespm/hackernews-daily/blob/main/hnsour... - This is…
comment by lopespm · 2020-12-26 · in Show HN: Hacker News Daily – Lightweight glance over the past best stories -
…minimalism crowd. Especially because the api its pretty solid you can build whatever stuff you want https://github.com/HackerNews/API You could implement you own tagging system and see if people bite. For instance I built a comment…
comment by wh-uws · 2020-12-20 · in Ask HN: Why HN Doesn't Have Tags? -
The very least public APIs are exposed via firebase. https://github.com/HackerNews/API
comment by porkbrain · 2020-12-14 · in Google outage – resolved -
OP: Hackernews offers an excellent API via Firebase: https://github.com/HackerNews/API . Unfortunately, their fetch method doesn't offer any way to filter by item types. So collecting all posts take excessively long thanks to all the…
comment by massanishi · 2020-11-17 · in 239,621 Hacker News datasets from the past 5 years -
…popularity, which maps to 'score' in the data structure that the API sorts. You can see that here: https://github.com/HackerNews/API The highest position on front page is not, AFAICT stored in any way and is not searchable.
comment by justinhj · 2020-10-14 · in Algolia releases new AI search features -
HackerNews has an open API ( https://github.com/HackerNews/API ). It doesn't say anything specific about the legality and there have been many HackerNews clones in the past. So as far as I know it should not be a problem, but if anyone can…
comment by RubenvanE · 2020-10-08 · in Why I stopped reading HN (2010) -
Use this an example, but for real stuff prefer using the official API https://github.com/HackerNews/API
comment by lixtra · 2020-09-09 · in How we learnt to stop worrying and love web scraping -
https://github.com/HackerNews/API https://hn.algolia.com/api
comment by varbhat · 2020-09-01 · in Scrapping HN / HNewsletter ? -
…sentiment analysis ML app on the Who's Hiring post recently and use a the public firebase REST API: https://github.com/HackerNews/API . It mostly works for my usecase but its search capabilities are severely lacking over REST so might not…
comment by AlexanderNull · 2020-07-14 · in Ask HN: How to you manage your favorite HN submissions? -
What is the difference between the Algolia HN API vs the Hacker News API ( https://github.com/HackerNews/API )? The Hacker News API doesn't have any rate limits but appears to be similar to the Algolia API. Does Algolia have its own HN…
comment by ping_pong · 2020-07-09 · in Hacker News RSS Feeds -
[flagged] is a visible indicator, so you can just do that analysis yourself. Either use the API https://github.com/HackerNews/API or, if that doesn't include the flag status, scrape it from the website. Then classify whatever number of…
comment by yorwba · 2020-06-14 · in Ask HN: Can HN admins show what % of all flagged posts lately are China related? -
…their API on github. It's simplistic but you can still use it to write a sh*ttier version of HN. https://github.com/HackerNews/API I just wish they'd open source their We're-Not-Reddit behaviors library.
comment by ourmandave · 2020-06-06 · in A List of Hacker News's Undocumented Features and Behaviors (2018) -
It also has an official API: https://github.com/HackerNews/API
comment by bhhaskin · 2020-05-20 · in Unofficial APIs -
Just use one of those CSS extensions and roll your own using HN's API: https://github.com/HackerNews/API Also, CSS is an abomination, aesthetics have always belonged on the client side.
comment by anigbrowl · 2020-05-16 · in Ask HN: Dark mode for HN please? -
…Although, the documentation says that field is HTML, so I'm not sure what to think. https://github.com/HackerNews/API
comment by shpx · 2020-04-25 · in Microsoft Word now flags double spaces after a period as errors -
…the data when HN offers an official API[1]? Does the API not expose all the data you need? [1] https://github.com/HackerNews/API
comment by Etheryte · 2020-04-14 · in Hacker_news_scraper -
Use this https://github.com/HackerNews/API
comment by vasco · 2020-04-11 · in Analyzing HN readers' personal blogs -
It's a shame favorites aren't exposed in the official HN API: https://github.com/HackerNews/API - this is a smart workaround.
comment by simonw · 2020-04-05 · in Show HN: Export HN Favorites to a CSV File -
…I also ported it to web with Emscripten's Fetch API so it can be easily demonstrated [1]. [0] - https://github.com/HackerNews/API [1] - https://hnterm.ggerganov.com
comment by ggerganov · 2019-12-15 · in Show HN: HNTerm – Browse Hacker News in the Terminal -
HN has an API: https://github.com/HackerNews/API I'm using it to track common items here and on Lobste.rs (and Proggit): http://gerikson.com/hnlo/ Here's the endpoint for the latest 500 submissions: https://hacker-news.firebaseio.com/v0/new…
comment by gerikson · 2019-11-24 · in Show HN: Hacker News Title Edit Tracker -
…have much performance to spare. If you need more than that, you should use the Firebase-based API ( https://github.com/HackerNews/API ). The public dataset is also available as a Google BigQuery table:…
comment by dang · 2019-11-24 · in Show HN: Hacker News Title Edit Tracker