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.
Related APIs
Bulk SEO Audit & PageSpeed / Core Web Vitals Checker API
Audit any list of URLs: Lighthouse performance, SEO, accessibility and best-practice scores, real-user Core Web Vitals (LCP, INP, CLS), speed opportunities, and on-page SEO checks (title, meta description, H1, canonical, alt text, sitemap, robots, schema)..
FEC Campaign Finance (Candidates, PACs, Contributions) API
US federal campaign finance from official FEC bulk data: candidate receipts, spending, cash on hand and debts; PAC, super PAC and party committee totals; PAC and party contributions and independent expenditures for or against candidates.
Federal Register API
Search every Federal Register document since 1994: final and proposed rules, notices, executive orders and presidential documents, by keyword, agency, type, date and CFR part.
Google News Scraper API
Fast Google News results for any keyword, topic or country: title, source, publish time, snippet and link.
Google Trends Scraper API
Google Trends data for any keywords: interest over time, interest by country/state, related queries and topics (top and rising), plus today's trending searches.
Telegram Channel Posts Scraper API
Scrape posts from any public Telegram channel: text, date, views, links, photos, videos and forwards.
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.com