Hacker News Search Scraper avatar

Hacker News Search Scraper

Pricing

from $0.03 / 1,000 hn result saveds

Go to Apify Store
Hacker News Search Scraper

Hacker News Search Scraper

Search Hacker News stories, comments, Ask HN, Show HN, polls, and author activity using public HN search data.

Pricing

from $0.03 / 1,000 hn result saveds

Rating

0.0

(0)

Developer

Hanna Nosova

Hanna Nosova

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Share

Search and export public Hacker News stories, comments, Ask HN, Show HN, polls, and author activity.

Use this Actor to collect Hacker News search results for product research, founder and developer signals, technical trend monitoring, market analysis, content research, and AI datasets. Results can be downloaded as CSV, JSON, Excel, XML, RSS, or used through the Apify Dataset API.

At a glance

  • HN search export: Search Hacker News by keyword, tag/type, author, date range, and sort mode.
  • Stories and comments: Export public stories, comments, Ask HN, Show HN, polls, and related search result types.
  • Research fields: Collect titles, text, URLs, authors, points, comment counts, timestamps, tags, and HN item links when available.
  • Trend monitoring: Track mentions of products, competitors, technologies, companies, and topics over time.
  • API export: Send HN rows to spreadsheets, BI tools, research workflows, alerting systems, or AI agents.

Ready-to-run examples

Use these saved Store examples as starting points. Open any example to prefill the Actor input, then adjust URLs, keywords, limits, or filters for your own run.

What can it do?

Hacker News Search Scraper uses public HN search data and saves one dataset row per matching item.

  • Search stories or comments: Use keywords and result tags to narrow the output.
  • Filter by author: Track public HN activity for a username.
  • Filter by date range: Limit results to a specific research window.
  • Sort results: Choose relevance or date ordering.
  • Export clean rows: Use Apify downloads, API calls, schedules, webhooks, and integrations.

Common workflows

  • Product research: Track public discussion around a product, API, startup, or category.
  • Developer relations: Find where developers mention SDKs, libraries, tools, and integrations.
  • Market intelligence: Monitor technical trends, competitor launches, and pain points.
  • Content research: Build source lists for newsletters, essays, reports, or research briefs.
  • Founder and investor signals: Watch product feedback, hiring trends, launch comments, and emerging markets.
  • AI datasets: Export HN stories and comments for classification, summarization, or alerting workflows.

What data can you extract?

The Actor returns one dataset row per public Hacker News search result.

FieldDescription
objectIDHacker News or Algolia item identifier
titleStory, Ask HN, Show HN, or poll title
commentTextPublic comment text when the result is a comment
urlExternal story URL when available
hnUrlHacker News item URL
authorHN username
pointsStory points when available
numCommentsComment count when available
createdAtItem creation timestamp
tagsHN search tags or result type labels
storyTitleParent story title for comment results
storyUrlParent story URL for comment results
querySearch query used for the row
scrapedAtTimestamp when the row was saved

Pricing

This Actor uses Apify pay-per-event pricing. The prices below come from the current Actor pricing configuration. Apify public plans map to Store discount tiers, so the table shows both the user-facing plan context and the pricing tier name. The final price shown in Apify depends on the user account plan and any custom agreement.

EventWhat is chargedPrice
startOne-time fee per run$0.005
resultPer Hacker News story, comment, poll, or job saved to the dataset$0.000028

Apify may also charge platform usage for compute, storage, proxies, or data transfer outside this Actor pricing. Check the Actor run and the Apify Pricing tab for the exact cost shown to your account.

Input configuration

SettingJSON keyUse it forExample
Search queryqueryKeyword, product, company, technology, or phrase to search.ai agents
HN result types / tagstagsLimit to stories, comments, Ask HN, Show HN, polls, or other HN tags.["story"]
Include commentsincludeCommentsInclude comment search results when supported by the selected tags.true
Author usernameauthorFilter by public HN username.pg
Date fromdateFromStart date for result filtering.2026-01-01
Date todateToEnd date for result filtering.2026-07-01
Sort bysortBySort by relevance or date.date
Maximum HN itemsmaxItemsCap saved rows and spend.50

Example input

{
"query": "ai agents",
"tags": ["story"],
"includeComments": true,
"sortBy": "date",
"maxItems": 50
}

Example output

{
"objectID": "12345678",
"title": "Show HN: Example developer tool",
"url": "https://example.com",
"hnUrl": "https://news.ycombinator.com/item?id=12345678",
"author": "example_user",
"points": 124,
"numComments": 38,
"createdAt": "2026-06-20T12:00:00.000Z",
"tags": ["story", "show_hn"],
"query": "ai agents",
"scrapedAt": "2026-07-03T12:00:00.000Z"
}

How to run it

  1. Open the Actor on Apify.
  2. Enter a query, author, tags, or a combination of filters.
  3. Choose sort mode and optional date range.
  4. Set maxItems.
  5. Start the run and export the dataset.

Search tips

  • Start with exact names: Product names, package names, and company names often produce cleaner results.
  • Use tags for intent: Search ask_hn for questions, show_hn for launches, and comments for discussion.
  • Sort by date for monitoring: Use date sorting and schedules for recurring alerts.
  • Add an author only when needed: Author filters are best for public user activity tracking.
  • Control spend: Start with maxItems: 25 before broad searches.

Limits and caveats

  • The Actor extracts public Hacker News search data only.
  • It does not require or use a Hacker News account.
  • Some fields are empty depending on result type; comments do not have story points, and stories may not have comment text.
  • Search result ordering and availability follow public HN search behavior.

API usage

curl -X POST 'https://api.apify.com/v2/acts/fetch_cat~hacker-news-search-scraper/runs?token=YOUR_APIFY_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"query":"ai agents","tags":["story"],"maxItems":50}'

MCP and AI agents

This Actor can be used through the official Apify MCP server at https://mcp.apify.com.

For a focused single-Actor tool setup, use:

https://mcp.apify.com?tools=fetch_cat/hacker-news-search-scraper

Use the same JSON keys shown in the input configuration table, such as query, tags, author, sortBy, and maxItems.

FAQ

Can I search Hacker News comments?

Yes. Use comment-related tags or enable comment results where appropriate.

Can I export results to CSV or Excel?

Yes. Apify datasets can be downloaded as CSV, JSON, Excel, XML, RSS, HTML, or accessed through the API.

Does this require my Hacker News account?

No. It uses public Hacker News search data.

Can I schedule monitoring?

Yes. Use Apify schedules with a fixed query and date-oriented sort.

Changelog

0.1

  • Initial public release with query, tag, comment, author, date, sort, and maximum-result controls for public Hacker News search data.

Support

If a run fails, returns no data, or a field looks wrong, open an issue from the Actor page.

Please include the Apify run ID or run URL, input JSON, one example public URL, query, or input item, what you expected, and what the dataset returned. Small reproducible inputs make parsing or site-layout issues much faster to fix.

Privacy and data handling

This Actor runs with Apify limited permissions and only processes data needed for the documented run. It uses content lookup inputs and public posts, profiles, videos, comments, or channel metadata needed for the requested output to produce the output dataset and sends requests to public Hacker News Search pages/endpoints; results are stored in Apify run storage for your account. FetchCat does not use your inputs or outputs for advertising, does not use them for model training, and does not retain them outside the Apify run except for transient support debugging when you explicitly share run details. You are responsible for using the Actor lawfully, respecting the target site's terms, and avoiding unnecessary personal or sensitive data in inputs.