# Hacker News stories about a keyword, last 90 days

**Use case:** 

Searches the Hacker News index for stories mentioning "ai agents" in the last 90 days that reached 50 points, newest first, and returns one row each: title, author, points, comment count, posted time, the linked domain and URL, the item’s own Hacker News link and which keyword matched. Swap in your product or company name, or add comment to tags. $0.20 per 1,000 items.

## Input

```json
{
  "mode": "search",
  "keywords": [
    "ai agents"
  ],
  "tags": [
    "story"
  ],
  "tagsMode": "all",
  "sort": "date",
  "feeds": [
    "front"
  ],
  "maxItemsPerFeed": 30,
  "itemIds": [],
  "itemUrls": [],
  "usernames": [],
  "includeSubmissions": false,
  "hiringThread": "who-is-hiring",
  "months": [],
  "monthsBack": 1,
  "lookbackHours": 24,
  "firstRunBehavior": "emit-all",
  "dateFrom": "90d",
  "minPoints": 50,
  "maxItems": 100,
  "authors": [],
  "excludeKeywords": [],
  "hitsPerPage": 100,
  "maxCommentsPerStory": 50,
  "maxCommentDepth": 10,
  "commentsMinLength": 0,
  "maxSubmissionsPerUser": 20,
  "submissionTypes": [
    "story",
    "comment"
  ],
  "threadIds": [],
  "maxJobsPerThread": 300,
  "remoteOnly": false,
  "filterKeywords": [],
  "minParseConfidence": 0.3,
  "includeUnparsed": true,
  "enrichPoster": true,
  "includeReplies": false,
  "includeText": false,
  "includeSummary": true,
  "stateStoreName": "hacker-news-api-state",
  "maxConcurrency": 4,
  "maxRunSecs": 240,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "title": {
    "label": "Title",
    "format": "string"
  },
  "author": {
    "label": "Author",
    "format": "string"
  },
  "points": {
    "label": "Points",
    "format": "integer"
  },
  "numComments": {
    "label": "Comments",
    "format": "integer"
  },
  "createdAt": {
    "label": "Created at",
    "format": "string"
  },
  "domain": {
    "label": "Domain",
    "format": "string"
  },
  "url": {
    "label": "URL",
    "format": "string"
  },
  "rank": {
    "label": "Rank",
    "format": "integer"
  },
  "feed": {
    "label": "Feed",
    "format": "string"
  },
  "hnUrl": {
    "label": "Hacker News URL",
    "format": "string"
  }
}
```

## About this Actor

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


## 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.
This Task's input is already configured above — use it as-is rather than inventing a new one.

- **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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/insight.solutions/hacker-news-api.md

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).
