hackernews

Fetch Hacker News stories, comments, and user profiles via curl.

76|18|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/vm0-ai/vm0-skills --skill hackernews
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hackernews
Source: https://github.com/vm0-ai/vm0-skills/tree/main/hackernews
Command: npx skills add https://github.com/vm0-ai/vm0-skills --skill hackernews

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a lightweight way to fetch Hacker News data via curl, including top stories, full item details, comments, and user profiles, enabling automated monitoring and data collection without a browser.

Core Features & Use Cases

  • Top/Best/New stories: Retrieve IDs or full details for current stories.
  • Story details & comments: Access titles, scores, URLs, and discussion threads.
  • User profiles: Look up user data and their submissions.
  • Use Case: Build a daily dashboard of trending topics from Hacker News and alert your team to notable discussions.

Quick Start

Use the hackernews skill to fetch the top 10 stories from the Hacker News API and display their titles and URLs.

Frequently Asked Questions about hackernews

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch top stories from Hacker News using curl?

Fetch top stories from Hacker News by querying the official API endpoint https://hacker-news.firebaseio.com/v0/topstories.json with curl. The API returns story IDs without requiring an API key. Retrieve full story details—title, URL, score, and comment count—by querying individual item endpoints with each ID.

Can I access comments and discussion threads via the Hacker News API?

Yes, the Hacker News API exposes discussion threads through the kids field in item responses, which lists comment IDs. Query each comment ID separately to traverse the full thread. This enables automated collection of stories, comments, and nested replies without browser access.

Do I need an API key to retrieve Hacker News data with curl?

No API key is required. The Hacker News API is publicly accessible at https://hacker-news.firebaseio.com/v0 and responds to standard curl requests. All endpoints—top stories, items, users, and comments—return standardized JSON with no authentication barrier.

How do I look up user profiles and their submissions on Hacker News?

Query the user endpoint with a username to retrieve profile data and submission history from the Hacker News API. Responses include user creation time, karma score, and an array of submitted item IDs, allowing you to track user activity and correlate contributions across stories and comments.

What fields are returned when fetching Hacker News items with curl?

Hacker News items return standardized fields: id, type, by (author), time (Unix timestamp), title, url, text, score, descendants (comment count), and kids (child comment IDs). These fields enable extraction of story metadata, comment threads, and user attribution across all item types.

Can I monitor trending topics and build alerts from Hacker News API data?

Yes, fetch new or top stories regularly via curl, extract scores and comment counts, and programmatically trigger alerts when thresholds are met. Automated scripts can continuously query the API to detect trending discussions and notify teams without manual browsing.