Scrapers.lat logo scrapers.lat
社交媒体

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.

46 每条记录的字段 JSON · CSV · Excel · API 按用量付费
reddit-scraper.json 200 OK
{
  "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 TypeIdSubredditSubreddit IdSubreddit PrefixedSubreddit TypeTitleAuthorAuthor IdPost TypeUrlPermalinkDomainScore
示例输出

一条真实的示例记录,正是你收到的结构。

Record TypeIdSubredditSubreddit Id
post1v5melstechnologyt5_2qh16
commentozjzl4atechnologyt5_2qh16
commentozk2x4htechnologyt5_2qh16
commentozk6n5btechnologyt5_2qh16
commentozk7ep4technologyt5_2qh16
GET /reddit-scraper
{
  "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.

你准备好,它就就绪。

现在就在 Apify 上运行这个爬虫,或让我们按你的确切需求定制一个。