Hacker News search
hn_searchSearch Hacker News stories and comments by keyword, sorted by relevance or date, filtered by time window and minimum points — what developers are saying about anything. Algolia's official HN search. Returns title, url, points, comment count, author, date and the HN discussion link. Price: $0.001 per call (10 free/day; after that a payment-required result lists x402 options). Errors: returns isError with a message for invalid input or an upstream failure (not charged).
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": {
"query": "<query>"
},
"name": "hn_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Only items from the last N days. Range 1-3650. Default 365. | |
| sort | No | Order by relevance or newest first. One of "relevance", "date". Default "relevance". | relevance |
| type | No | Stories, comments, Show HN or Ask HN posts. One of "story", "comment", "show_hn", "ask_hn". Default "story". | story |
| limit | No | How many results to return. Range 1-50. Default 15. | |
| query | Yes | Keywords to search for. | |
| min_points | No | Only items with at least this many points. Default 0. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| total | No | ||
| results | No |