Skip to content

Hacker News Scraper

Try for free

Scrape Hacker News stories, comments, front-page lists and user profiles. Full-archive search with points, comments, date and author filters, complete comment trees, live rankings. No login needed.

🟧 Hacker News Scraper

Export Hacker News stories, comments, front-page rankings and user profiles to JSON, CSV or Excel. Search the full HN archive with points, comments, date and author filters, pull whole comment threads with depth and parent links, or snapshot the live front page. No login, no browser, a few seconds per run.

✨ Why use Hacker News Scraper?

  • ⚡ Fast: small searches finish in seconds, and thousands of results soon after.
  • 🔎 Full-archive search: every story and comment since 2007, sorted by relevance or newest first, with no 1,000-result cap.
  • 💬 Complete comment trees: every reply as its own row with depth, parentId and the story it belongs to, ready for sentiment analysis or LLM pipelines.
  • 📰 Live rankings: top (front page), new, best, Ask HN, Show HN and job lists with their current rank.
  • 👤 User profiles: karma, account age, about text and recent stories or comments for any username.

🎯 Use cases

  • 📈 Brand and product monitoring: track every mention of your company, product or competitor, newest first, on a schedule.
  • 🚀 Launch tracking: follow your Show HN or Launch HN post's points, comments and rank on the front page.
  • 🧠 Developer sentiment research: collect full discussions about a framework, language or tool for analysis.
  • 🤖 AI and RAG datasets: clean plain-text stories and comments with thread structure.
  • 🧑‍💼 Hiring and lead generation: pull "Who is hiring?" threads and job posts with all replies.
  • 📰 Newsletters and dashboards: daily top stories above a points threshold.

🚀 How to use

  1. Enter one or more search queries, pick front-page lists, paste Hacker News URLs or add usernames.
  2. Set Max results per input (default 20).
  3. Optionally narrow with Filters (content type, points, comments, dates, author) and turn on Include comments.
  4. Click Start and download the results as JSON, CSV, Excel or HTML, or read them through the API.

📥 Input

FieldWhat it does
searchQueriesFull-text search over all stories and comments
storyListstop, new, best, ask, show, job
startUrlsItem, user, list or hn.algolia.com search URLs (bare item ids work too)
usernamesHN usernames: profile plus recent submissions
maxResultsMax stories or comments per input (0 = all available)
contentTypesstory, comment, ask_hn, show_hn, job, poll, front_page
sortByrelevance or date (newest first)
author, minPoints, maxPoints, minComments, maxComments, dateFrom, dateToFilters
includeComments, maxCommentsPerItem, maxCommentDepthComment trees (item URLs always include theirs, capped by maxCommentsPerItem)
userContentnone, stories, comments or all for usernames
{
  "searchQueries": ["sqlite", "postgres"],
  "storyLists": ["top"],
  "startUrls": ["https://news.ycombinator.com/item?id=8863"],
  "maxResults": 50,
  "contentTypes": ["story"],
  "sortBy": "date",
  "minPoints": 100,
  "dateFrom": "30 days",
  "includeComments": true,
  "maxCommentsPerItem": 100
}

📤 Output

Each row has a recordType: item (a story, job, poll or comment matched by your input), comment (a reply from a comment tree) or user.

FieldDescription
id, type, title, url, domainThe post and where it links
author, points, numCommentsAuthor and engagement
createdAt, createdAtUnixCreation time (UTC)
text, textHtmlPost or comment text, plain and original HTML
storyId, storyTitle, storyUrl, parentId, depthThread structure
rank, tags, hnUrl, source, scrapedAtPosition, HN tags, HN link, which input produced it
username, karma, about, submittedCountUser rows

Example (sample values):

[
  {
    "recordType": "item",
    "id": 41234567,
    "type": "story",
    "title": "Show HN: A tiny SQLite-backed job queue",
    "url": "https://example.com/blog/tiny-queue",
    "domain": "example.com",
    "author": "sample_dev",
    "points": 312,
    "numComments": 87,
    "createdAt": "2025-08-14T15:02:11Z",
    "createdAtUnix": 1755183731,
    "text": null,
    "textHtml": null,
    "storyId": 41234567,
    "storyTitle": "Show HN: A tiny SQLite-backed job queue",
    "storyUrl": "https://example.com/blog/tiny-queue",
    "parentId": null,
    "depth": null,
    "rank": 1,
    "tags": ["story", "show_hn"],
    "hnUrl": "https://news.ycombinator.com/item?id=41234567",
    "source": "search:sqlite",
    "scrapedAt": "2026-10-14T18:50:24Z"
  },
  {
    "recordType": "comment",
    "id": 41234890,
    "type": "comment",
    "author": "another_hacker",
    "createdAt": "2025-08-14T15:40:02Z",
    "text": "We run something similar in production. WAL mode made a big difference.",
    "storyId": 41234567,
    "storyTitle": "Show HN: A tiny SQLite-backed job queue",
    "parentId": 41234567,
    "depth": 1,
    "hnUrl": "https://news.ycombinator.com/item?id=41234890",
    "source": "search:sqlite"
  }
]

❓ FAQ

Is it legal to scrape Hacker News? The actor only reads public data through Hacker News' official public APIs. Check the terms that apply to your use and handle personal data responsibly.

Do I need a login or my own proxy? No. No account and no proxy are needed. The run connects directly to the public Hacker News APIs and switches to datacenter proxies on its own if it gets rate-limited.

How many results can I get? Front-page lists hold up to 500 stories each. Hacker News search lists at most 1,000 hits per relevance-sorted query. When you ask for more, the actor keeps going, so a relevance search reaches the whole archive too; the first 1,000 rows are the overall best matches, later rows are the best matches of each time period, newest period first. With Sort by date the whole archive is paged newest first.

Why are some fields empty? Hacker News leaves them empty: link posts have no text, Ask HN posts have no url, comments have no points (HN hides them), and deleted comments are skipped.

Can I schedule it or use the API? Yes. Schedule runs to monitor keywords (sort by date with a dateFrom like 1 day), or start runs and download datasets through the Scrape.ly API, CLI, or from AI agents through the Scrape.ly MCP server.

⚠️ Limits

  • Comment scores are not public on Hacker News, so points is empty for comments.
  • front_page in Content types only matches stories that are on the front page right now; use the top list for the live ranking.
  • Search results and comment counts come from the Hacker News search index, which can lag the live site by a few minutes.
  • Item URLs you paste directly are returned even if they do not match the filters.
  • Hacker News search lists 1,000 hits per relevance-sorted query. Bigger relevance searches go past that automatically, but their order after the first 1,000 rows is relevance within each time period, newest period first.

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.