hn_search
Search Hacker News stories and comments by keyword, tag and date, with authors, points and links. Paid via x402 ($0.005 USDC on Base mainnet (also Polygon, Arbitrum and Solana)) on this tools/call request. Includes asOf and source. Invalid input is rejected without payment.
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 |
|---|---|---|---|
| to | No | Created on or before (YYYY-MM-DD). | |
| from | No | Created on or after (YYYY-MM-DD). | |
| page | No | 0-based page (default 0). | |
| sort | No | relevance (default) or date (newest first). | |
| tags | No | story, comment, ask_hn, show_hn or poll (comma-separated; combined with OR). | |
| limit | No | Hits to return (default 10). | |
| query | Yes | Keywords to search, e.g. sqlite. |