Hacker News Search (Stories, Comments, Dates)
Pricing
$2.00 / 1,000 results
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
6 days ago
Last modified
Features
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 (sinceDaysviacreated_at_inumeric filter) and score filter (minPointsviapointsnumeric filter). - Paginates the API by page and stops at
maxItems. - Normalizes each hit into:
objectId— HN item IDtype—storyorcommenttitle,url— story title and external link when presentauthor,points,numCommentscreatedAt— ISO 8601 UTC (YYYY-MM-DDTHH:MM:SSZ)storyText/commentText— plain text with HTML strippedhnUrl— canonicalhttps://news.ycombinator.com/item?id=…
- Deduplicates by
objectIdacross pages. - Makes at most 1 request per second to the upstream endpoint.
- Fails loudly with
LayoutChangedErrorwhen the API response shape drifts; it does not push empty or malformed items in that case.
Input
| Field | Type | Default | Description |
|---|---|---|---|
query | string | "" | Full-text search query. |
tags | string | "story" | Algolia HN tag filter: story, comment, ask_hn, show_hn. Can combine. |
sortBy | string | "relevance" | relevance → /search; date → /search_by_date. |
sinceDays | integer | unset | Only return items created within the last N days. |
minPoints | integer | unset | Only return items with at least N points. |
maxItems | integer | 100 | Hard 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.
maxItemsper 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.