Search Hacker News
hackernews_search_storiesSearch Hacker News stories or comments, by relevance or date.
Full-text search over Hacker News. tags filters by kind (story, the default; comment, poll, show_hn, ask_hn, front_page, author_, story_; comma is AND, parentheses OR). sort=relevance (default) or date (newest first). numericFilters on created_at_i, points or num_comments (points>100). since/until filter by date server-side. Pages are 0-based; nbPages says how many there are.
Cost: 1 credit per call, refunded automatically if the call fails. Read-only, public data only. Results include cost_credits and credits_remaining.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"q": "<q>"
},
"name": "hackernews_search_stories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Search terms. | |
| page | No | Page number, 0 to 999 (0 is the first page). Defaults to 0. | |
| sort | No | relevance (default) or date. | |
| tags | No | Algolia tags. Defaults to story. | |
| since | No | Only rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. | |
| until | No | Only rows published on or before this date: YYYY-MM-DD (that whole UTC day) or an ISO 8601 timestamp. | |
| hitsPerPage | No | Hits per page, 1 to 1000. Defaults to 30. | |
| numericFilters | No | e.g. points>100,created_at_i>1700000000 |