What the response contains
Fields worth checking
- Development & Data
- Hacker News API results
- public source
Load a fresh response from Hacker News API; no search term is required.
Fields worth checking
/v0/topstories.json returns a sequence of numeric identifiers in Hacker News display order. Documentation says it can contain up to 500 top stories and can include jobs. An ID does not provide title, link, author, score, or comments until you request its corresponding item.
A story can include id, type, by, time, title, url, score, descendants, and kids. type distinguishes story, job, comment, poll, and pollopt. time is Unix time; title and text can contain HTML; descendants is a story or poll’s total comment count, and kids lists its direct comments in display order.
The API makes public Hacker News data available in near real time. score is the community score and changes over time; it does not confirm the accuracy of a linked page. Open the original URL, read the discussion, and distinguish opinion, announcement, demonstration, and reporting before repeating a claim as fact.