Hacker News

Hacker News API

Get live headlines, images, and other article metadata from Hacker News with our free JSON API.

Get API Key

Top headlines

Get headlines that are currently being featured by Hacker News at the top of their stream or webpage.


GET https://newsapi.org/v1/articles?source=hacker-news&sortBy=top&apiKey={API_KEY}

Live response

Latest headlines

Get headlines from Hacker News sorted by most recently published first.


GET https://newsapi.org/v1/articles?source=hacker-news&sortBy=latest&apiKey={API_KEY}

Live response