Reddit Comments Scraper: Body, Author, Score & Depth avatar

Reddit Comments Scraper: Body, Author, Score & Depth

Pricing

from $6.15 / 1,000 results

Go to Apify Store
Reddit Comments Scraper: Body, Author, Score & Depth

Reddit Comments Scraper: Body, Author, Score & Depth

Scrape every comment from any Reddit post or subreddit, including nested replies. Extract body text, author, score, awards, controversiality, depth and parentId to rebuild the thread. Export to JSON, CSV or Excel. No API key.

Pricing

from $6.15 / 1,000 results

Rating

0.0

(0)

Developer

Scrapers Lat

Scrapers Lat

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

2

Monthly active users

18 days ago

Last modified

Share

Reddit Comments Scraper: Body, Author, Score & Depth

Reddit Comments Scraper: Body, Author, Score & Depth

Here is one real result, with every field the actor returns:

{
"id": "ndjx0ts",
"body": "At least 1 and sadly that isn't even a joke.",
"author": "Microphone_Assassin",
"authorFullname": "t2_627cu",
"authorFlairText": null,
"score": 194,
"controversiality": 0,
"totalAwards": 0,
"postId": "1ndskqc",
"postTitle": "Why do you think President Trump ordered all US Flags at half staff for the death of a Political Commentator, but not for the death of actual Legislators?",
"postUrl": "https://www.reddit.com/comments/1ndskqc/",
"subreddit": "AskReddit",
"parentId": "t1_ndjqwi1",
"isTopLevel": false,
"depth": 6,
"isSubmitter": false,
"isStickied": false,
"edited": "2025-09-11T00:55:06.000Z",
"permalink": "https://www.reddit.com/r/AskReddit/comments/1ndskqc/why_do_you_think_president_trump_ordered_all_us/ndjx0ts/",
"createdAt": "2025-09-11T00:48:25.000Z",
"observedAt": "2026-08-03T02:52:27.304Z",
"error": null
}

The most complete Reddit comments scraper available. It returns every comment field Reddit exposes, including body, author and author fullname, flair, score, controversiality, awards, thread depth, parent ID and edit timestamp, so you can rebuild the full comment tree from post URLs or a subreddit's recent posts.

📥 Input · 📤 Output · 💰 Pricing · ▶️ Examples

Apify Coverage Output Billing

Table of contents

What it does

The actor pulls comments from the Reddit post URLs you provide, or from the recent posts of the subreddits you name, sorts them the way you choose, walks the reply tree to the depth you set, and writes one normalized record per comment to the run's dataset. Each record carries the comment body, author and author fullname, score, controversiality, awards, thread depth, parent ID, edit status and a direct permalink, so you can reconstruct the whole discussion.

You can combine post URLs and subreddits in one run. Reddit dates are normalized to ISO 8601, and missing values are returned as null.

Quickstart

Open the actor, paste this into the input, and press Run. It returns the top comments from one AskReddit post.

{
"maxComments": 50,
"postUrls": ["https://www.reddit.com/r/AskReddit/comments/1ndskqc/"],
"sort": "top"
}

Add more permalinks to postUrls, or list subreddits to pull comments from their recent posts. Set maxDepth to limit how deep the reply tree is walked. All fields are optional.

Input reference

FieldTypeRequiredDefaultDescription
postUrlsstring[]no["https://www.reddit.com/r/AskReddit/comments/1ndskqc/"]Reddit post permalinks to pull comments from.
subredditsstring[]no[]Subreddit names (with or without r/) to pull comments from their recent posts.
maxCommentsintegerno10Maximum number of comments to collect across all posts.
maxDepthintegerno(all levels)How deep to walk reply threads. 0 = top-level only, 1 = top-level plus direct replies, and so on. Empty walks every level.
sortenumnotopHow to sort comments within each post: best, top, new, controversial, old, qa.

You can combine postUrls and subreddits in a single run.

Output reference

One dataset item per comment. Types: string, integer, boolean, or null when the source value is absent.

FieldTypeDescription
idstringReddit comment ID (unique per comment).
bodystringComment text.
authorstringAuthor username, or [deleted] if removed.
authorFullnamestringReddit author fullname (for example t2_...), or null.
authorFlairTextstringAuthor flair text in that subreddit, or null.
scoreintegerNet score (upvotes minus downvotes).
controversialityintegerReddit controversiality flag (0 or 1).
totalAwardsintegerNumber of awards on the comment.
postIdstringID of the post the comment belongs to.
postTitlestringTitle of the post.
postUrlstringURL of the post.
subredditstringSubreddit name.
parentIdstringFullname of the parent comment or post (for example t1_... or t3_...).
isTopLevelbooleantrue when the comment replies directly to the post.
depthintegerReply depth in the thread (0 = top level).
isSubmitterbooleantrue when the commenter is the post author (OP).
isStickiedbooleantrue when the comment is pinned.
editedstringEdit timestamp (ISO 8601), or null if never edited.
permalinkstringDirect permalink to the comment.
createdAtstringComment creation timestamp (ISO 8601).
observedAtstringISO 8601 timestamp of when the record was collected.
errorstringnull on success. On a failed run, a single item with a populated error field is written instead.

Example output record

Real record from a live run (input {"maxComments": 50, "postUrls": ["https://www.reddit.com/r/AskReddit/comments/1ndskqc/"], "sort": "top"}):

{
"id": "ndjx0ts",
"body": "At least 1 and sadly that isn't even a joke.",
"author": "Microphone_Assassin",
"authorFullname": "t2_627cu",
"authorFlairText": null,
"score": 194,
"controversiality": 0,
"totalAwards": 0,
"postId": "1ndskqc",
"postTitle": "Why do you think President Trump ordered all US Flags at half staff for the death of a Political Commentator, but not for the death of actual Legislators?",
"postUrl": "https://www.reddit.com/comments/1ndskqc/",
"subreddit": "AskReddit",
"parentId": "t1_ndjqwi1",
"isTopLevel": false,
"depth": 6,
"isSubmitter": false,
"isStickied": false,
"edited": "2025-09-11T00:55:06.000Z",
"permalink": "https://www.reddit.com/r/AskReddit/comments/1ndskqc/why_do_you_think_president_trump_ordered_all_us/ndjx0ts/",
"createdAt": "2025-09-11T00:48:25.000Z",
"observedAt": "2026-08-03T02:52:27.304Z",
"error": null
}

Run via API and CLI

Start a run and wait for it to finish, then read the dataset. Replace <TOKEN> with your Apify API token.

Run synchronously and get dataset items in one call:

curl -X POST "https://api.apify.com/v2/acts/scrapers_lat~reddit-comments-scraper/run-sync-get-dataset-items?token=<TOKEN>" \
-H "Content-Type: application/json" \
-d '{"postUrls":["https://www.reddit.com/r/AskReddit/comments/1ndskqc/"],"maxComments":50,"sort":"top"}'

Start a run asynchronously:

curl -X POST "https://api.apify.com/v2/acts/scrapers_lat~reddit-comments-scraper/runs?token=<TOKEN>" \
-H "Content-Type: application/json" \
-d '{"subreddits":["technology"],"maxComments":200,"maxDepth":2,"sort":"best"}'

Apify CLI:

apify call scrapers_lat/reddit-comments-scraper \
--input '{"postUrls":["https://www.reddit.com/r/AskReddit/comments/1ndskqc/"],"maxDepth":0}'

Fetch results

Every run writes to a dataset. Fetch items as JSON, CSV, or Excel by changing format:

# JSON
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&clean=true&format=json"
# CSV
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&clean=true&format=csv"
# Paginate large datasets
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&offset=500&limit=500"

<DATASET_ID> is returned as defaultDatasetId in the run object. Use offset and limit to page through large result sets. clean=true drops empty and internal fields.

Billing and limits

  • Pay per result. You are charged per comment record returned (result event). See the pricing tab for the current per-result price.
  • No charge on failure. If a run errors, the actor writes a single item with a populated error field and does not charge for it. Empty runs cost nothing.
  • Spend cap respected. Set maxTotalChargeUsd on the run; once reached, the actor stops emitting and charging further billable results.
  • Free Apify plans are capped at 10 comments per run. Upgrade for higher maxComments.
  • Depth affects volume. A larger maxDepth walks deeper reply trees and returns more comments per post.

FAQ and troubleshooting

A run returned an error like "post not found". Why? The post may have been deleted, removed, or made private since it was linked. Provide a live post URL. Failed runs are not charged.

How do I get only top-level comments? Set maxDepth to 0. Use 1 to include direct replies, and leave it empty to walk the whole tree.

Can I pull comments from a whole subreddit? Yes. List subreddit names in subreddits and the actor pulls comments from their recent posts. Combine with postUrls in the same run.

Why is authorFlairText or edited null? The commenter has no flair in that subreddit, or the comment was never edited. Missing source values are returned as null, never invented.

How do I rebuild the reply tree? Use parentId (the fullname of the parent) together with depth and id. Every comment carries the link back to its parent.

Is this an official Reddit tool? No. This actor is independent and has no affiliation with Reddit. It reads only data that is publicly available on reddit.com.

More scrapers at scrapers.lat

Built and maintained by scrapers.lat, where we publish scrapers for US and Latin American public platforms: company registries, government data, finance, e-commerce and more. Browse the catalog or request a custom scraper at scrapers.lat.


Independent tool, not affiliated with Reddit. Accesses only publicly available comment data.