Hacker News Scraper: stories and comments by keyword avatar

Hacker News Scraper: stories and comments by keyword

Pricing

$0.16 / 1,000 items

Go to Apify Store
Hacker News Scraper: stories and comments by keyword

Hacker News Scraper: stories and comments by keyword

Pull matching stories and comments from Algolia's public index, with discussion URL, reply total and timestamp. Schedule runs, call it by API, or hand it to an AI agent over MCP. Costs 0.16 USD per 1,000 results.

Pricing

$0.16 / 1,000 items

Rating

0.0

(0)

Developer

BEPO Labs

BEPO Labs

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 hours ago

Last modified

Features

Limited permissions

Share

Turn search terms into a table of Hacker News stories and comments, with title, link, author, points, date and thread id. Keep only recent or popular items; no login and no proxy needed.

  • Brand monitoring: see every story and comment that names your company or its rivals
  • Release tracking: measure how your Show HN post did, in points and comments
  • Market research: collect the best-voted discussions on a topic since a date
  • Content ideas: find the questions developers raise in Ask HN

Hacker News Search: Hacker News stories, comments, Ask HN, Show HN and jobs for any search, with points, comment count, date and text.

✨ Why use this Actor?

  • βœ… Official source: Algolia's HN Search, the search behind hn.algolia.com
  • βœ… Every item type: tags: story, comment, ask_hn, show_hn or job
  • βœ… Filters: since, minPoints and sort by relevance or date
  • βœ… Several searches per run: each query is reported in the run summary
  • βœ… Cheap: 0.16 USD per 1,000 items; failed queries are not charged
πŸ“° TitleπŸ”— Link and HN URLπŸ‘€ Author
πŸ”Ί PointsπŸ’¬ Comment countπŸ“… Created at
πŸ“ Text of comments and Ask HN🧡 Story and parent id🏷️ Type and tags
πŸ”Ž Query it came from

Hacker News Search works in a few clicks, no coding needed:

  1. Create a free Apify account (the free plan includes 5 USD of monthly credit).
  2. Open Hacker News Search and click Try for free.
  3. Enter one or more search terms, pick stories or comments and, optionally, a date and a minimum of points.
  4. Click Start and wait for the run to finish (most runs take seconds).
  5. Download your data as JSON, CSV, Excel, XML or HTML, or send it straight to Google Sheets, Make, Zapier or your AI agent.

How Hacker News Search works

⬇️ Input

Only queries is required; by default the Actor returns the 100 most relevant stories per query.

Item type

tags picks story (default), comment, ask_hn, show_hn or job.

Newest first

Set sort to date and since to a date for monitoring; schedule the run daily.

minPoints keeps items with at least that many points.

FieldTypeWhat it doesDefault
Search terms (queries)arrayOne search per term; results are deduped across terms.["web scraping"]
Type (tags)stringWhich kind of Hacker News item to search: "story", "comment", "ask_hn", "show_hn", "job", "poll" or "front_page" (stories currently on the front page)."story"
Sort (sort)stringrelevance (with points) or date (newest first)."relevance"
Created since (since)stringKeep items created on or after this date, e.g.
Minimum points (minPoints)integerKeep stories with at least this many points.0
Maximum items per term (maxItemsPerQuery)integerMaximum number of items returned for each search term (1 to 1,000), most relevant or newest first depending on the sort.100
Maximum retries (maxRetries)integerRetries per request with exponential backoff on network errors, 429 and 5xx.3

Hacker News Search input form

Input example

{
"queries": [
"web scraping",
"apify"
],
"tags": "story",
"minPoints": 50,
"maxItemsPerQuery": 20
}

⬆️ Output

Every story or comment becomes one row. The run summary (OUTPUT) lists every query with the items found and the error if one failed.

Hacker News Search output table

Output example

One row of the dataset (query "web scraping", a real run of 2026-10-16):

{
"id": "22180559",
"type": "story",
"title": "Congrats! Web scraping is legal! (US precedent)",
"url": "https://parsers.me/us-court-fully-legalized-website-scraping-and-technically-prohibited-it/",
"hnUrl": "https://news.ycombinator.com/item?id=22180559",
"author": "ehurynovich",
"points": 1057,
"numComments": 388,
"createdAt": "2020-01-29T14:06:37Z",
"text": null,
"storyId": 22180559,
"parentId": null,
"tags": [
"story"
],
"query": "web scraping"
}

View the results as a table or JSON in the Output tab and download them as JSON, CSV, Excel, XML, HTML or RSS, all fields or only those you pick.

πŸ’° How much does Hacker News Search cost?

Hacker News Search is priced per event: 0.16 USD per 1,000 results (0.00016 USD per result), with no monthly rental. Each saved row is billed; failed queries cost nothing.

You getYou pay
100 results0.02 USD
1,000 results0.16 USD
10,000 results1.6 USD
100,000 results16 USD

πŸ’‘ Apify's free plan gives you 5 USD of credit every month, enough for about 31,250 results at no cost. Set a spending limit per run and the Actor stops there.

βš–οΈ Hacker News Search vs. the alternatives

Hacker News SearchHTML scrapershn.algolia.com
Official sourceβœ…βŒβœ…
Several queries in one runβœ…varies❌
Points and date filtersβœ…rarelyβœ…
Export, schedule, API and MCPβœ…βœ…βŒ

πŸ”Œ Integrations, API and MCP

Connect Hacker News Search to your AI agent (MCP)

Give Claude, ChatGPT, Cursor or any MCP client direct access to Hacker News Search through the Apify MCP server. Add this URL to its settings:

https://mcp.apify.com/?actors=bepolabs/hacker-news

For Claude Desktop, add it under mcpServers in claude_desktop_config.json:

{
"mcpServers": {
"hacker-news": {
"command": "npx",
"args": [
"-y",
"@apify/actors-mcp-server",
"--actors",
"bepolabs/hacker-news"
],
"env": {
"APIFY_TOKEN": "<your Apify API token>"
}
}
}
}

Then ask: "Find Hacker News stories about our product from the last 30 days with more than 20 points and sum up the comments."

Run it from your code

Python (pip install apify-client):

from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("bepolabs/hacker-news").call(run_input={"queries":["web scraping","apify"],"tags":"story","minPoints":50,"maxItemsPerQuery":20})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

JavaScript (npm install apify-client):

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('bepolabs/hacker-news').call({"queries":["web scraping","apify"],"tags":"story","minPoints":50,"maxItemsPerQuery":20});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

No-code integrations

Send results to Google Sheets, Slack, Airtable, HubSpot, Make, Zapier, n8n and more from the Integrations tab, start runs on a schedule, or trigger your own endpoint with a webhook when a run finishes. The Apify API gives you full control over runs and datasets.

❓ FAQ

How far back does it go?

To the start of Hacker News; use since to limit the window.

Can I get comments?

Yes, set tags to comment; each row has the comment text, its story and parent.

How many items per query?

Up to maxItemsPerQuery (default 100).

The Actor reads the open search index that Y Combinator and Algolia offer for exactly this kind of search. Usernames are public; respect authors' rights if you republish their text.

What if something is missing or does not work?

Open an issue on the Issues tab; we read each one and reply. Feature requests are welcome too.

πŸ’¬ Your feedback

Tell us what Hacker News Search should add on the Issues tab or leave a review; your notes decide what we work on next.

ActorWhat it does
πŸ¦‹ Bluesky PostsBluesky posts for any search or handle with text, date, author, likes, reposts, replies, links and hashtags. No login.
πŸ“° RSS Feed ReaderAny RSS, Atom or JSON feed, or just a website URL, to one clean list of articles, with full text on request.
πŸ’Ό ATS JobsEvery open job from company career boards on Greenhouse, Lever, Ashby, Workable, SmartRecruiters and Recruitee in one deduped feed.
🌍 Remote JobsRemote jobs from Remote OK, Himalayas, Jobicy and Arbeitnow in one deduped feed, with salary, posted date and apply link.
πŸ›οΈ SAM.gov Contract OpportunitiesUS federal contract opportunities by keyword, NAICS, set-aside or agency, with deadlines, contacts and attachments.
πŸ›οΈ UK TendersUK public contracts from Contracts Finder and Find a Tender by keyword, CPV, value, region and deadline, with daily alerts.
πŸ›οΈ US Federal Grants FinderGrants.gov opportunities by keyword, agency or CFDA number, with award amounts, deadlines, eligibility and contacts.
🧩 Chrome Web Store ScraperUsers, rating, version, last update, developer, category and permissions of any Chrome extension.