hn_search
Search Hacker News stories and comments by full-text query, sorted by relevance or date, with adjustable result count.
Instructions
Full-text search across HN stories and comments via Algolia.
Args: query: Search query string. sort: "relevance" (default) or "date" (newest first). limit: Number of hits to return (1-50). Default 20.
Returns:
Dict with hits (list of clean dicts: id, kind, title, url, hn_url,
author, points, comments_count, story_text, comment_text, created_at, tags)
and total_hits (total matches Algolia found, may exceed limit).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | relevance | |
| limit | No | ||
| query | Yes |