Back to homepage

📚 Documentation

GET /news

Returns the 30 stories/posts from the front page.
Example request: https://hackernews-api.deno.dev/news?page=2

GET /best

Returns the 30 best stories/posts from the front page.
Example request: https://hackernews-api.deno.dev/best

GET /ask

Returns 30 ask stories/posts from the front page.
Example request: https://hackernews-api.deno.dev/ask

GET /show

Returns 30 show stories/posts from the front page.
Example request: https://hackernews-api.deno.dev/show

GET /jobs

Returns 30 job stories/posts from the front page.
Example request: https://hackernews-api.deno.dev/jobs

GET /item/:id

Returns the details of the story/post with (nested) comments.
Example request: https://hackernews-api.deno.dev/item/3338485

GET /user/:id

Returns the details of the user.
Example request: https://hackernews-api.deno.dev/user/li