# Hacker News Scraper - Low-cost💲🔥📰💬 (`delectable_incubator/my-actor-1`) Actor

📰 Easily scrape Hacker News stories, comments, Ask HN, Show HN, Jobs and Front Page posts. Extract titles, URLs, scores, authors, comments, publication dates, rankings, domains and more. Perfect for tech trend monitoring, startup research, AI datasets, market intelligence and automation.

- **URL**: https://apify.com/delectable\_incubator/my-actor-1.md
- **Developed by:** [Prime Scrape](https://apify.com/delectable_incubator) (community)
- **Categories:** News, Automation, Social media
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.00005 / actor start

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

<p align="center">
  <img src="https://i.ibb.co/jkNS73wX/readme.png" alt="Hacker News Scraper" width="100%">
</p>

***

## 📰💻 Hacker News Scraper | Bulk Section Scraper | Stories, Comments, Ask HN, Show HN & Jobs | Apify Actor

### 🚀 Extract Hacker News Data in Seconds (No Code)

The **Hacker News Scraper (Apify Actor)** is a powerful, scalable, and SEO-optimized scraping solution designed to extract public **Hacker News stories, comments, Ask HN posts, Show HN projects, jobs, and discussions** from multiple sections in bulk.

Scrape **Newest, Front Page, New Comments, Ask HN, Show HN, and Jobs** while collecting structured datasets including titles, URLs, scores, authors, comments, domains, publication dates, rankings, story IDs, and much more.

Perfect for **startup intelligence, tech trend monitoring, AI datasets, market research, developer analytics, content aggregation, and automation workflows.**

***

## 🔥 Why This Hacker News Scraper?

✔ Best Hacker News Scraper on Apify

✔ Supports Multiple Sections

✔ Bulk Section Scraping

✔ Stories & Comments

✔ Ask HN & Show HN

✔ Jobs Section

✔ Automatic Pagination

✔ Fast & Scalable Extraction

✔ JSON / CSV / Excel Ready

✔ No Coding Required

***

## 🎯 What This Scraper Does

This Apify Actor extracts public content directly from **Hacker News**.

Each selected section is processed independently and returns up to **max\_items\_per\_choice** items.

***

### 📌 Supported Sections

✅ Newest

✅ Front Page

✅ New Comments

✅ Ask HN

✅ Show HN

✅ Jobs

***

### 📌 Core Features

✅ Bulk Section Scraping

✅ Stories

✅ Comments

✅ Ask HN Posts

✅ Show HN Projects

✅ Job Listings

✅ Story Rankings

✅ Scores (Points)

✅ Authors

✅ Domains

✅ Publication Dates

✅ Comment Counts

✅ Story URLs

✅ HN Item URLs

✅ Structured Output

✅ High-Speed Cloud Scraping

***

## ⚡ Input Configuration (Simple & Powerful)

### 🔥 BULK SECTION MODE (SEO BOOST 🚀)

```
{
  "choices": [
    "newest",
    "show",
    "ask"
  ],
  "max_items_per_choice": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

Simply select one or multiple Hacker News sections.

Each section is processed independently and returns up to **max\_items\_per\_choice** results.

**Residential proxies are recommended for the best reliability.**

***

## 📊 Extracted Data

| Field | Description |
|--------|-------------|
| item\_id | Hacker News item ID |
| item\_type | Story, Comment, Job, etc. |
| section | Source section |
| rank | Story ranking |
| position\_index | Position within the page |
| title | Story title |
| url | Original URL |
| domain | Website domain |
| score | Points |
| author | Author username |
| published\_date | Publication date |
| age\_text | Relative publication time |
| comments\_count | Number of comments |
| comment\_text | Comment text |
| comment\_html | HTML version of comment |
| parent\_id | Parent item ID |
| story\_id | Story ID |
| story\_title | Parent story title |
| hn\_item\_url | Hacker News discussion URL |
| scraped\_at | Extraction timestamp |

***

## 💡 Use Cases

Perfect for:

📰 Tech News Monitoring

🚀 Startup Discovery

💻 Developer Trends

📈 Market Intelligence

🤖 AI Training Datasets

📊 Content Aggregation

🔍 Open Source Monitoring

📚 Research Projects

📉 Trend Analysis

⚙️ Automation Workflows

***

## 🚀 Key Features

⚡ Bulk Section Support

📰 Stories

💬 Comments

❓ Ask HN

🚀 Show HN

💼 Jobs

⭐ Scores

👤 Authors

🌐 Domains

📊 Structured Output

🔁 Reliable Cloud Execution

💾 Export-Ready Datasets

⚙️ Enterprise-Ready Apify Actor

***

## 📤 Export Formats

✔ JSON

✔ CSV

✔ Excel (XLSX)

✔ XML

✔ HTML

✔ RSS

***

## 📦 Example Output

```
{
  "item_id": "45896321",
  "item_type": "story",
  "section": "newest",
  "rank": 1,
  "title": "Open-source AI framework released",
  "url": "https://example.com/article",
  "domain": "example.com",
  "score": 287,
  "author": "johndoe",
  "published_date": "2026-08-07T15:42:00Z",
  "comments_count": 64,
  "hn_item_url": "https://news.ycombinator.com/item?id=45896321",
  "scraped_at": "2026-08-07T16:01:15Z"
}
```

***

## 🔥 Why This is the BEST Hacker News Scraper on Apify?

✔ Optimized for Apify Search Ranking

✔ Bulk Section Support

✔ Stories & Comments

✔ Ask HN, Show HN & Jobs

✔ Rich Story Metadata

✔ Scores & Rankings

✔ Structured Export-Ready Datasets

✔ Enterprise-Ready Scalability

***

## 💸 Pricing

This scraper runs on a **pay-per-result** pricing model.

You only pay for successfully extracted items.

**💳 Price: $0.19 / 1,000 results**

***

## ❓ FAQ

#### Can I scrape multiple Hacker News sections?

Yes.

Bulk section mode is fully supported.

***

#### Which sections are supported?

- Newest
- Front Page
- New Comments
- Ask HN
- Show HN
- Jobs

***

#### Does it support pagination?

Yes.

The scraper automatically collects items until the requested limit is reached.

***

#### Can I scrape thousands of items?

Yes.

Increase **max\_items\_per\_choice** and select as many sections as needed.

***

#### Are Residential proxies recommended?

Yes.

Residential proxies provide the best scraping reliability.

***

#### Is coding required?

No.

Everything runs directly on Apify.

***

#### Can I export the data?

Yes.

Supports JSON, CSV, Excel, XML, HTML and RSS.

***

## ⚠️ Disclaimer

This tool is an independent data extraction solution and is **not affiliated with Hacker News or Y Combinator**.

Users are responsible for complying with Hacker News' Terms of Service and all applicable laws.

***

## 🔗 Related Actors

We are building the complete **PrimeScrape Tech Intelligence Suite.**

More premium news, startup, developer, forum, and technology scrapers are coming soon.

🚀 Stay tuned.

***

## 🌍 PrimeScrape Ecosystem

Built for large-scale data extraction, automation, AI datasets, and business intelligence.

📰 Tech Intelligence

🚀 Startup Monitoring

💻 Developer Analytics

📊 Market Research

🤖 AI Training Datasets

⚙️ Automation Pipelines

🌐 Public Data Extraction

***

## 📬 Support

⭐⭐⭐⭐⭐

If this scraper saves you time, please leave a review.

For enterprise scraping solutions, custom Apify Actors, or large-scale Hacker News scraping projects, feel free to contact **PrimeScrape**.

# Actor input Schema

## `choices` (type: `array`):

Select one or more Hacker News sections to scrape. Each section is processed independently, using the limit set in 'Max Items per Choice'.

## `max_items_per_choice` (type: `integer`):

Maximum number of items to extract for EACH section selected above.

## `proxyConfiguration` (type: `object`):

Proxy settings used while scraping. Residential is recommended.

## Actor input object example

```json
{
  "choices": [
    "newest",
    "front"
  ],
  "max_items_per_choice": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "choices": [
        "newest",
        "front"
    ],
    "max_items_per_choice": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("delectable_incubator/my-actor-1").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "choices": [
        "newest",
        "front",
    ],
    "max_items_per_choice": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("delectable_incubator/my-actor-1").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "choices": [
    "newest",
    "front"
  ],
  "max_items_per_choice": 100
}' |
apify call delectable_incubator/my-actor-1 --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,delectable_incubator/my-actor-1"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/3LE4q55ti9wV1FzJE/builds/NQC2wd9OVtk8ScFMD/openapi.json
