Use the CLI
Search stories and comments
Section titled “Search stories and comments”Search uses the Algolia Hacker News index. Results default to newest first.
hn-get search "postgres" --since 30d --limit 20hn-get search "llm" --type story --points 100 --comments 20hn-get comments "sqlite" --author pg --limit 20Use --sort points when popularity matters more than recency.
Browse Hacker News lists
Section titled “Browse Hacker News lists”Official lists use the Firebase API. Searchable sections use Algolia. A few lists such as active and bestcomments come from their public HN pages because no API exists for them.
hn-get top --limit 30hn-get newest --limit 30hn-get frontpage --limit 30hn-get ask --sort points --since 7dhn-get show --sort points --since 30dhn-get bestcomments --limit 20Read an item and its comments
Section titled “Read an item and its comments”hn-get item 40956979hn-get item 40956979 --comments --depth 2 --comments-limit 20hn-get item-comments 40956979 "sqlite" --limit 20Comment trees are bounded by depth and count. hn-get will not turn one command into an accidental crawl.
Inspect users and hiring threads
Section titled “Inspect users and hiring threads”hn-get user pghn-get submitted pg --limit 20hn-get threads pg --limit 20hn-get replies pg --limit 20hn-get whoishiring jobs --limit 20hn-get user returns a compact profile and submission count. Add --submitted-limit 20 when you need recent submitted item IDs.
Run hn-get help <command> for every option supported by a command.