How to scrape Hacker News comments

Good news if you write code: Hacker News is one of the few platforms with a genuinely open API. The official Firebase-backed API serves every item and comment with no key and no auth, and the Algolia-powered HN Search API lets you query threads by keyword and date. Pulling the raw comments is the easy part, and honestly, a developer can do it in an afternoon.

The hard part is what happens next. HN threads are deeply nested, each item is just an id pointing to more ids, and a busy thread runs hundreds of comments of debate. Turning that into the objections and named alternatives a technical buyer actually weighs is the real work. Here are the routes, honestly ranked.

Start free

★ 4.5 on the Chrome Web Store · no card needed

01

Reading a thread by hand

For a single thread you can just read it on the site and copy what matters. HN's threading is legible in the browser, so this works fine when you only care about one discussion. It stops scaling the moment you want to compare what people say across every thread about your category, or capture the deep replies that get collapsed on a long thread.

02

The official API route: easy access, no analysis

This is the rare case where the API route is genuinely the developer-friendly one. The Firebase API exposes item and comment endpoints with no auth and no key; you fetch an item, get its list of child ids, and recurse to rebuild the comment tree. The Algolia HN Search API lets you find threads by keyword so you are not guessing at URLs. Both are free.

But access is only half the job. You still have to reconstruct the nesting from ids, dedupe, strip the meta-discussion, and then read the whole thing to find the pattern. Five hundred comments of 'I'd just self-host it' and 'the pricing page buries the per-seat cost' is data, not an angle. The API hands you the raw material and stops there.

03

The paste-a-URL route

Adlicio reads the public comments under a thread through your own browser session and skips the recursion entirely. Paste a thread URL and it collects the comments, replies included, in about 60 seconds, no id-walking and no scripts.

Then the comments come back clustered into ranked angles: the objections technical buyers raise first, the tools they say they would reach for instead, and the trade-offs that decide whether they take you seriously, each backed by verbatim quotes. It turns 500 comments into the handful of angles worth testing.

Do it with Adlicio

The 60-second version

  1. 01
    Pick threads where your category gets argued

    A launch thread for a competitor, a 'Show HN' in your space, or a discussion of the problem you solve. High comment counts mean more objections and more named alternatives.

  2. 02
    Paste the thread URL into Adlicio

    Any public Hacker News thread. The scrape reads the comment tree, replies included, and finishes in about 60 seconds.

  3. 03
    Read the clusters, steal the credibility

    Work from the ranked angles: the objection engineers state plainly becomes the thing your ad answers, and the verbatim quote gives you language that sounds credible to a technical reader.

FAQ

Questions people also ask

Is there a free Hacker News API?

Yes. The official Firebase-backed API serves items and comments with no key and no auth, and the Algolia HN Search API lets you query threads by keyword. For a developer, pulling raw comments is genuinely easy.

What is the Algolia HN Search API used for?

It is a free search layer over Hacker News that lets you find threads and comments by keyword, author, or date, which is how you locate every discussion in your category instead of hunting for thread URLs by hand.

Why is Hacker News threading hard to reconstruct?

The API returns each comment as an id with a list of child ids, not a finished tree. Rebuilding a readable thread means recursing through those ids and stitching the replies back into order, which is the part the raw API leaves to you.

How do I turn hundreds of HN comments into ad angles?

That is the analysis gap the API does not close. Adlicio clusters the comments into ranked angles with verbatim quotes, so a long debate becomes a short list of objections and alternatives worth writing ads against.

Keep exploring

More guides

Hacker News scraperAll scrapersSee pricing

Run this play on your own Hacker News page.

Paste one public URL. Adlicio returns the angle, hook, and proof to test next.