Reddit Comments Scraper avatar
Reddit Comments Scraper

Pricing

from $7.00 / 1,000 results

Go to Apify Store
Reddit Comments Scraper

Reddit Comments Scraper

Developed by

Sachin Kumar Yadav

Sachin Kumar Yadav

Maintained by Community

Scrape Reddit comments in two modes: a specific post by URL and a live subreddit comments stream. Get clean JSON, remove noisy fields, and paginate effortlessly using returned cursors. Ideal for research, monitoring, analytics, and ETL on Apify datasets.

0.0 (0)

Pricing

from $7.00 / 1,000 results

0

1

1

Last modified

4 days ago

Reddit Comment Search Scraper 🔎💬

Fetch Reddit comments in two powerful ways with clean, production‑ready JSON output:

  • Post by URL: Get the comments for a specific Reddit post.
  • Subreddit comments stream: Pull the latest comments from a subreddit with optional cursor‑based pagination.

Built for Apify. Fast. Reliable. Clean data.

Highlights ✨

  • Two modes: post_by_url and subreddit_comments.
  • Cursor pagination (optional): Only for the subreddit_comments mode.
  • Apify‑native: Output goes straight to your dataset.

Inputs ⚙️

KeyTypeEditorDefaultNotes
modestringselectpost_by_urlChoose: post_by_url or subreddit_comments.
urlstringtextfieldhttps://www.reddit.com/r/funny/comments/1nvwccn/Required when mode = post_by_url. The Reddit post URL.
subredditstringtextfieldfunnyRequired when mode = subreddit_comments. The subreddit name (without r/).
cursorstringtextfieldOptional and only used for subreddit_comments. Enter the current cursor (e.g., t3_1btflsp) to load the next page.

Quick start 🚀

A) Fetch comments for a post by URL

{
"mode": "post_by_url",
"url": "https://www.reddit.com/r/funny/comments/1nvwccn/"
}

B) Fetch latest subreddit comments (with optional pagination)

{
"mode": "subreddit_comments",
"subreddit": "funny"
}

Pagination (subreddit comments) ⏭️

  • Only for https://reddit3.p.rapidapi.com/v1/reddit/subreddit/comments.
  • Run once without cursor to get the first page.
  • In the dataset output, check payload.meta.cursor or the top‑level returned_cursor.
  • Copy that value (e.g., t3_1btflsp).
  • Paste it into the cursor input and run again to get the next page.

Example next‑page input:

{
"mode": "subreddit_comments",
"subreddit": "funny",
"cursor": "t3_1btflsp"
}

Output format 📦

  • Records are pushed to the default Apify dataset.
  • The actor also returns returned_cursor (if provided by the API) to make pagination easy.

Example (truncated):

{
"mode": "subreddit_comments",
"url": null,
"subreddit": "funny",
"cursor_used": null,
"returned_cursor": "t1_nkxfgby",
"fetched_at": "2025-01-01T10:00:00.000Z",
"payload": {
"meta": {
"version": "v1.0",
"status": 200,
"subreddit": "funny",
"cursor": "t1_nkxfgby"
},
"body": [
{ "id": "...", "body": "..." }
]
}
}

Best practices 💡

  • Pick the right mode: Use post_by_url for a specific thread, subreddit_comments for firehose‑style recent comments.
  • Paginate thoughtfully: For subreddit_comments, use the returned cursor to continue where you left off.
  • Resilience: Some fields may be null or omitted; handle them gracefully.
  • Automation: Schedule runs and export JSON/CSV for downstream pipelines.

FAQ ❓

  • Which modes are supported? post_by_url, subreddit_comments.
  • When can I use cursor? Only with subreddit_comments.
  • Where do I find the next cursor? In the dataset output: payload.meta.cursor and returned_cursor.
  • Do I need to log in? No.
  • Where is the data stored? In the default Apify dataset of the run.

Troubleshooting 🛠️

  • Empty or missing fields: The source can omit fields. Always check for null/undefined.
  • Pagination returns same data: Ensure you placed the latest cursor value into the input.
  • Rate limits: If you run many times quickly, consider spacing runs.

Keywords 🔍

Reddit comment search, Reddit comment scraper, subreddit comments, reddit comment search by user, Reddit thread comments, Reddit comment API alternative, Apify Reddit scraper, reddit comment search history, reddit comment search by subreddit, Reddit Search Tool, Search Reddit user comments, Reddit comment search by date, Reddit comment search app, reddit comment viewer, deleted reddit comment viewer,clean JSON, no login, dataset export, automation, ETL, data pipeline

Hashtags 📣

#Reddit #Comments #Scraper #Subreddit #Apify #Pagination #Cursor #DataExtraction #NoLogin #JSON