Reddit Posts & Comments Scraper
Scrape Reddit posts and comments from any subreddit or search query. Extract title, author, score, number of comments, subreddit, body text, flair, permalink and timestamps. Export to JSON, CSV or Excel.
{ "recordType": "post", "id": "1v5mels", "subreddit": "technology", "subredditId": "t5_2qh16", "subredditPrefixed": "r/technology", "subredditType": "public", "title": "US accuses American of allegedly wiping his ph…", "author": "MC68328", "authorId": "t2_2ozneeoe" }
每次运行都返回干净、带类型的记录,可直接用于你的 CRM、表格或数据库。
- 每个结果对应一条干净记录,已去重并规范化
- JSON、CSV 或 Excel 的稳定结构,也可通过 Apify API 读取
- 在云端按用量付费,无需安装或维护
一条真实的示例记录,正是你收到的结构。
| Record Type | Id | Subreddit | Subreddit Id |
|---|---|---|---|
| post | 1v5mels | technology | t5_2qh16 |
| comment | ozjzl4a | technology | t5_2qh16 |
| comment | ozk2x4h | technology | t5_2qh16 |
| comment | ozk6n5b | technology | t5_2qh16 |
| comment | ozk7ep4 | technology | t5_2qh16 |
{ "recordType": "post", "id": "1v5mels", "subreddit": "technology", "subredditId": "t5_2qh16", "subredditPrefixed": "r/technology", "subredditType": "public", "title": "US accuses American of allegedly wiping his ph…", "author": "MC68328", "authorId": "t2_2ozneeoe" }
常见问题
Can I scrape both posts and their comments?
Yes. Keep Include Comments enabled and each collected post is followed by one record per comment, with the postId field linking every comment back to its parent post. Every comment also carries its parentId and depth, so you can rebuild the full nested reply tree. You can cap how many comments to pull per post, choose how they are sorted, and limit them to a maximum reply depth.
Can I search across all of Reddit or just one subreddit?
Both. Set the mode to search and provide a search query to look across all of Reddit, or add a single subreddit to restrict the search to that community. The subreddit mode reads a community's hot, new, top or rising feed directly.
Can I filter which posts I collect?
Yes. You can require a minimum vote score, keep only text, link or media posts, exclude NSFW content, and limit results to a date window with Created After and Created Before. Filters run during collection, so you only pay for records that match.
How fresh is the data?
It is live. Every run reads Reddit's current public feeds at the moment it runs, so new posts appear as soon as Reddit lists them in the feed.
Does it capture vote scores and comment counts?
Yes. Every post record carries its net score, comment count, crosspost count and award count, plus classification and moderation flags such as pinned, locked, archived, edited, distinguished, spoiler and NSFW. Every comment carries its own score, award count, direct reply count, edit state and thread position. Fields that a given post genuinely does not have (a missing flair, no media) are returned empty rather than guessed. Reddit fuzzes the exact upvote and downvote breakdown on its public pages, so the net score is provided rather than a guessed upvote ratio.
Do I need a proxy to run this?
Yes, and it is already set up for you. The actor uses the Apify Residential proxy by default, with no configuration needed. Residential data transfer per run is small, around a hundredth of a gigabyte for a hundred records.