{"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},"version":"1.0","contract_hash":"76bfe5faea8c0d7d77458de1475b12d79e9dfe0cb82a8298691f15119d1fdf39","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},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T03:33:09.221Z","activated_at":"2026-12-06T03:33:09.221Z","active":true,"contract_hash":"76bfe5faea8c0d7d77458de1475b12d79e9dfe0cb82a8298691f15119d1fdf39","fields_count":13}]}