Hacker News Scraper: Stories, Comments, Search & Users avatar

Hacker News Scraper: Stories, Comments, Search & Users

Pricing

from $0.30 / 1,000 story scrapeds

Go to Apify Store
Hacker News Scraper: Stories, Comments, Search & Users

Hacker News Scraper: Stories, Comments, Search & Users

Scrape Hacker News via the official APIs: top, new, best, Ask HN, Show HN and jobs with rank, keyword search of stories and comments (dates, points, 1,000+ results), full comment threads, polls and user profiles with karma. No login, no proxy.

Pricing

from $0.30 / 1,000 story scrapeds

Rating

0.0

(0)

Developer

Renan Teles

Renan Teles

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 days ago

Last modified

Features

Limited permissions

Share

Get Hacker News (news.ycombinator.com) data as clean JSON, CSV or Excel: live rankings, keyword search of stories and comments, full comment threads, polls with their options and user profiles. It uses the official Hacker News APIs. No login, no API key, no proxy.

What you get

  • Live rankings with rank: Top (front page), New, Best, Ask HN, Show HN and Jobs, in Hacker News order.
  • Keyword search in stories, comments, polls, Show HN, Ask HN or the current front page, with date range, minimum points and minimum comments. Sorted by date it goes past the usual 1,000-result limit. Matching is exact: "rust" does not return posts that only say "just".
  • Posts by author: everything one or more users posted, newest first.
  • Full comment threads: every story can come with its comments, one row each, with depth and parentId, in reading order (each reply right after its parent).
  • Polls with options and votes.
  • User profiles: karma, account creation date, bio and number of submissions. You can also add the author's karma to every story and comment.
  • Clean data: dates in ISO 8601 UTC, body as HTML and plain text (links expanded to the full URL), and null (never a fake 0) when Hacker News does not say.

Example output (real, from a cloud run on 2026-11-16)

A Show HN story, from the show list:

{
"recordType": "story",
"id": "50452230",
"hnUrl": "https://news.ycombinator.com/item?id=50452230",
"author": "mkarliner",
"createdAt": "2026-11-11T11:39:15.000Z",
"text": "Hi, I'm Mike,\nI've made ThingStudio, a flow programing environment for microcontrollers. It allows drag and drop programming Node-RED style, but emits MicroPython which it uploads to the micro. The board does not need the editor to run after that. Runs fully local, Apache 2 licensed.\nThere's a functional version of the editor/IDE at linked to the home page, you'll need to install to be able to upload, because WebSerial is not universal.\nPlease give it a whirl. I'm happy to answer any questions.",
"textPlain": "Hi, I'm Mike,\nI've made ThingStudio, a flow programing environment for microcontrollers. It allows drag and drop programming Node-RED style, but emits MicroPython which it uploads to the micro. The board does not need the editor to run after that. Runs fully local, Apache 2 licensed.\nThere's a functional version of the editor/IDE at linked to the home page, you'll need to install to be able to upload, because WebSerial is not universal.\nPlease give it a whirl. I'm happy to answer any questions.",
"childIds": [
"50454829"
],
"rank": 2,
"source": "show",
"isDead": false,
"isDeleted": false,
"authorKarma": null,
"authorCreatedAt": null,
"scrapedAt": "2026-11-16T16:15:58.702Z",
"dataSource": "firebase",
"title": "Show HN: ThingStudio, Node-RED style programming for microcontrollers",
"url": "https://thingstudio.net/",
"domain": "thingstudio.net",
"points": 21,
"numComments": 2,
"postKind": "show_hn",
"pollOptions": null
}

A comment from a thread (includeComments + includeAuthorProfiles):

{
"recordType": "comment",
"id": "126818",
"hnUrl": "https://news.ycombinator.com/item?id=126818",
"author": "mhb",
"createdAt": "2008-03-01T20:43:20.000Z",
"rank": null,
"source": "thread",
"isDead": null,
"isDeleted": null,
"authorKarma": 42654,
"authorCreatedAt": "2007-03-12T21:26:48.000Z",
"scrapedAt": "2026-11-16T16:16:12.986Z",
"dataSource": "algolia",
"text": "Users would wonder whether they could/should vote for more than one poll choice because their philosophical mutual exclusivity is not reflected in the voting interface.",
"textPlain": "Users would wonder whether they could/should vote for more than one poll choice because their philosophical mutual exclusivity is not reflected in the voting interface.",
"storyId": "126809",
"storyTitle": "Poll: What would happen if News.YC had explicit support for polls?",
"parentId": "126809",
"depth": 0,
"childIds": [
"126821"
]
}

A poll, with its options and votes:

{
"recordType": "poll",
"id": "126809",
"hnUrl": "https://news.ycombinator.com/item?id=126809",
"author": "pg",
"createdAt": "2008-03-01T20:34:12.000Z",
"text": null,
"textPlain": null,
"childIds": [
"126822",
"126823",
"126917",
"126993",
"126824",
"126934",
"127411",
"126888",
"127681",
"126818",
"126816",
"126854",
"127095",
"126861",
"127313",
"127299",
"126859",
"126852",
"126882",
"126832",
"127072",
"127217",
"126889",
"126875",
"127535"
],
"rank": null,
"source": "item",
"isDead": false,
"isDeleted": false,
"authorKarma": 157316,
"authorCreatedAt": "2006-10-09T18:21:32.000Z",
"scrapedAt": "2026-11-16T16:16:12.986Z",
"dataSource": "firebase",
"title": "Poll: What would happen if News.YC had explicit support for polls?",
"url": null,
"domain": null,
"points": 47,
"numComments": 54,
"postKind": null,
"pollOptions": [
{
"id": "126810",
"text": "Users would create too many, and new arrivals would think News.YC was a poll site.",
"points": 73
},
{
"id": "126811",
"text": "Users would create fewer polls, because the main reason they do it now is to get karma from people voting up the poll choices.",
"points": 49
},
{
"id": "126812",
"text": "We'd have the same number of polls, but they wouldn't look as ugly.",
"points": 179
}
]
}

A user profile:

{
"recordType": "user",
"username": "pg",
"hnUrl": "https://news.ycombinator.com/user?id=pg",
"karma": 157316,
"createdAt": "2006-10-09T18:21:32.000Z",
"about": "Bug fixer.",
"aboutPlain": "Bug fixer.",
"submittedCount": 15565,
"source": "user",
"scrapedAt": "2026-11-16T16:16:12.986Z",
"dataSource": "firebase"
}

Fields

Every row has recordType: story, job, poll, comment or user. Rows of the same type always have the same columns. A field the source does not provide is null.

Stories, jobs and polls

FieldWhat it is
title, url, domainWhat was posted and where it links (url is null for text posts like Ask HN)
pointsUpvotes
numCommentsTotal comments in the discussion (null for jobs)
createdAtWhen it was posted, ISO 8601 UTC
rankPosition in the list (1 = top) or in the search results
authorUsername
postKindlink, text, ask_hn, show_hn, launch_hn, tell_hn (from the title)
text, textPlainBody as HTML and as plain text (Ask HN, jobs, polls)
pollOptionsPoll options with their votes
childIdsIds of the direct replies
isDead, isDeletedModeration flags (null when the source does not say)
authorKarma, authorCreatedAtWith "Add author karma"
id, hnUrl, source, scrapedAt, dataSourceIdentification and origin

Comments

FieldWhat it is
text, textPlainThe comment, as HTML and as plain text
author, createdAtWho and when
storyId, storyTitleThe story it belongs to
parentId, depthWhat it replies to; 0 = direct reply to the story
childIdsIds of the direct replies
rankPosition in search results
authorKarma, authorCreatedAtWith "Add author karma"
id, hnUrl, source, scrapedAt, dataSource, isDead, isDeletedIdentification and origin

Users

username, karma, createdAt (account creation), about, aboutPlain, submittedCount, hnUrl, source, scrapedAt, dataSource.

Use cases

  • Brand and competitor monitoring: every story and comment that mentions your product, with exact-word matching and date filters. Schedule it daily.
  • Tech trend research: what reaches the front page, Show HN launches and Ask HN questions, with points and comment counts.
  • Discussion analysis: full threads with depth, ready for sentiment analysis, summarization or a RAG pipeline.
  • Newsletters and digests: top stories above a points threshold, with clean links and domains.
  • Recruiting and community research: the job list, everything a user posted, author karma and account age.

Pricing

Pay per result. You only pay for rows delivered to your dataset. Failed sources, empty items and duplicates are never charged, and there is no start fee.

ResultPrice per resultPer 1,000
Story, job or poll$0.0003$0.30
Comment$0.00015$0.15
User profile$0.0003$0.30

Examples:

  • The top 30 stories of the front page: 30 × $0.0003 = $0.009.
  • One story with 500 comments: $0.0003 + 500 × $0.00015 = $0.0753.
  • A daily brand monitor that finds 20 stories and 100 comments: about $0.021 per day.

Author karma ("Add author karma") is included in the story or comment row at no extra charge.

Platform usage is small: a cloud run with 15 results took 2.7 seconds with 512 MB (measured on 2026-11-16).

If you set a maximum cost per run, the Actor stops when it is reached. The platform treats that limit as a stop signal, so the last charge can go over it by at most the price of one result.

Limitations (honest)

  • Website-only lists are not included. The past front page of a given day, Launch HN list, second-chance pool, best comments and "from domain" pages exist only on the website, and the website refuses automated requests from this Actor. Everything here comes from the two official public APIs.
  • Comments have no points. Hacker News does not publish comment scores anywhere. For the same reason, "Minimum points" and "Minimum comments" apply to stories, not to comments.
  • Relevance search is limited to 1,000 results by the search API. Sorted by date (the default) there is no such limit.
  • Search is exact-word. "rust" does not match "just" or "must" (good for monitoring), and misspellings of your keyword are not matched either.
  • Thread order follows the search API, not the order you see on the site. Who replied to whom (parentId, depth) is exact; only the order between siblings can differ.
  • The same story in two sources is two rows (for example in both Top and Best, or in a list and a search), because the rank differs. Each row is a result.
  • A comment requested alone by id has no storyId, storyTitle or depth. Use "Include comments" on the story to get them.
  • isDead and isDeleted are null for rows that come from the search API, which does not expose them.

FAQ

Do I need a Hacker News account, API key or proxy? No. Both APIs are public.

How fresh is the data? Live. Every run reads the current state of Hacker News.

How many results can I get? Up to 10,000 per source and up to 5,000 comments per story. Use "Max results per source" to control cost.

Why does a story appear twice? Because it was found in two sources, for example Top and Best. See source and rank.

Can I get the comments of a specific story? Yes: put its id or URL in "Specific items" and turn on "Include comments".

Is this affiliated with Hacker News or Y Combinator? No. This is an independent tool that reads publicly available data through the public APIs.