Hacker News search (stories + comments)
search_hackernewsSearch Hacker News stories or comments by keyword, ranked by relevance or newest first, optionally only the last N days. Returns title, linked URL, HN discussion URL, author, points, comment count and date. Use for tech news, launch reactions, developer sentiment and trend research. Price: $0.002 per call (USDC on Base via x402); the first 10 calls per day are free.
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": "search_hackernews"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Only items from the last N days (optional) | |
| sort | No | relevance (default) or date | |
| type | No | story (default), comment or all | |
| limit | No | Results 1–50 (default 10) | |
| query | Yes | Search terms, e.g. x402 |