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
-
…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 -
▲ 2
Show HN: Pith language. JavaScript with a little bit of Python syntaxstory by gabrielsroka · 2022-09-01 · 1 comment
-
▲ 500
Hacker News Official APIstory by marchupfield · 2022-08-21 · 131 comments
-
…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 -
▲ 13
Show HN: Hacolyte – a Hacker News reader built with NextJSstory by iamdan · 2022-07-22 · 2 comments
-
…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 -
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 -
▲ 3
GitHub – Hacker News/API: Documentation and Samples for the Official HN APIstory by manikandarajs · 2021-10-23 · 0 comments
-
…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 -
▲ 2
Ask HN: Improving the Usability of HN?story by unknown_error · 2021-05-14 · 1 comment
-
…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 -
▲ 17
Show HN: I wrote an HN bot to suggest HTTPS url when people post HTTP URLsstory by fishywang · 2021-04-04 · 10 comments
-
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