con un clic
hn-search
// Search and monitor Hacker News stories, comments, and users via the free Algolia API. Use when the user asks about HN discussions, wants to find posts about a topic, or monitor HN for mentions. No API key required.
// Search and monitor Hacker News stories, comments, and users via the free Algolia API. Use when the user asks about HN discussions, wants to find posts about a topic, or monitor HN for mentions. No API key required.
Create and manage Privacy.com virtual cards for agent spending. Use when an agent needs to make a purchase, buy a domain, pay for a service, or needs a disposable card with a spending limit. Requires a Privacy.com account and API key.
Generate type scales, color palettes, spacing systems, WCAG contrast checks, and dark mode derivations with math. Use when setting up a design system, creating tokens, or building a Tailwind/CSS theme. Outputs CSS custom properties, Tailwind config, or JSON tokens.
Look up app details, ratings, reviews, and search the iOS App Store, Mac App Store, and Google Play. Use when the user asks about app ratings, wants to compare apps, or research a competitor's app store presence. No API key required.
Image prompt templates, model selection guidance, and anti-generic patterns for generating visual assets. Use when the user needs AI-generated images for landing pages, marketing, or products. Covers hero images, feature illustrations, OG cards, icons, and backgrounds.
Framer Motion (Motion) animation patterns for React — springs, staggers, layout animations, micro-interactions, scroll effects, and page transitions. Use when building or improving UI animations, adding polish, or making interfaces feel premium.
Search Product Hunt launches, products, and makers via the GraphQL V2 API. Use when the user asks about Product Hunt launches, trending products, or wants to research a product's reception. Requires a free developer token (~2 min setup).
| name | hn-search |
| description | Search and monitor Hacker News stories, comments, and users via the free Algolia API. Use when the user asks about HN discussions, wants to find posts about a topic, or monitor HN for mentions. No API key required. |
Search and monitor Hacker News stories, comments, and users via the Algolia HN Search API. No API key required.
Base URL: https://hn.algolia.com/api/v1
Two search endpoints:
/search — Relevance-sorted (best for finding specific topics)/search_by_date — Date-sorted (best for monitoring / recent activity)Rate Limits: 10,000 requests/hour (generous, no auth needed)
https://hn.algolia.com/api/v1/search?query=QUERY&tags=TAG&hitsPerPage=N&numericFilters=FILTERS
web_fetchUse web_fetch to call the API. Response is JSON.
| Parameter | Description | Example |
|---|---|---|
query | Search terms (URL-encoded) | query=openai+gpt |
tags | Filter by type (see below) | tags=story |
hitsPerPage | Results per page (max 1000) | hitsPerPage=20 |
page | Page number (0-indexed) | page=0 |
numericFilters | Numeric filters (see below) | numericFilters=points>100 |
Use tags to filter by content type:
| Tag | Description |
|---|---|
story | Stories only |
comment | Comments only |
show_hn | Show HN posts |
ask_hn | Ask HN posts |
front_page | Currently on front page |
author_USERNAME | Posts by a specific user |
story_ID | Comments on a specific story |
Combine tags with commas (AND) or parentheses with commas (OR):
tags=story,show_hn → Show HN stories (AND)tags=(story,comment) → Stories OR comments| Filter | Description |
|---|---|
points>N | Minimum points/upvotes |
num_comments>N | Minimum comments |
created_at_i>TIMESTAMP | After Unix timestamp |
created_at_i<TIMESTAMP | Before Unix timestamp |
Combine with commas: numericFilters=points>100,num_comments>50
To search within a time window, use Unix timestamps with created_at_i:
Calculate the current Unix timestamp first (e.g., via exec: date +%s), then subtract:
| Window | Subtract from now |
|---|---|
| Last 24 hours | - 86400 |
| Last 7 days | - 604800 |
| Last 30 days | - 2592000 |
Example: if now is 1705312200, last 7 days = numericFilters=created_at_i>1704707400
Each hit contains:
{
"objectID": "12345",
"title": "Story Title",
"url": "https://example.com/article",
"author": "username",
"points": 150,
"num_comments": 42,
"created_at": "2024-01-15T10:30:00Z",
"created_at_i": 1705312200,
"story_text": "Text for Ask HN / Show HN (HTML)",
"_tags": ["story", "author_username", "story_12345"]
}
For comments, hits also include:
{
"comment_text": "The comment body (HTML)",
"story_id": 12345,
"story_title": "Parent Story Title",
"story_url": "https://example.com",
"parent_id": 12344
}
The response wrapper includes:
{
"hits": [...],
"nbHits": 1000,
"page": 0,
"nbPages": 50,
"hitsPerPage": 20
}
https://news.ycombinator.com/item?id={objectID}https://news.ycombinator.com/item?id={objectID}https://news.ycombinator.com/user?id={author}https://hn.algolia.com/api/v1/search?query=YOUR_QUERY&tags=story&hitsPerPage=10https://hn.algolia.com/api/v1/search?query=YOUR_QUERY&tags=story&numericFilters=points>50,created_at_i>TIMESTAMP&hitsPerPage=10https://hn.algolia.com/api/v1/search?tags=comment,story_STORYID&hitsPerPage=20/search_by_date instead of /searchhttps://hn.algolia.com/api/v1/search_by_date?query=YOUR_QUERY&tags=(story,comment)&hitsPerPage=20https://hn.algolia.com/api/v1/search?tags=author_USERNAME,story&hitsPerPage=20tags=author_USERNAME,commentPresent results as a clean list:
### HN Results for "query" (N total)
1. **Story Title** (150 pts, 42 comments)
By username · Jan 15, 2024
🔗 https://example.com/article
💬 https://news.ycombinator.com/item?id=12345
2. ...
For comments:
### HN Comments on "Story Title"
1. **username** (12 pts) · Jan 15, 2024
> First ~200 chars of the comment text...
💬 https://news.ycombinator.com/item?id=12345
Fetch: https://hn.algolia.com/api/v1/search?query=rust+programming&tags=story&hitsPerPage=5&numericFilters=points>50
# Calculate timestamp for 30 days ago, then:
Fetch: https://hn.algolia.com/api/v1/search_by_date?query=ai+agents&tags=show_hn&numericFilters=created_at_i>TIMESTAMP&hitsPerPage=10
Fetch: https://hn.algolia.com/api/v1/search_by_date?tags=author_pg&hitsPerPage=10
Algolia HN Search API — Free, no authentication required. Indexes all public Hacker News content in near real-time.