VOOZH about

URL: https://apify.com/pink_fence/hacker-news-scraper

โ‡ฑ Hacker News Scraper ยท Apify


Pricing

from $0.00005 / actor start

Go to Apify Store

Extract Hacker News posts instantly โ€” title, URL, points, author, comments. Supports Top, New, Show HN, Ask HN and Jobs feeds. Pagination built in. Clean JSON output. No API key needed.

Pricing

from $0.00005 / actor start

Rating

0.0

(0)

Developer

๐Ÿ‘ Moritz Knopp

Moritz Knopp

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a month ago

Last modified

Categories

Share

This Actor scrapes posts from Hacker News using the Apify SDK and Crawlee. It supports five feeds โ€” Top, New, Show HN, Ask HN, and Jobs โ€” and extracts the rank, title, URL, points, author, comment count, and post age for each story. Pagination is handled automatically so you can collect up to 500 items in a single run.


Input parameters

ParameterTypeRequiredDefaultDescription
typestringYes"top"Feed to scrape. One of top, new, show, ask, jobs.
maxItemsintegerNo100Maximum number of posts to collect (1 โ€“ 500).

Output fields

Each item saved to the dataset has the following fields:

FieldTypeDescription
ranknumberPosition of the post on the page (e.g. 1, 2, 3).
titlestringHeadline text of the post.
urlstringLink the title points to. Internal HN links are converted to absolute URLs.
pointsnumberKarma points (upvotes). 0 for jobs posts.
authorstringHN username of the submitter.
commentCountnumberNumber of comments on the post. 0 if none or not applicable.
timePostedstringISO timestamp or relative age string (e.g. "2024-01-15 10:30:00").
typestringFeed type that was scraped, mirrors the type input field.

Example input

{
"type":"top",
"maxItems":30
}

Example output

[
{
"rank":1,
"title":"Introducing an open-source AI coding assistant",
"url":"https://example.com/blog/ai-coding-assistant",
"points":487,
"author":"jsmith",
"commentCount":214,
"timePosted":"2024-05-10 08:15:42",
"type":"top"
},
{
"rank":2,
"title":"Ask HN: What's your most productive terminal setup?",
"url":"https://news.ycombinator.com/item?id=39999999",
"points":312,
"author":"devnerd42",
"commentCount":178,
"timePosted":"2024-05-10 07:44:10",
"type":"top"
}
]

You might also like

Hacker News Scraper

nogards95/hacker-news-scraper

Scrape Hacker News stories, comments, jobs, Ask HN, and Show HN using Algolia Search API and HN Firebase API. Supports full-text search, date/points filters, and live feeds.

Hacker News API Scraper

logiover/hacker-news-search-scraper

Hacker News scraper & HN API alternative. Scrape stories, comments, Ask HN & Show HN without login; export to CSV/JSON. No key, no proxy.

Hacker News Scraper

dami_studio/hacker-news-scraper

Scrape Hacker News via the public Algolia HN Search API. Search stories, Show HN, Ask HN or comments by keyword, sort by relevance or date, filter by minimum points. Clean JSON output with title, URL, author, points, comments and HN item link. No key.

1

Hacker News Scraper

plantane/hackernews-scraper

Scrape stories, comments, and scores from Hacker News. Supports top, new, best, Ask HN, Show HN, and job feeds. Uses the official Firebase API for reliable, fast data extraction.

Hacker News Scraper

coder_zoro/hacker-news-scraper

Extract Hacker News stories, Ask HN, Show HN & jobs. Multi-category scraping. Structured JSON output. Fast & reliable. Export to CSV/Excel/JSON.

Hacker News Search Scraper Stories, Comments, Show HN, Ask HN

seemuapps/hn-search-scraper

Search Hacker News stories, comments, Show HN, Ask HN, polls, and jobs by keyword, author, date range, points, and comment count. Full text and engagement metrics. No login.

Hacker News MCP Server

automation-lab/hackernews-mcp-server

Query Hacker News data programmatically: search stories, get top posts, Ask HN, Show HN, jobs, comments, and user profiles via the free HN Algolia API.

๐Ÿ‘ User avatar

Stas Persiianenko

3

Hacker News Intelligence Scraper

fascinating_lentil/hacker-news-intelligence-scraper

Scrape Hacker News stories, comments, jobs, Ask HN, Show HN, and keyword search results. Export clean JSON or CSV with scores, authors, URLs, dates, filters, and nested discussions. No login or API key required.

๐Ÿ‘ User avatar

Md Jakaria Mirza

2