HN Algolia Reader
Extract top posts from Hacker News using the Algolia-powered search interface.
URL Pattern
https://hn.algolia.com/?dateRange={range}&page=0&prefix=false&query=&sort=byPopularity&type={type}
Parameters
| Parameter | Values | Description |
|---|---|---|
dateRange | last24h, pastWeek, pastMonth, pastYear | Time filter |
type | story, show_hn, launch_hn, ask_hn | Post type filter |
sort | byPopularity, byDate | Sort order |
Workflow
- •
Get browser context
codetabs_context_mcp(createIfEmpty=true) tabs_create_mcp() if needed
- •
Navigate to HN Algolia with desired filters
codenavigate(url="https://hn.algolia.com/?dateRange=last24h&page=0&prefix=false&query=&sort=byPopularity&type=show_hn") wait(duration=2)
- •
Capture results via screenshot - the screenshot shows:
- •Post titles with external URLs in parentheses
- •Points count, author, time ago, comments count
- •Post descriptions/text for Show HN posts
- •
Extract data from screenshot:
- •Title and URL
- •Points (popularity metric)
- •Number of comments (engagement metric)
- •HN discussion URL format:
https://news.ycombinator.com/item?id={id}
Important Notes
Launch HN is Rare
Launch HN posts are infrequent. If last24h returns 0 results:
navigate(url="...&dateRange=pastWeek&...&type=launch_hn")
Stories Include All Types
When filtering by type=story, results include Show HN posts. Filter duplicates when combining with Show HN results.
Data Extraction Tips
- •Points indicate popularity (higher = more interest)
- •Comments indicate engagement/controversy
- •Time ago helps assess freshness
- •External URLs are in parentheses after title
- •HN post ID can be derived from the discussion link
Example Queries
| Goal | URL Parameters |
|---|---|
| Top Show HN today | dateRange=last24h&type=show_hn&sort=byPopularity |
| Top stories this week | dateRange=pastWeek&type=story&sort=byPopularity |
| Recent Ask HN | dateRange=last24h&type=ask_hn&sort=byDate |
| Launch HN (expand range) | dateRange=pastWeek&type=launch_hn&sort=byPopularity |
Exploration
For the main topics that deserve a deep dive, you should navigate to the website (clicking on the post) understand what it is about and compile the information. Feel free to add a tmp/MEMORY.md file to compose what will go or not to the final email