Hn Search
hn_searchSearch Hacker News stories and comments (Algolia HN index): by relevance or newest first, with date range, story/comment/Ask HN/Show HN filter, author and minimum points. Returns title, URL, points, comment count, author, time, comment text and HN links. Price: $0.01 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/hn-search
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/before YYYY-MM-DD | |
| from | No | Created on/after YYYY-MM-DD | |
| page | No | Page number (0-49) | |
| sort | No | relevance (default) or date (newest first) | |
| type | No | all (default), story, comment, ask_hn, show_hn or poll | |
| exact | No | Disable typo tolerance (default true when sort=date, false otherwise) | |
| limit | No | Results per page (1-50, default 20) | |
| query | Yes | Search text | |
| author | No | HN username | |
| minPoints | No | Minimum points |