Apify example task · whoareyouanas/reddit-faster-actor
Export a sample of Reddit AutoModerator comments
Sample recent public comments from the AutoModerator account. Review timestamps, subreddits and permalinks for a moderation-message audit.
- Actor
- Reddit Export: Posts, Comments & User History by Date
- Result limit
- Set by the input
- Estimated cost
- Per result, see pricing
- Run options
- Actor defaults
Example updated 2026-11-20 · actor build 0.2.6 · runs in your own Apify account
01 / About the actor
Reddit Export: Posts, Comments & User History by Date
Export archived Reddit posts and comments for known subreddits or public users within UTC date windows. Build historical research datasets without a Reddit API key, login, cookies, or proxy setup.
Dated archive exports
Choose subreddit or user targets and explicit start and end bounds.
Posts, comments, or both
Select the record kinds required by your research rather than assuming a live thread export.
Checkpoints and metadata
Inspect per-target metadata, run summaries, and saved state when continuing interrupted work.
02 / Input
The exact input this example runs.
targets is required. maxItemsPerKind applies to each target and each selected dataset, not globally. limit is an API page-size string. A date-only endDate includes that UTC calendar day.
{
"endDate": "now",
"maxItemsPerKind": 8,
"maxPagesPerKind": 2,
"limit": "25",
"retries": 1,
"targets": [
"u/AutoModerator"
],
"datasets": [
"comments"
],
"startDate": "7 days ago"
}| Field | Value in this example | What it controls |
|---|---|---|
| endDateChange this | "now" | UTC upper bound. YYYY-MM-DD is exclusive of the next UTC day. Use now for the current time. |
| maxItemsPerKindChange this | 8 | Optional cap for newly pushed rows per selected dataset and target. |
| maxPagesPerKindChange this | 2 | Optional cap for fetched non-empty API pages per selected dataset and target. |
| limitChange this | "25" | Archive API page size. Default 100. This is not the total output cap. |
| retries | 1 | Retries for transient HTTP or network failures. |
| targetsChange this | u/AutoModerator | Subreddit or user targets: r/Python, u/spez, or a full Reddit subreddit/user profile URL. Post, thread and search URLs are not supported. |
| datasetsChange this | comments | Select which Reddit object types to download. |
| startDateChange this | "7 days ago" | UTC inclusive lower bound. Supports YYYY-MM-DD, ISO datetime, epoch seconds/milliseconds, N days ago, none, or all. Default: 30 days ago. |
Other inputs you can add (8)
| Field | Type / required | Default | Purpose |
|---|---|---|---|
| windowDays | number | 1 | Maximum time span per API search request. Use 0 to disable windowing. Minimum: 0 |
| minWindowSeconds | integer | 60 | Smallest recovery window after API timeouts, server errors, or oversized range responses. The run fails if retries at this size still fail. Minimum: 1 |
| requestDelayMs | integer | 0 | Delay between successful non-empty page requests. Minimum: 0 |
| timeoutSeconds | number | 60 | Timeout for each data request. Minimum: 1 |
| retrySleepSeconds | number | 2 | Base sleep between retries. Later retries wait a multiple of this value. Minimum: 0 |
| skipMetadata | boolean | false | Skip the subreddit/user metadata request. Provide startDate for large ranges when enabled. |
| dryRun | boolean | false | Preview targets, date ranges, and request settings without fetching posts/comments or pushing dataset rows. |
| resumeFromState | boolean | true | Resume checkpoints within the same default key-value store when dates and source match. Separate scheduled runs do not automatically share this store. |
03 / Make it yours
Change these fields for your own research.
01 · endDate
End date
UTC upper bound. YYYY-MM-DD is exclusive of the next UTC day. Use now for the current time.
Example: "now"
02 · maxItemsPerKind
Max items per dataset
Optional cap for newly pushed rows per selected dataset and target.
Example: 8
03 · maxPagesPerKind
Max pages per dataset
Optional cap for fetched non-empty API pages per selected dataset and target.
Example: 2
04 · limit
API limit
Archive API page size. Default 100. This is not the total output cap.
Example: "25"
05 · targets
Targets
Subreddit or user targets: r/Python, u/spez, or a full Reddit subreddit/user profile URL. Post, thread and search URLs are not supported.
Example: u/AutoModerator
06 · datasets
Datasets
Select which Reddit object types to download.
Example: comments
07 · startDate
Start date
UTC inclusive lower bound. Supports YYYY-MM-DD, ISO datetime, epoch seconds/milliseconds, N days ago, none, or all. Default: 30 days ago.
Example: "7 days ago"
Run it in three steps
- Open the example on Apify and select Try for free to copy it into your Apify account.
- Replace the sample values above with your own target and keep the limit small.
- Start the run, then export the dataset as JSON, CSV or Excel.
04 / Output
What the results table shows.
- Each row is one archived post or comment with kind, redditId, date, available author/text/link fields, and rawData.
- Comments are independent subreddit or author selections, not automatically the reply trees of returned posts. Text and metadata can be null.
Columns in the “Overview” view
kind
Kind
redditId
Reddit ID
createdAt
Created at
author
Author
title
Title
link_flair_text
link_flair_text
description
Description
url
URL
A view selects columns for the table. The full JSON export keeps every field, including nested arrays and objects.
05 / Cost
What this example costs to run.
Charges follow the billable events in the pricing table below and the number of records the run returns. This example has no single total result cap, so start with it as is and check the run's charges before widening it.
Actor Start
$0.00005 per event · per GB of memory
Reddit result
$0.00075 per event
Prices checked 2026-11-22. Set a run spending limit in Apify when you widen the input.
06 / API
Run the same input from your code.
This call starts a billable run of Reddit Export: Posts, Comments & User History by Date with this example's input and returns the dataset items when it finishes. Synchronous calls wait up to five minutes; for longer runs, POST to /runs instead and read the run's default dataset when it succeeds. Keep the token in an environment variable.
curl --request POST \
'https://api.apify.com/v2/acts/whoareyouanas~reddit-faster-actor/run-sync-get-dataset-items?format=json' \
--header "Authorization: Bearer $APIFY_TOKEN" \
--header 'Content-Type: application/json' \
--data '{"endDate":"now","maxItemsPerKind":8,"maxPagesPerKind":2,"limit":"25","retries":1,"targets":["u/AutoModerator"],"datasets":["comments"],"startDate":"7 days ago"}'Coverage & interpretation
Check the result before relying on it.
- Archive coverage and freshness can differ from live Reddit; recent content can lag.
- Global keyword search, direct post-thread URLs, live rankings, and complete reply trees are not supported.
Questions
About this example.
What does the "Export a sample of Reddit AutoModerator comments" example collect?
Sample recent public comments from the AutoModerator account. Review timestamps, subreddits and permalinks for a moderation-message audit. It runs Reddit Export: Posts, Comments & User History by Date, published by whoareyouanas on Apify.
Which input does this example use?
End date (endDate) set to "now"; Max items per dataset (maxItemsPerKind) set to 8; Max pages per dataset (maxPagesPerKind) set to 2; API limit (limit) set to "25"; Targets (targets) set to u/AutoModerator; Datasets (datasets) set to comments. The full JSON input is shown on this page.
How much does it cost to run this example?
Charges follow the billable events in the pricing table below and the number of records the run returns. This example has no single total result cap, so start with it as is and check the run's charges before widening it.
How do I change it for my own research?
Open the example on Apify and select Try for free to copy it into your account, then edit End date, Max items per dataset, Max pages per dataset, API limit, Targets, Datasets, Start date. Keep the result limit small for the first run and check the output before scaling up.
Can I run it from the API or on a schedule?
Yes. Send the same JSON input to the Reddit Export: Posts, Comments & User History by Date run endpoint with your Apify API token, or save the copied task in your Apify account and add a schedule. Results land in the run's default dataset as JSON, CSV or Excel.
More examples
Related tasks you can copy.
Export recent r/Python posts for community research
Collect a small sample of recent public r/Python posts, including available text, timestamps and source links. Replace the target subreddit and date window for your own research. Inspect coverage and errors; upstream archive availability can vary.
View exampleCompare recent posts from two programming subreddits
Export a small post sample for r/golang and r/rust using the same UTC date window. Compare titles, scores and source links across the two communities.
View exampleExport recent r/homeassistant comments
Collect a bounded sample of public comments with text, timestamps and thread links. Use the result as a starting point for reviewing community feedback.
View exampleFacebook Post Scraper by ID
Look up a batch of Facebook posts by numeric ID
Supply three documented numeric IDs and compare the returned post text, timestamps and source URLs. Use the input ID to match the output back to your list.
View exampleReddit Lead Finder & Brand Mention Monitor
Find bookkeeping software requests on Reddit
Search r/smallbusiness for public posts asking about bookkeeping software recommendations. Review the post context and source links for specific purchase criteria.
View exampleReddit Scraper
Discover Reddit communities about homelabs
Search by homelab and collect the matching subreddit records. Review available community names, descriptions and member counts.
View exampleGuides
Read more about this workflow.
Export Reddit Posts and Comments to CSV: Browser or Archive?
Choose a local export for the Reddit page you are reviewing or a dated archive export for historical research, with the right expectations for each.
How to Scrape Reddit Posts and Comments for Market Research
Use a Reddit scraper to find buyer language, product complaints, content ideas, and community signals from posts, comments, subreddits, and user profiles.
Top 5 Apify Scrapers to Automate Marketing Research
A practical stack of Apify scrapers for automating marketing research across Meta ads, Google ads, TikTok ads, Facebook Groups, and Reddit.