Hacker News Search API

Hacker News stories, comments, Show HN and Ask HN posts for any words, brand or site: title, links, points, comments, author, date and the post's own text, by relevance or newest first, with date, points and comment filters.

$0.50 per 1,000 records

You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usPosts, 13 fieldsv1.0

Data from hn.algolia.com/api

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Searchoptional
Words, a brand or product, or a site address such as github.com to find in titles, links and texts. Empty lists everything of content_type.
Example: postgres
Content typeoptional
What to return: story, comment, show_hn, ask_hn, front_page (stories on the front page now), job, poll or all.
Sortoptional
relevance (best match and most points first) or date (newest first).
Minimum pointsoptional
Only items with at least this many points.
Example: 10
Minimum commentsoptional
Only items with at least this many comments.
Example: 5
Sinceoptional
Only items posted on or after this day, as YYYY-MM-DD (UTC).
Example: 2026-11-01
Untiloptional
Only items posted on or before this day, as YYYY-MM-DD (UTC).
Example: 2026-11-30

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/hacker-news-search/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/hacker-news-search/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"search":"postgres"},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

searchtext
Words, a brand or product, or a site address such as github.com to find in titles, links and texts. Empty lists everything of content_type.
example: postgres
content_typetext
What to return: story, comment, show_hn, ask_hn, front_page (stories on the front page now), job, poll or all.
default: storyexample: show_hnone of: story, comment, show_hn, ask_hn, front_page, job, poll, all
sorttext
relevance (best match and most points first) or date (newest first).
default: relevanceone of: relevance, date
min_pointsnumber
Only items with at least this many points.
example: 10
min_commentsnumber
Only items with at least this many comments.
example: 5
sincetext
Only items posted on or after this day, as YYYY-MM-DD (UTC).
example: 2026-11-01
untiltext
Only items posted on or before this day, as YYYY-MM-DD (UTC).
example: 2026-11-30

What's in each record

13 fields: 11 here, 2 technical ones under Technical details.

Basics

  • Type

    story, comment, show_hn, ask_hn, job, poll or poll_option.

    Example show_hn

  • Title

    Title of the story; empty for comments.

    Example Show HN: PGlite – in-browser WASM Postgres with pgvector and live sync

  • Domain

    Site of that link, such as github.com.

    Example pglite.dev

  • Points

    Points (upvotes) of the story.

    Example 509

  • Comments count

    Number of comments on the story.

    Example 108

  • Author

    Hacker News user name of the poster.

    Example samwillis

  • Text

    The post's own text in plain text: the body of an Ask HN or Show HN post, or the comment.

    Example Hey, Sam and the team from ElectricSQL here. PGlite is a WASM Postgres build packaged into a TypeScript/JavaScript…

  • Story title

    Title of that story, so comments can be read in context.

    Example Show HN: PGlite – in-browser WASM Postgres with pgvector and live sync

Dates

  • Created

    When it was posted (UTC).

    Example Aug 12, 2024

Technical detailsField names and types for developers, and the 2 fields hidden above

Hidden by default

These 2 fields come with each record too. They are internal codes, notes about how the record was read or a copy of what was searched for, so the lists above leave them out.

  • ID idHacker News id of the item.
  • Story ID story_idId of the story the item belongs to; its own id for a story.

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
typetextType3 of 3
titletextTitle3 of 3
urllinkLink3 of 3
link_urllinkLink link3 of 3
domaintextDomain3 of 3
pointsnumberPoints3 of 3
comments_countnumberComments count3 of 3
authortextAuthor3 of 3
created_atdate and timeCreated3 of 3
texttextText2 of 3
story_idtextStory ID (hidden)3 of 3
story_titletextStory title3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordTitleTextTypeDomainPointsComments countAuthorStory titleCreatedLinkLink link
1Show HN: PGlite – in-browser WASM Postgres with pgvector and live syncHey, Sam and the team from ElectricSQL here. PGlite is a WASM Postgres build packaged into a TypeScript/JavaScript client library, that enables you to run Postgres in the browser, Node.js and Bun, with no need to install any other dependencies. It's 3mb Gzipped, now has support…show_hnpglite.dev509108samwillisShow HN: PGlite – in-browser WASM Postgres with pgvector and live syncAug 12, 2024news.ycombinator.com/item?id=41224689pglite.dev
2Show HN: PostgreSQL index advisorThis is a Postgres extension that can determine if a query should have an index. For example, for this table: create table book( id int primary key, title text not null ); You can run `index_advisor()` to see if there should be an index on a select statement: select * from…show_hngithub.com41797kiwicoppleShow HN: PostgreSQL index advisorApr 14, 2024news.ycombinator.com/item?id=40028111github.com/supabase/index_advisor
3Show HN: I open-sourced the in-memory PostgreSQL I built at work for E2E tests—show_hngithub.com37979n2d4Show HN: I open-sourced the in-memory PostgreSQL I built at work for E2E testsApr 7, 2024news.ycombinator.com/item?id=39960537github.com/stackframe-projects/pgmock

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • Relevance order returns at most 1,000 items per search, the search service's own ceiling. Date order is not held to it: up to 10,000 items per run, newest first.
  • Comments carry no points or comment counts, so min_points and min_comments leave comments out.
  • text is cut at 1,000 characters, and e-mail addresses and phone numbers in it are replaced; open url for the full post.
  • Comments in the monthly Who wants to be hired? and Seeking freelancer? threads are left out, because they are people's personal profiles.
  • Data comes from the public HN Search API by Algolia, which allows 10,000 requests an hour per address; new items appear within minutes and points and comment counts are as of the last update there.
  • front_page lists the stories on the front page right now; the other types search all of Hacker News back to 2007.

Version history

A run uses the live version unless the request names another one with version.