Hacker News Official API

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • hacker-news-comments

  • I wrote a script that will allow you to use cookies to download your comment scores [1]. I also did some analysis of my own scores [2]

    [1] https://github.com/superb-owl/hacker-news-comments

    [2] https://superbowl.substack.com/p/commenting-on-hacker-news

  • hackernews_graphql

    A full fledged graphql API for hackernews.

  • Yeah, I built a graphql API for HN for this reason. It will let you fetch all comments, users, and posts in a single request.

    https://hngraphql.fly.dev/graphql

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • Hacker News API

    Documentation and Samples for the Official HN API

  • newtab

    A clean new tab page extension for Chrome made by Isaac Bythewood, you can grab it and customize it yourself. (by overshard)

  • I use this API in a few places such as a custom New Tab extension I made for myself on Chromium based browsers:

    https://github.com/overshard/newtab/blob/master/newtab.js#L1...

    Haven't had any issues with it!

  • reqwest-eventsource

    Helper to build an Eventsource using reqwest

  • I'm currently writing a HN post score tracker (basically it plots score variations over time since they were in new for each popular post) and it's really convenient that you can just subscribe with eventsource [0] and get realtime update when something changes without having to manually poll each post wasting resources. Not yet sure about the latency though.

    [0] https://github.com/jpopesculian/reqwest-eventsource/

  • hkrnws

    hackernews but chronological

  • hn-data-dumps

  • I wrote a simple hn data downloaded based on this api. Last I remember I was able to download the entire corpus by letting it run overnight.

    https://github.com/ashish01/hn-data-dumps

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • hn-faves-api

    🌐 Tiny API to get user's favorited items on Hacker News

  • Similar to this, I created "HN Faves API", which is an API to fetch a user's favorited posts and comments on HN. Interestingly, HN doesn't have an official API for this.

    On GitHub: https://github.com/plibither8/hn-faves-api

    You can try it out here: https://hn-faves.mihir.ch

  • Hackers

    Hackers is an elegant iOS app for reading Hacker News written in Swift.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts