Apify example task · whoareyouanas/reddit-faster-actor

Compare 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.

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.

input.json · reddit-faster-compare-programming-community-posts
{
  "endDate": "now",
  "maxItemsPerKind": 8,
  "maxPagesPerKind": 2,
  "limit": "25",
  "retries": 1,
  "targets": [
    "r/golang",
    "r/rust"
  ],
  "datasets": [
    "posts"
  ],
  "startDate": "14 days ago"
}
Input fields used by this example, their values and what they control
FieldValue in this exampleWhat 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 this8Optional cap for newly pushed rows per selected dataset and target.
maxPagesPerKindChange this2Optional 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.
retries1Retries for transient HTTP or network failures.
targetsChange thisr/golang, r/rustSubreddit or user targets: r/Python, u/spez, or a full Reddit subreddit/user profile URL. Post, thread and search URLs are not supported.
datasetsChange thispostsSelect which Reddit object types to download.
startDateChange this"14 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)
Deployed actor input fields, types, defaults, and descriptions
FieldType / requiredDefaultPurpose
windowDaysnumber1Maximum time span per API search request. Use 0 to disable windowing.

Minimum: 0

minWindowSecondsinteger60Smallest recovery window after API timeouts, server errors, or oversized range responses. The run fails if retries at this size still fail.

Minimum: 1

requestDelayMsinteger0Delay between successful non-empty page requests.

Minimum: 0

timeoutSecondsnumber60Timeout for each data request.

Minimum: 1

retrySleepSecondsnumber2Base sleep between retries. Later retries wait a multiple of this value.

Minimum: 0

skipMetadatabooleanfalseSkip the subreddit/user metadata request. Provide startDate for large ranges when enabled.
dryRunbooleanfalsePreview targets, date ranges, and request settings without fetching posts/comments or pushing dataset rows.
resumeFromStatebooleantrueResume 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.

  1. 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"

  2. 02 · maxItemsPerKind

    Max items per dataset

    Optional cap for newly pushed rows per selected dataset and target.

    Example: 8

  3. 03 · maxPagesPerKind

    Max pages per dataset

    Optional cap for fetched non-empty API pages per selected dataset and target.

    Example: 2

  4. 04 · limit

    API limit

    Archive API page size. Default 100. This is not the total output cap.

    Example: "25"

  5. 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: r/golang, r/rust

  6. 06 · datasets

    Datasets

    Select which Reddit object types to download.

    Example: posts

  7. 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: "14 days ago"

Run it in three steps

  1. Open the example on Apify and select Try for free to copy it into your Apify account.
  2. Replace the sample values above with your own target and keep the limit small.
  3. Start the run, then export the dataset as JSON, CSV or Excel.

04 / Output

What the results table shows.

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.

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 · run and return the results
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":["r/golang","r/rust"],"datasets":["posts"],"startDate":"14 days ago"}'

Coverage & interpretation

Check the result before relying on it.

Questions

About this example.

What does the "Compare recent posts from two programming subreddits" example collect?

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. 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 r/golang, r/rust; Datasets (datasets) set to posts. 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.

Guides

Read more about this workflow.