Contents

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, or jobs
  • max_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
  • score represents upvotes; combine with comment_count to gauge engagement
  • Some stories (Ask HN, Show HN) may have the HN discussion URL as their url
  • The id can be used to construct direct links: https://news.ycombinator.com/item?id={id}

Inputs

  • inputRequired
  • configOptional

Outputs

  • stories

Configuration

FieldTypeRequiredDescription
story_typeenum(top, new, best, ask, show, jobs)NoType of stories to fetch
max_itemsnumberNoMaximum items to fetch (1-500)
retrytagged_unionNoSends a request again after a failure that passes: a rate limit, a busy server, a dropped connection. Off sends once.
base_configrecordNoShared 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).