Hacker News & Dev News API
Hacker News top/new/best/Ask/Show/jobs, full comment trees, search & users — plus DEV.to articles, Lobsters and a combined tech-news digest.
Get a free API key on RapidAPI Try it in the playgroundHacker News & Dev News API
What developers are reading and discussing right now, in one consistent JSON schema.
🟧 Hacker News
- Stories: top, new, best, Ask HN, Show HN, jobs — with points, comment counts and domains
- Item + comment tree: nested replies with configurable depth and size
- Full-text search over stories and comments, filter by author, points, comments and age, sort by relevance or date
- User profiles with karma and recent submissions
👩💻 More communities
- DEV.to articles: hot, latest or top of the week, by tag or author
- Lobsters: hottest, newest, active or by tag
📰 Tech digest
One call that merges today's top items from all three sources — ideal for newsletters and dashboards.
Use cases: tech newsletters · Slack / Discord / Telegram bots · trend and brand monitoring · research · personal dashboards · AI summarizers
Keywords: hacker news api, hn api, ycombinator, tech news api, developer news, dev.to api, lobsters, show hn, ask hn, startup news, programming news
Endpoints (7)
| Endpoint | What it returns |
|---|---|
GET/stories | Stories Ranked Hacker News stories: top (front page), new, best, ask, show or jobs. Each with title, URL, domain, author, points, comment count and time. |
GET/item | Story with comments A story (or comment) with its nested comment tree. Control the size with `depth` (reply levels) and `max_comments`. |
GET/search | Search Hacker News Full-text search across stories or comments with filters for author, minimum points, minimum comments and age. Sort by relevance or date. |
GET/user | User profile Hacker News user: karma, account creation date, about text, number of submissions and the 10 most recent stories. |
GET/devto | DEV.to articles Articles from DEV Community: hot, latest or top of the last N days, optionally by tag or author. |
GET/lobsters | Lobsters stories Stories from Lobsters: hottest, newest, active, or by tag. |
GET/digest | Tech news digest Today's top items from Hacker News, DEV.to and Lobsters merged into one list with a unified schema. |
Quick start
Subscribe on RapidAPI (free plan available), copy your key, and call GET /stories:
curl --request GET \
--url 'https://hacker-news-dev-news-api.p.rapidapi.com/stories?type=top&limit=5&page=1' \
--header 'x-rapidapi-host: hacker-news-dev-news-api.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'import requests
url = "https://hacker-news-dev-news-api.p.rapidapi.com/stories?type=top&limit=5&page=1"
headers = {
"x-rapidapi-host": "hacker-news-dev-news-api.p.rapidapi.com",
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY",
}
resp = requests.get(url, headers=headers)
print(resp.json())const res = await fetch("https://hacker-news-dev-news-api.p.rapidapi.com/stories?type=top&limit=5&page=1", {
method: "GET",
headers: {
"x-rapidapi-host": "hacker-news-dev-news-api.p.rapidapi.com",
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
});
console.log(await res.json());
Example response
{
"type": "top",
"page": 1,
"count": 5,
"total": 500,
"stories": [
{
"rank": 1,
"id": 50579568,
"title": "Hurried Announcement: Alessandro Masullo GRH",
"url": "https://math216.wordpress.com/2026/11/20/hurried-announcement-alessandro-masullo-grh/",
"domain": "math216.wordpress.com",
"text": null,
"author": "jasondavies",
"points": 826,
"comments": 386,
"time": "2026-11-20T18:33:14.000Z",
"type": "story",
"hn_url": "https://news.ycombinator.com/item?id=50579568"
},
{
"rank": 2,
"id": 50581260,
"title": "Inkling 2 Mini",
"url": "https://thinkingmachines.ai/news/inkling-2-mini/",
"domain": "thinkingmachines.ai",
"text": null,
"author": "jasondavies",
"points": 141,
"comments": 13,
"time": "2026-11-20T20:12:19.000Z",
"type": "story",
"hn_url": "https://news.ycombinator.com/item?id=50581260"
}
]
}
Start free. Every plan includes all endpoints; upgrade only when you need more requests. Runs on Cloudflare's global network for low latency worldwide.
Subscribe on RapidAPIRelated APIs
Crypto News API - 18 Sources, Sentiment & Trends
Real-time crypto news from 18 top publishers in one feed: coin tagging, bullish/bearish sentiment, search, per-coin news and trending coins.
News, MediaNews Search API
Real-time news search from thousands of publishers in 20 markets: keyword search, freshness & date sort, 11 categories, publisher feeds, images.