What a response looks like
{"count": 5, "items": [{ "author": "Sikul", "comments": 642, "createdAt": "2020-02-04T17:30:40Z", "hnUrl": "https://news.ycombinator.com/item?id=22238335", "id": 22238335, "parentId": null, "points": 1582, "query": "rust", "storyId": 22238335, "tags": [ … ]}comments by author in this sample response| author | comments | createdAt | hnUrl | id | parentId |
|---|---|---|---|---|---|
| Sikul | 642 | 2020-02-04T17:30:40Z | https://news.ycombinator.com/item?id=22238335 | 22,238,335 | |
| darthdeus | 972 | 2024-04-26T17:33:56Z | https://news.ycombinator.com/item?id=40172033 | 40,172,033 | |
| selvan | 330 | 2021-01-02T05:50:39Z | https://news.ycombinator.com/item?id=25610741 | 25,610,741 | |
| jhund | 306 | 2015-05-15T17:02:09Z | https://news.ycombinator.com/item?id=9551937 | 9,551,937 | |
| formalsystem | 264 | 2019-04-05T15:18:45Z | https://news.ycombinator.com/item?id=19583384 | 19,583,384 |
Real rows returned by this API on 2026-11-09 for the request shown.
What it returns
Search every Hacker News story and comment, or pull the live front page and other lists, as clean JSON.
- Search all stories, comments, Ask HN, Show HN, jobs or polls by keyword, sorted by relevance or newest, with date range and minimum points filters.
- Live feeds: Top, New, Best, Ask, Show and Jobs, in their current rank order.
- User profiles: karma, account age, about text and submission count.
Each item has id, type, title, url, text, author, points, comments, createdAt, hnUrl and the query that produced it.
Common uses
Brand and competitor monitoring, launch tracking, trend research, lead generation from Show HN and hiring threads.
Request
POST https://api.pushbuild.com/hacker-news/run with a JSON body. Send your key in the X-API-Key header.
| Field | Type | Description |
|---|---|---|
searchQueries | list of strings | Keywords to search all of Hacker News for. |
itemType | string: story, comment, ask, show, job, poll | Which kind of item to search. Default: "story". |
sort | string: relevance, date | Order of search results. Default: "relevance". |
fromDate | string | Only items created on or after this date (YYYY-MM-DD). |
untilDate | string | Only items created on or before this date (YYYY-MM-DD). |
minPoints | integer | Only stories with at least this many points. |
feeds | list of strings | Current Hacker News lists: top, new, best, ask, show, job. |
users | list of strings | Hacker News usernames to look up (karma, created, about). |
maxItemsPerQuery | integer | Search returns up to 1,000 per query; feeds up to 500. Default: 100. |
maxItems | integer | Maximum items to return (1-500). Default: 100. |
Example
curl -X POST https://api.pushbuild.com/hacker-news/run \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"searchQueries": ["rust", "openai"], "maxItems": 20}'
Response
{"count": 20, "truncated": false, "seconds": 1.4, "items": [ { ... } ]}
Each call returns up to 500 items. Records that fail validation or are not found are flagged in the items and not charged.
Pricing
Pay only for results returned: $0.24 per 1,000 items. No charge for errors or empty searches.
| Items | Cost |
|---|---|
| 1,000 | $0.24 |
| 10,000 | $2.40 |
| 100,000 | $24.00 |
| 1,000,000 | $240.00 |
| 4,166 a month | Free ($1 monthly credit) |
Use it from Claude, ChatGPT or Cursor
This API is also an MCP server: https://api.pushbuild.com/mcp/hacker-news. Add it to any assistant that supports remote MCP servers, with your key in the X-API-Key header. Same prices. Setup for each app.
Tell us what you need built.
Questions about this API, higher volumes, or a data source you need that we don't cover yet.
hello@pushbuild.comNew APIs and data, twice a month
New data APIs, coverage changes and analysis from Pushbuild. No spam; one click to leave.
Want this data inside your own app or CRM? API integrations and data sync