Hacker News API

Monitor HN for keywords, trends, and top stories you missed

Pull stories, comments, and user profiles from the Hacker News API. Build a weekly digest of top stories, keyword alerts, and community sentiment.

Completely free. No API key required. Firebase-based.

Hacker Newsdocs →

How it works with Loony

Describe it.
Deploy it.
Query it.

Managed database.

Your Hacker News data lives in its own Postgres instance. Zero config. Data accumulates over time.

Scheduled syncs.

Cron jobs run on Loony infra. Every minute on free. Your data stays fresh without you thinking about it.

REST + MCP endpoints.

Query from your agent, your dashboard, or connect BI tools directly. Full OpenAPI spec included.

TerminalSchema
$ "Pull HN top stories and Show HN posts daily. Store title, score, comments, and URL. Build a weekly digest and keyword tracker for topics I follow."

 Schema validated
 Database provisioned
 Scripts deployed
 Schedules registered

Done.

# Your data is now at:
REST  /data/v1/hacker-news/query
MCP   /mcp/v1/hacker-news/mcp
SQL   psql $DATABASE_URL

What you get

HN's front page is ephemeral — top stories disappear in hours. Loony stores every top story, so you can query 'What were the most upvoted posts about Postgres this year?' without scrolling through Algolia.

mv_hn_weekly
  week          date        -- ISO week start
  top_stories   integer     -- total front page
  avg_score     integer     -- average points
  show_hn_count integer     -- Show HN posts
  keyword_hits  integer     -- posts matching my keywords
  top_post      text        -- highest score title

Even better together

Pair HN with NewsAPI for a tech + mainstream media view. Add Mastodon for the open-source community perspective.

Stop gluing. Start shipping.

Describe your data. Deploy. Query. Done.

API Library →