Hacker News Search (Stories, Comments, Dates) avatar

Hacker News Search (Stories, Comments, Dates)

Pricing

$2.00 / 1,000 results

Go to Apify Store
Hacker News Search (Stories, Comments, Dates)

Hacker News Search (Stories, Comments, Dates)

Search Hacker News via the official Algolia HN API. Returns stories and comments with title, url, author, points, comment counts, ISO dates, and plain text. Pay-per-result.

Pricing

$2.00 / 1,000 results

Rating

0.0

(0)

Developer

Jay Gaikwad

Jay Gaikwad

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Categories

Features

Limited permissions

Share

Hacker News Search — stories & comments via Algolia HN API (public)

Search Hacker News through the public Algolia HN Search API (https://hn.algolia.com/api/v1/) and get structured JSON results — stories and comments with title, URL, author, points, comment counts, ISO dates, and plain-text bodies.

This is an unofficial Actor. It is not affiliated with, endorsed by, or supported by Y Combinator, Hacker News, or Algolia. The Algolia HN Search API is a public, community-run endpoint; it is not operated by Hacker News.

No API key is required. No login, no captchas, public data only.

What it does

  • Queries GET https://hn.algolia.com/api/v1/search (relevance) or /search_by_date (newest first).
  • Supports full-text query, tags (story, comment, ask_hn, show_hn), date filter (sinceDays via created_at_i numeric filter) and score filter (minPoints via points numeric filter).
  • Paginates the API by page and stops at maxItems.
  • Normalizes each hit into:
    • objectId — HN item ID
    • type — story or comment
    • title, url — story title and external link when present
    • author, points, numComments
    • createdAt — ISO 8601 UTC (YYYY-MM-DDTHH:MM:SSZ)
    • storyText / commentText — plain text with HTML stripped
    • hnUrl — canonical https://news.ycombinator.com/item?id=…
  • Deduplicates by objectId across pages.
  • Makes at most 1 request per second to the upstream endpoint.
  • Fails loudly with LayoutChangedError when the API response shape drifts; it does not push empty or malformed items in that case.

Input

FieldTypeDefaultDescription
querystring""Full-text search query.
tagsstring"story"Algolia HN tag filter: story, comment, ask_hn, show_hn. Can combine.
sortBystring"relevance"relevance → /search; date → /search_by_date.
sinceDaysintegerunsetOnly return items created within the last N days.
minPointsintegerunsetOnly return items with at least N points.
maxItemsinteger100Hard cap on returned results (max 1000).

Example output (illustrative)

Example record (illustrative; values vary):

{
"objectId": "40000001",
"type": "story",
"title": "Show HN: A small tool for reading HN threads",
"url": "https://example.com/show-hn",
"author": "hn_user",
"points": 42,
"numComments": 7,
"createdAt": "2026-11-10T18:12:00Z",
"storyText": "",
"commentText": null,
"hnUrl": "https://news.ycombinator.com/item?id=40000001"
}

Numbers, usernames and IDs above are fabricated for format illustration only; run the Actor for real data.

Pricing

$2 per 1,000 results. Every dataset item pushed to the run's dataset = one billed result, charged via Apify's default dataset-item push event. Empty runs and hard errors are not billed. Note that not-found or invalid-input rows that are pushed to the dataset count as billed results like any other row.

Limits

  • Politeness: at most 1 request per second to the upstream Algolia endpoint.
  • maxItems per run capped at 1,000.
  • Only items indexed by the Algolia HN Search API are returned; deletions and edits on HN may lag or not appear.
  • Upstream availability and rate limits are outside this Actor's control; on 429 or schema drift the Actor fails loudly rather than push bad rows.
  • Data source terms: the Algolia HN Search API is a public, community-run service; its terms may change. Check the upstream API terms before commercial redistribution. Uncertainty: coverage of the HN index, rate-limit thresholds, and terms of use are outside this Actor's control and may change without notice.

Disclaimer

Unofficial Actor. Not affiliated with, endorsed by, or supported by Y Combinator, Hacker News, or Algolia. Reads the public Algolia HN Search API only; no login, no captchas.

Public data only. Author names and comment bodies are user-generated content that the upstream API already publishes publicly; this Actor reproduces them verbatim as returned by the API and collects no other personal data.

Provided "as is", without warranty of any kind. No guarantees are made about completeness, accuracy, ordering, moderation status, or continued availability of the upstream service.