Skip to main content

Hacker News

Read the top and newest Hacker News stories and single stories or comments. No account needed.

Get top stories​

Reads the IDs of the stories on the Hacker News front page, top first.

Outputs

NameTypeDetails
Story IDsList of IDUp to 500 story IDs in list order. Read a story with "Get story or comment".

Get newest stories​

Reads the IDs of the newest Hacker News stories, newest first.

Outputs

NameTypeDetails
Story IDsList of IDUp to 500 story IDs in list order. Read a story with "Get story or comment".

Get story or comment​

Reads one Hacker News story, comment, job or poll by its ID.

Inputs

NameTypeRequiredDetails
Item IDWhole numberYesThe number after id= in the Hacker News address. Minimum: 1.

Outputs

NameTypeDetails
FoundYes/NoWhether the item exists. When not, everything else is empty.
TypeTextstory, comment, job, poll or pollopt. May be empty.
TitleTextThe title. Empty for comments. May be empty.
LinkURLThe page the story links to. Empty for text posts. May be empty.
TextTextThe text of a comment or text post, as HTML. May be empty.
AuthorTextThe username of the author. May be empty.
PointsWhole numberThe points of a story. May be empty.
CommentsWhole numberHow many comments a story has. May be empty.
Posted atDate and timeWhen it was posted. May be empty.
Hacker News linkURLThe discussion page on Hacker News. May be empty.
Need more help?
Can't find what you're looking for? Our team is happy to help.