Hacker News API

Hacker News Search API

Search Hacker News by keyword - matching stories with title, link, author, points, and comment count as clean JSON.

POST/v1/run/hackernews.search
Uptime
100.00%
30d · 259 calls
Requests
259
30d · weekly, last 12 wks
Response
0.5s
median · 30d

Provider network

Providers ranked by traffic

Try it

Make your first request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "data": {
    "results": [
      {
        "author": "Alex Rivera",
        "comments": 12500,
        "createdUtc": 12.5,
        "id": "a1b2c3d4",
        "points": 42,
        "title": "Example title",
        "url": "https://example.com/page"
      }
    ]
  },
  "found": true
}
Response interface
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 30d
POST /v1/run/hackernews.search
curl -X POST https://api.getanyapi.com/v1/run/hackernews.search \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"ai"}'
FieldTypeExample value
Request body
querystring"ai"Search keyword, e.g. "ai".
tagsstringOptional result filter, e.g. "story" or "comment".
Response
dataobjectResult payload, or null when nothing was found.
data.resultsobject[]Matching Hacker News stories. Populated whenever the provider has data for the entity.
data.results[].authorstringSubmitting user's username. Populated whenever the provider has data for the entity.
data.results[].commentsintegerNumber of comments on the story.
data.results[].createdUtcnumberUTC 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[].idstringHacker News item id. Populated whenever the provider has data for the entity.
data.results[].pointsintegerStory score (upvotes).
data.results[].titlestringStory title. Populated whenever the provider has data for the entity.
data.results[].urlstringStory link.
foundbooleanTrue when the search returned at least one story.
Price
Price per requestUSD$0.0015
Price /1k reqUSD$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.

It costs from $1.50 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

Search Hacker News by keyword - matching stories with title, link, author, points, and comment count as clean JSON. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

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. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.