Run and Get Comments
AI-generatedSummary
Run an Apify Actor to collect comments from Reddit posts, wait for successful completion, and return its dataset rows. Starts a separate Actor run for each incoming n8n item and requires Apify API credentials.
Inputs
- actorId (required) — Required Actor ID in username/actor-name or username~actor-name format. Defaults to Newbs/reddit-comment-scraper.
- postUrls (required) — Required Reddit post URLs separated by newlines or commas. Trims entries and removes duplicates; accepts only URLs matching https://www.reddit.com/r/
/comments/ /... . - maxComments — Maximum comments requested per post; defaults to 500 and is clamped to 1–5000.
- includeReplies — Requests nested replies and thread context from the Actor. Defaults to true.
- sortBy — Requested comment order: best, controversial, new, old, qa, or top. Defaults to top.
- maxConcurrency — Maximum posts the Actor processes concurrently; defaults to 2 and is clamped to 1–4.
- useApifyProxy — Adds Apify Proxy configuration to the Actor input when enabled. Defaults to true.
- proxyGroup — Proxy group when Use Apify Proxy is enabled: DATACENTER or RESIDENTIAL. Defaults to RESIDENTIAL.
- proxyCountry — Proxy country code when Use Apify Proxy is enabled, such as US or GB. Defaults to US.
- datasetItemLimit — Maximum dataset rows fetched per run; defaults to 1000 and is clamped to 1–5000.
- waitForFinishSeconds — How long n8n waits for completion; defaults to 900 seconds and is clamped to 10–7200. Exceeding this wait raises an error without aborting the Actor run.
- pollIntervalSeconds — Interval between run-status checks; defaults to 5 seconds and is clamped to 2–60.
- buildTag — Actor build tag to run. Defaults to latest.
- memoryMbytes — Memory allocation sent to Apify in MB. Defaults to 1024; the UI specifies 512–4096.
- actorTimeoutSeconds — Actor runtime limit sent to Apify, separate from n8n's wait limit. Defaults to 1800 seconds; the UI specifies 60–7200.
Output shape
A list of n8n items, one per returned dataset row, with apifyActorId, apifyRunId, and apifyDatasetId added.
Dataset fields are determined by the Actor; no fixed comment schema is enforced. Fetches one batch up to datasetItemLimit without pagination. If a successful run has no dataset or returns no rows, emits one run-metadata item with resultCount: 0. Failed, aborted, timed-out runs and waiting errors raise an error; with Continue On Fail enabled, emits an item containing error instead. Outputs are paired with their originating input item.