{"api":{"id":"api_5638c2695a96ab3df4fceb04","slug":"hacker-news-comment-threads","name":"Hacker News Comment Threads","description":"Every comment on the Hacker News stories you give, one row each in thread order: depth, parent, position among replies, author, time, plain text and reply count. Whole discussions drop straight into a sheet or an AI summary; many stories per call.","kind":"ready_made","visibility":"public","domain":"news.ycombinator.com","source_url":"https://hn.algolia.com/api","category":"social","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":11,"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":"story_id","type":"string","description":"Hacker News id of the story the comment belongs to.","required":true,"coverage":1,"example":"8863"},{"name":"story_title","type":"string","description":"Title of that story.","required":false,"coverage":1,"example":"My YC app: Dropbox - Throw away your USB drive"},{"name":"comment_id","type":"string","description":"Hacker News id of the comment.","required":true,"coverage":1,"example":"8865"},{"name":"parent_id","type":"string","description":"Id of the comment it replies to, or the story id for a top-level comment.","required":false,"coverage":1,"example":"8863"},{"name":"depth","type":"integer","description":"Reply level: 1 for a top-level comment, 2 for a reply to one, and so on.","required":false,"coverage":1,"example":1},{"name":"position","type":"integer","description":"Place among the replies to the same parent, 1 for the oldest.","required":false,"coverage":1,"example":1},{"name":"author","type":"string","description":"Hacker News user name of the commenter.","required":false,"coverage":1,"example":"dhouston"},{"name":"created_at","type":"datetime","description":"When the comment was posted (UTC).","required":false,"coverage":1,"example":"2007-04-04T19:22:55.000Z"},{"name":"text","type":"string","description":"The comment in plain text, one paragraph per line.","required":false,"coverage":1,"example":"oh, and a mac port is coming :)"},{"name":"replies_count","type":"integer","description":"Number of direct replies to the comment.","required":false,"coverage":1,"example":1},{"name":"url","type":"url","description":"The comment's own page on Hacker News.","required":false,"coverage":1,"example":"https://news.ycombinator.com/item?id=8865"}],"inputs":[{"name":"stories","type":"array","description":"Hacker News story links or ids, such as [\"https://news.ycombinator.com/item?id=8863\"] or [\"8863\"]. A comment link reads the replies under it.","example":["https://news.ycombinator.com/item?id=8863"],"required":true},{"name":"max_depth","type":"integer","description":"Deepest reply level to keep: 1 keeps only top-level comments, 2 adds their replies and so on. Empty keeps every level.","example":10},{"name":"max_results","type":"integer","description":"Most comments per story, in thread order, from 1 to 10,000.","default":1000,"example":500}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"author":{"description":"Hacker News user name of the commenter.","type":"string"},"comment_id":{"description":"Hacker News id of the comment.","type":"string"},"created_at":{"description":"When the comment was posted (UTC).","format":"date-time","type":"string"},"depth":{"description":"Reply level: 1 for a top-level comment, 2 for a reply to one, and so on.","type":"integer"},"parent_id":{"description":"Id of the comment it replies to, or the story id for a top-level comment.","type":"string"},"position":{"description":"Place among the replies to the same parent, 1 for the oldest.","type":"integer"},"replies_count":{"description":"Number of direct replies to the comment.","type":"integer"},"story_id":{"description":"Hacker News id of the story the comment belongs to.","type":"string"},"story_title":{"description":"Title of that story.","type":"string"},"text":{"description":"The comment in plain text, one paragraph per line.","type":"string"},"url":{"description":"The comment's own page on Hacker News.","format":"uri","type":"string"}},"required":["story_id","comment_id"],"title":"Hacker News Comment Threads","type":"object"},"samples":[{"story_id":"8863","story_title":"My YC app: Dropbox - Throw away your USB drive","comment_id":"8865","parent_id":"8863","depth":1,"position":1,"author":"dhouston","created_at":"2007-04-04T19:22:55.000Z","text":"oh, and a mac port is coming :)","replies_count":1,"url":"https://news.ycombinator.com/item?id=8865"},{"story_id":"8863","story_title":"My YC app: Dropbox - Throw away your USB drive","comment_id":"9007","parent_id":"8865","depth":2,"position":1,"author":"vlad","created_at":"2007-04-05T01:48:11.000Z","text":"Drew, this is awesome! All of the features you mentioned are exactly what people need.","replies_count":0,"url":"https://news.ycombinator.com/item?id=9007"},{"story_id":"8863","story_title":"My YC app: Dropbox - Throw away your USB drive","comment_id":"8869","parent_id":"8863","depth":1,"position":2,"author":"zaidf","created_at":"2007-04-04T19:36:20.000Z","text":"This has great potential!\nOnly suggestion I would have is go slower on the demo. I know you lost me very early into it switching between windows.\nIf you are looking for a wider audience than those who already know the context of dropbox, make a video where you lay out the case…","replies_count":1,"url":"https://news.ycombinator.com/item?id=8869"}],"validation":{"checked_at":"2026-12-06T03:33:09.177Z","field_coverage":{"author":1,"comment_id":1,"created_at":1,"depth":1,"parent_id":1,"position":1,"replies_count":1,"story_id":1,"story_title":1,"text":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_5638c2695a96ab3df4fceb04/run","openapi":"https://pullrow.dev/v1/apis/api_5638c2695a96ab3df4fceb04/openapi.json","contract":"https://pullrow.dev/v1/apis/api_5638c2695a96ab3df4fceb04/contract.json","page":"https://pullrow.dev/catalog/hacker-news-comment-threads"},"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":["Comments come in thread order (a comment, then its replies) with replies oldest first, not in the ranked order the Hacker News page shows; depth and position rebuild the tree.","text is cut at 2,000 characters (about 1 comment in 100 is longer), and e-mail addresses and phone numbers in it are replaced; open url for the full comment.","The number of comments can be slightly lower than the count Hacker News shows, for example when comments were deleted.","Comments in the monthly Who wants to be hired? and Freelancer? Seeking freelancer? threads are left out, because they are people's own profiles.","Up to 200 stories per run and 10,000 comments per story. A comment link returns the replies under that comment.","Data comes from the public HN Search API by Algolia, which allows 10,000 requests an hour per address; new comments appear there within minutes. Link back to news.ycombinator.com when you publish comments."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"story_id","label":"Story ID","description":"Hacker News id of the story the comment belongs to.","group":"Technical","shown":false,"written":false},{"name":"story_title","label":"Story title","description":"Title of that story.","group":"Basics","shown":true,"written":false},{"name":"comment_id","label":"Comment ID","description":"Hacker News id of the comment.","group":"Technical","shown":false,"written":false},{"name":"parent_id","label":"Parent ID","description":"Id of the comment it replies to, or the story id for a top-level comment.","group":"Technical","shown":false,"written":false},{"name":"depth","label":"Depth","description":"Reply level: 1 for a top-level comment, 2 for a reply to one, and so on.","group":"Basics","shown":true,"written":false},{"name":"position","label":"Position","description":"Place among the replies to the same parent, 1 for the oldest.","group":"Basics","shown":true,"written":false},{"name":"author","label":"Author","description":"Hacker News user name of the commenter.","group":"Basics","shown":true,"written":false},{"name":"created_at","label":"Created","description":"When the comment was posted (UTC).","group":"Dates","shown":true,"written":false},{"name":"text","label":"Text","description":"The comment in plain text, one paragraph per line.","group":"Basics","shown":true,"written":false},{"name":"replies_count","label":"Replies count","description":"Number of direct replies to the comment.","group":"Basics","shown":true,"written":false},{"name":"url","label":"Link","description":"The comment's own page on Hacker News.","group":"Links","shown":true,"written":false}],"inputs":[{"name":"stories","label":"Stories","help":"Hacker News story links or ids, such as [\"https://news.ycombinator.com/item?id=8863\"] or [\"8863\"]. A comment link reads the replies under it.","example":"https://news.ycombinator.com/item?id=8863","written":false},{"name":"max_depth","label":"Maximum depth","help":"Deepest reply level to keep: 1 keeps only top-level comments, 2 adds their replies and so on. Empty keeps every level.","example":"10","written":false},{"name":"max_results","label":"Maximum results","help":"Most comments per story, in thread order, from 1 to 10,000.","example":"500","written":false}]}},"incidents":[]}