Scrape Creators icon

Scrape Creators

Get real time social media data

Reddit → Get Subreddit Posts

AI-generated

Summary

Fetches posts from a subreddit, with optional time-frame and sort filters. It follows Reddit cursor-based pagination until it reaches the requested limit or a maximum of 1000 pages, or no further cursor is returned, or no more posts are received in a page.

Inputs

  • Subreddit (required) — Subreddit to fetch posts from; defaults to AskReddit.
  • Limit (required) — Maximum number of posts to return; defaults to 50.
  • Time Frame — Filter posts by all time, day, week, month, or year; defaults to all.
  • Sort By — Sort posts by best, hot, new, rising, or top; defaults to best.

Output shape

A single n8n item containing a posts array.

The node combines posts from cursor-paginated responses and truncates the array to the requested limit. Pagination will stop if the next cursor is invalid, undefined, or identical to the last, if no posts are returned on a page, or after 1000 pages have been fetched. If the response contains no posts, the array is empty.

Links

Discussion