Hacker News Ingest
hacker_news_ingest · Nodes · Data Sources
Fetches Hacker News items for workflow ingestion.
Fetches stories from Hacker News via the official Firebase API. Retrieves top stories with metadata including scores and comment counts.
Config:
story_type- Type of stories to fetch:top,new,best,ask,show, orjobsmax_items- Maximum stories to fetch (1-500, default: 100)retry- Retries the story list and each story up to 3 attempts by default; set Retry to Off to send once. Every request is a read (GET), sent again freely; a story that still fails is left out. See Retries
Input: None required
Output: Array of stories with id, title, url, score, author, comment_count, posted_at
Example:
[Cron Trigger] → [Hacker News Ingest]
→ {
"output": [
{
"id": 39342345,
"title": "Show HN: My New Project",
"url": "https://example.com/project",
"score": 234,
"author": "johndoe",
"comment_count": 45,
"posted_at": "2024-01-15T08:30:00Z"
}
]
}
Tips:
- Results are cached for 30 seconds (
invalidate_after) - Use
story_type: "ask"to find discussion threads without external URLs scorerepresents upvotes; combine withcomment_countto gauge engagement- Some stories (Ask HN, Show HN) may have the HN discussion URL as their
url - The
idcan be used to construct direct links:https://news.ycombinator.com/item?id={id}
Inputs
inputRequiredconfigOptional
Outputs
stories
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
story_type | enum(top, new, best, ask, show, jobs) | No | Type of stories to fetch |
max_items | number | No | Maximum items to fetch (1-500) |
retry | tagged_union | No | Sends a request again after a failure that passes: a rate limit, a busy server, a dropped connection. Off sends once. |
base_config | record | No | Shared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow). |