{"api":{"id":"api_add9f952eb08f900a95afe2d","slug":"hacker-news-search","name":"Hacker News Search API","description":"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.","kind":"ready_made","visibility":"public","domain":"news.ycombinator.com","source_url":"https://hn.algolia.com/api","category":"developer","record_type":"post","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":13,"created_at":"2026-12-06T03:33:09.221Z","updated_at":"2026-12-06T03:33:09.221Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"id","type":"string","description":"Hacker News id of the item.","required":true,"coverage":1,"example":"41224689"},{"name":"type","type":"string","description":"story, comment, show_hn, ask_hn, job, poll or poll_option.","required":false,"coverage":1,"example":"show_hn"},{"name":"title","type":"string","description":"Title of the story; empty for comments.","required":false,"coverage":1,"example":"Show HN: PGlite – in-browser WASM Postgres with pgvector and live sync"},{"name":"url","type":"url","description":"The item's page on Hacker News.","required":false,"coverage":1,"example":"https://news.ycombinator.com/item?id=41224689"},{"name":"link_url","type":"url","description":"The link the story points to; empty for text posts and comments.","required":false,"coverage":1,"example":"https://pglite.dev/"},{"name":"domain","type":"string","description":"Site of that link, such as github.com.","required":false,"coverage":1,"example":"pglite.dev"},{"name":"points","type":"integer","description":"Points (upvotes) of the story.","required":false,"coverage":1,"example":509},{"name":"comments_count","type":"integer","description":"Number of comments on the story.","required":false,"coverage":1,"example":108},{"name":"author","type":"string","description":"Hacker News user name of the poster.","required":false,"coverage":1,"example":"samwillis"},{"name":"created_at","type":"datetime","description":"When it was posted (UTC).","required":false,"coverage":1,"example":"2024-08-12T14:20:03.000Z"},{"name":"text","type":"string","description":"The post's own text in plain text: the body of an Ask HN or Show HN post, or the comment.","required":false,"coverage":0.6,"example":"Hey, Sam and the team from ElectricSQL here.\nPGlite is a WASM Postgres build packaged into a TypeScript/JavaScript…"},{"name":"story_id","type":"string","description":"Id of the story the item belongs to; its own id for a story.","required":false,"coverage":1,"example":"41224689"},{"name":"story_title","type":"string","description":"Title of that story, so comments can be read in context.","required":false,"coverage":1,"example":"Show HN: PGlite – in-browser WASM Postgres with pgvector and live sync"}],"inputs":[{"name":"search","type":"string","description":"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"},{"name":"content_type","type":"string","description":"What to return: story, comment, show_hn, ask_hn, front_page (stories on the front page now), job, poll or all.","default":"story","example":"show_hn","enum":["story","comment","show_hn","ask_hn","front_page","job","poll","all"]},{"name":"sort","type":"string","description":"relevance (best match and most points first) or date (newest first).","default":"relevance","enum":["relevance","date"]},{"name":"min_points","type":"integer","description":"Only items with at least this many points.","example":10},{"name":"min_comments","type":"integer","description":"Only items with at least this many comments.","example":5},{"name":"since","type":"string","description":"Only items posted on or after this day, as YYYY-MM-DD (UTC).","example":"2026-11-01"},{"name":"until","type":"string","description":"Only items posted on or before this day, as YYYY-MM-DD (UTC).","example":"2026-11-30"}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"author":{"description":"Hacker News user name of the poster.","type":"string"},"comments_count":{"description":"Number of comments on the story.","type":"integer"},"created_at":{"description":"When it was posted (UTC).","format":"date-time","type":"string"},"domain":{"description":"Site of that link, such as github.com.","type":"string"},"id":{"description":"Hacker News id of the item.","type":"string"},"link_url":{"description":"The link the story points to; empty for text posts and comments.","format":"uri","type":"string"},"points":{"description":"Points (upvotes) of the story.","type":"integer"},"story_id":{"description":"Id of the story the item belongs to; its own id for a story.","type":"string"},"story_title":{"description":"Title of that story, so comments can be read in context.","type":"string"},"text":{"description":"The post's own text in plain text: the body of an Ask HN or Show HN post, or the comment.","type":"string"},"title":{"description":"Title of the story; empty for comments.","type":"string"},"type":{"description":"story, comment, show_hn, ask_hn, job, poll or poll_option.","type":"string"},"url":{"description":"The item's page on Hacker News.","format":"uri","type":"string"}},"required":["id"],"title":"Hacker News Search API","type":"object"},"samples":[{"id":"41224689","type":"show_hn","title":"Show HN: PGlite – in-browser WASM Postgres with pgvector and live sync","url":"https://news.ycombinator.com/item?id=41224689","link_url":"https://pglite.dev/","domain":"pglite.dev","points":509,"comments_count":108,"author":"samwillis","created_at":"2024-08-12T14:20:03.000Z","text":"Hey, Sam and the team from ElectricSQL here.\nPGlite 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…","story_id":"41224689","story_title":"Show HN: PGlite – in-browser WASM Postgres with pgvector and live sync"},{"id":"40028111","type":"show_hn","title":"Show HN: PostgreSQL index advisor","url":"https://news.ycombinator.com/item?id=40028111","link_url":"https://github.com/supabase/index_advisor","domain":"github.com","points":417,"comments_count":97,"author":"kiwicopple","created_at":"2024-04-14T02:14:36.000Z","text":"This is a Postgres extension that can determine if a query should have an index. For example, for this table:\ncreate table book(\nid int primary key,\ntitle text not null\n);\nYou can run `index_advisor()` to see if there should be an index on a select statement:\nselect *\nfrom…","story_id":"40028111","story_title":"Show HN: PostgreSQL index advisor"},{"id":"39960537","type":"show_hn","title":"Show HN: I open-sourced the in-memory PostgreSQL I built at work for E2E tests","url":"https://news.ycombinator.com/item?id=39960537","link_url":"https://github.com/stackframe-projects/pgmock","domain":"github.com","points":379,"comments_count":79,"author":"n2d4","created_at":"2024-04-07T13:13:43.000Z","text":null,"story_id":"39960537","story_title":"Show HN: I open-sourced the in-memory PostgreSQL I built at work for E2E tests"}],"validation":{"checked_at":"2026-12-06T03:33:09.177Z","field_coverage":{"author":1,"comments_count":1,"created_at":1,"domain":1,"id":1,"link_url":1,"points":1,"story_id":1,"story_title":1,"text":0.67,"title":1,"type":1,"url":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_add9f952eb08f900a95afe2d/run","openapi":"https://pullrow.dev/v1/apis/api_add9f952eb08f900a95afe2d/openapi.json","contract":"https://pullrow.dev/v1/apis/api_add9f952eb08f900a95afe2d/contract.json","page":"https://pullrow.dev/catalog/hacker-news-search"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["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."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"id","label":"ID","description":"Hacker News id of the item.","group":"Technical","shown":false,"written":false},{"name":"type","label":"Type","description":"story, comment, show_hn, ask_hn, job, poll or poll_option.","group":"Basics","shown":true,"written":false},{"name":"title","label":"Title","description":"Title of the story; empty for comments.","group":"Basics","shown":true,"written":false},{"name":"url","label":"Link","description":"The item's page on Hacker News.","group":"Links","shown":true,"written":false},{"name":"link_url","label":"Link link","description":"The link the story points to; empty for text posts and comments.","group":"Links","shown":true,"written":false},{"name":"domain","label":"Domain","description":"Site of that link, such as github.com.","group":"Basics","shown":true,"written":false},{"name":"points","label":"Points","description":"Points (upvotes) of the story.","group":"Basics","shown":true,"written":false},{"name":"comments_count","label":"Comments count","description":"Number of comments on the story.","group":"Basics","shown":true,"written":false},{"name":"author","label":"Author","description":"Hacker News user name of the poster.","group":"Basics","shown":true,"written":false},{"name":"created_at","label":"Created","description":"When it was posted (UTC).","group":"Dates","shown":true,"written":false},{"name":"text","label":"Text","description":"The post's own text in plain text: the body of an Ask HN or Show HN post, or the comment.","group":"Basics","shown":true,"written":false},{"name":"story_id","label":"Story ID","description":"Id of the story the item belongs to; its own id for a story.","group":"Technical","shown":false,"written":false},{"name":"story_title","label":"Story title","description":"Title of that story, so comments can be read in context.","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"search","label":"Search","help":"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","written":false},{"name":"content_type","label":"Content type","help":"What to return: story, comment, show_hn, ask_hn, front_page (stories on the front page now), job, poll or all.","example":"show_hn","written":false},{"name":"sort","label":"Sort","help":"relevance (best match and most points first) or date (newest first).","example":"","written":false},{"name":"min_points","label":"Minimum points","help":"Only items with at least this many points.","example":"10","written":false},{"name":"min_comments","label":"Minimum comments","help":"Only items with at least this many comments.","example":"5","written":false},{"name":"since","label":"Since","help":"Only items posted on or after this day, as YYYY-MM-DD (UTC).","example":"2026-11-01","written":false},{"name":"until","label":"Until","help":"Only items posted on or before this day, as YYYY-MM-DD (UTC).","example":"2026-11-30","written":false}]}},"incidents":[]}