Skip to content

Hacker News Best API

Best (highest-voted recent) Hacker News stories, ranked, 30 per page, each with rank, id, title, url, site, points, author, comment_count, age, posted_at (UTC), type and hn_url. data.next holds the next page's params, or null on the last page.

GEThttps://api.maviapi.com/v1/sites/hackernews/best5 credits per call

Parameters

NameRequiredExampleDescription
pinteger in queryOptional1page number, 1 to 7 (30 stories per page).

Response fields

feedstringe.g."best"
pageintegere.g.1
countintegere.g.30
storiesobject[]12 fields
rankintegere.g.1
idintegere.g.50646108
titlestringe.g."Holy shit holy shit holy shit holy shit: The magnitude of what’s now happening"
urlstringe.g."https://scottaaronson.blog/?p=10379"
sitestringe.g."scottaaronson.blog"
pointsintegere.g.2018
authorstringe.g."Kotlopou"
comment_countintegere.g.1851
agestringe.g."1 day ago"
posted_atstringe.g."2026-11-25T19:11:27Z"
typestringe.g."story"
hn_urlstringe.g."https://news.ycombinator.com/item?id=50646108"
nextobject1 field
pstringe.g."2"
paginationobject3 fields
countintegere.g.30
has_morebooleane.g.false
next_cursornull
fetched_atstringe.g."2026-11-27T10:11:48.413Z"
ageintegere.g.0

Example request

Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.

cURL
curl 'https://api.maviapi.com/v1/sites/hackernews/best' \
  -H "Authorization: Bearer $MAVI_KEY"

Hacker News Best API questions

What you get, what it costs and how to call it.

What does the Hacker News Best API return?

Best (highest-voted recent) Hacker News stories, ranked, 30 per page, each with rank, id, title, url, site, points, author, comment_count, age, posted_at (UTC), type and hn_url. data.next holds the next page's params, or null on the last page. The response has feed, page, count, stories, next, pagination, fetched_at and age.

Which parameters does the Hacker News Best API take?

Every parameter of GET /best is optional. You can pass p.

How much does one Hacker News Best 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 Best API?

Send an HTTPS GET request to https://api.maviapi.com/v1/sites/hackernews/best 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 Best 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.