API Documentation

Amila Welihinda edited this page Jun 16, 2016 · 5 revisions

Note: All responses are cached for 10 minutes.

GET /news?page=1

Returns the 30 stories/posts from the front page.

Example request: http://node-hnapi.herokuapp.com/news

GET /item/:id

Returns the details of the story/post/item with (nested) comments.

Example request: http://node-hnapi.herokuapp.com/item/3338485

GET /user/:id

Returns details (account creation date, karma, etc.) of user.

Example request: http://node-hnapi.herokuapp.com/user/julien_c

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.