Hacker News Feed API
The first page (30 stories) of a Hacker News story list in HN order, each story with rank, id, title, url, site, points, author, comment_count, age, posted_at (UTC), type, hn_url and comments. With comments=true the first `top` stories carry their top-level comments in HN order, each with its direct replies; every other story has comments null.
https://api.maviapi.com/v1/sites/hackernews/feed5 credits per callParameters
| Name | Required | Example | Description |
|---|---|---|---|
typestring in query | Optional | front | which story list: front, newest, ask or show.One of front, newest, ask, show |
commentsboolean in query | Optional | false | attach top comments to the first `top` stories. |
topinteger in query | Optional | 3 | how many stories to enrich with comments (1-5).One of 1, 2, 3, 4, 5 |
comments_per_storyinteger in query | Optional | 5 | top-level comments, and direct replies under each, per enriched story (1, 3, 5 or 10).One of 1, 3, 5, 10 |
Response fields
feede.g."front"with_commentse.g.falseenrichede.g.0counte.g.30stories
ranke.g.1ide.g.50663595titlee.g."The group chat where your AI talks behind your back"urle.g."https://construct22.com/"sitee.g."construct22.com"pointse.g.238authore.g."utiiiD"comment_counte.g.104agee.g."3 hours ago"posted_ate.g."2026-11-27T06:44:34Z"typee.g."story"hn_urle.g."https://news.ycombinator.com/item?id=50663595"commentspagination
counte.g.30has_moree.g.falsenext_cursorfetched_ate.g."2026-11-27T10:11:48.594Z"agee.g.0Example request
Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.
curl 'https://api.maviapi.com/v1/sites/hackernews/feed' \
-H "Authorization: Bearer $MAVI_KEY"Hacker News Feed API questions
What you get, what it costs and how to call it.
What does the Hacker News Feed API return?
The first page (30 stories) of a Hacker News story list in HN order, each story with rank, id, title, url, site, points, author, comment_count, age, posted_at (UTC), type, hn_url and comments. With comments=true the first `top` stories carry their top-level comments in HN order, each with its direct replies; every other story has comments null. The response has feed, with_comments, enriched, count, stories, pagination, fetched_at and age.
Which parameters does the Hacker News Feed API take?
Every parameter of GET /feed is optional. You can pass type, comments, top and comments_per_story.
How much does one Hacker News Feed API call cost?
One successful call costs 5 credits. A failed call costs nothing. On the Hobby plan ($49 a month for 250,000 credits), 1,000 calls cost about $0.98. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.
How do I call the Hacker News Feed API?
Send an HTTPS GET request to https://api.maviapi.com/v1/sites/hackernews/feed with your API key in the Authorization header, as in the example request on this page. Create a key on your API keys page, or try the endpoint first in the console with the free test key.
Is the Hacker News Feed API official?
No. It is an independent, hosted API from maviapi for the public data on news.ycombinator.com, and it is not made, endorsed or supported by Hacker News. Its parameters and response fields are documented on this page.