# Daily Hacker News mentions of a keyword

**Use case:** 

Find every Hacker News story that mentions a keyword (example: postgres) in the last 24 hours. Schedule it daily to monitor your product, competitors or a technology.

## Input

```json
{
  "mode": "search",
  "maxItems": 100,
  "searchQuery": "postgres",
  "searchType": "story",
  "searchSort": "date",
  "dateFrom": "24 hours",
  "minPoints": 0,
  "minComments": 0,
  "maxCommentsPerStory": 50,
  "maxCommentDepth": 0
}
```

## Output

```json
{
  "rank": {
    "label": "Rank"
  },
  "id": {
    "label": "Id"
  },
  "postKind": {
    "label": "Post kind"
  },
  "title": {
    "label": "Title"
  },
  "url": {
    "label": "Url"
  },
  "domain": {
    "label": "Domain"
  },
  "points": {
    "label": "Points"
  },
  "commentsCount": {
    "label": "Comments count"
  },
  "author": {
    "label": "Author"
  },
  "createdAt": {
    "label": "Created at"
  },
  "text": {
    "label": "Text"
  },
  "hnUrl": {
    "label": "Hn url"
  },
  "source": {
    "label": "Source"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Hacker News Scraper: Stories, Comments & Search Actor is ready to run with the inputs already set for "Daily Hacker News mentions of a keyword". [Sign up or log in](https://console.apify.com/create-task-from-example/zlCGVRUo1iEouUUp9) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Daily Hacker News mentions of a keyword" task

The Hacker News Scraper: Stories, Comments & Search Actor will start running based on the input automatically. You can also change all the input fields, like what to scrape, max stories (or search results), and more, to match your specific use case.

### 3. Receive the "Daily Hacker News mentions of a keyword" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as rank, id, post kind, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Daily Hacker News mentions of a keyword" task via API](https://apify.com/fjordlabs/hacker-news.md).

## FAQ

### What data does the Daily Hacker News mentions task return?

The Daily Hacker News mentions task returns rank, id, post kind, title, url, domain, points, comments count, author, created date, text, Hacker News URL, and source.

### How does the keyword search function in this task work?

It searches all of Hacker News for stories mentioning your keyword (postgres in this example), newest first, posted in the last 24 hours. Points and comment counts can lag the live site by a few minutes.

### Can I schedule the Daily Hacker News mentions task to run daily?

Yes. Schedule it daily in Apify Console. It costs $0.0002 per story plus Apify's $0.00005 run start, so a daily keyword check usually costs well under a cent. Error rows are free.

### What type of stories can I search for using this task?

This task searches stories. Set 'Search in' to comments, Ask HN or Show HN to watch those instead, and add a minimum points filter if you only want popular posts.

### What is the maximum number of items I can retrieve using this task?

Up to 100 stories per run in this example. Date-sorted search has no 1,000-result cap: the Actor walks back in time, so you can raise the limit for wider date ranges.

### Are API keys required to use this task?

No, the Daily Hacker News mentions task uses official APIs without needing an API key or login.

### What filters can I apply when using this task?

Filters available include searching by date, minimum points, and minimum comments to refine search results.

## About this Actor

This example demonstrates how to use [Hacker News Scraper: Stories, Comments & Search](https://apify.com/fjordlabs/hacker-news.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/fjordlabs/hacker-news.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/fjordlabs/hacker-news.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
