Hacker News Search API
Search Hacker News by keyword - matching stories with title, link, author, points, and comment count as clean JSON.
Provider network
Providers ranked by traffic
Try it
Make your first request
{
"data": {
"results": [
{
"author": "Alex Rivera",
"comments": 12500,
"createdUtc": 12.5,
"id": "a1b2c3d4",
"points": 42,
"title": "Example title",
"url": "https://example.com/page"
}
]
},
"found": true
}interface HackernewsSearchResponse {
data: {
results: {
author: string;
comments: number;
createdUtc: number;
id: string;
points: number;
title: string;
url: string;
}[];
} | null;
found: boolean;
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-16 · uptime and latency measured over 30dcurl -X POST https://api.getanyapi.com/v1/run/hackernews.search \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"ai"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| query | string | "ai"Search keyword, e.g. "ai". |
| tags | string | Optional result filter, e.g. "story" or "comment". |
| Response | ||
| data | object | Result payload, or null when nothing was found. |
| data.results | object[] | Matching Hacker News stories. Populated whenever the provider has data for the entity. |
| data.results[].author | string | Submitting user's username. Populated whenever the provider has data for the entity. |
| data.results[].comments | integer | Number of comments on the story. |
| data.results[].createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity. |
| data.results[].id | string | Hacker News item id. Populated whenever the provider has data for the entity. |
| data.results[].points | integer | Story score (upvotes). |
| data.results[].title | string | Story title. Populated whenever the provider has data for the entity. |
| data.results[].url | string | Story link. |
| found | boolean | True when the search returned at least one story. |
| Price | ||
| Price per request | USD | $0.0015 |
| Price /1k req | USD | $1.50 |
FAQ
About the Hacker News Search API
The AnyAPI Hacker News Search API returns Hacker News search data as normalized JSON from one POST call to /v1/run/hackernews.search. Search Hacker News by keyword - matching stories with title, link, author, points, and comment count as clean JSON. AnyAPI routes each request across 2 sources and falls back automatically when one fails. It costs from $1.50 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of Hacker News search calls through AnyAPI succeeded, with a median response time of 0.5 seconds across 259 measured calls.