Scrape Creators icon

Scrape Creators

Get real time social media data

Overview

The "Get Subreddit Posts" operation in this node fetches posts from a specified subreddit on Reddit. It allows users to retrieve a list of posts based on various criteria such as the number of posts, sorting order, and time frame. This is useful for monitoring trending topics, gathering data for analysis, or automating content curation from Reddit communities.

Practical examples include:

  • Collecting the top posts from a niche subreddit for market research.
  • Monitoring new or rising posts in a community to engage promptly.
  • Aggregating posts over a specific time frame (e.g., past week) for reporting or sentiment analysis.

Properties

Name Meaning
Limit Max number of results to return (number).
Subreddit The subreddit to get posts from (string).
Additional Fields Optional parameters to refine the query:
- Time Frame The time frame to get posts from. Options: All, Day, Month, Week, Year.
- Sort By The sort order to get posts from. Options: Best, Hot, New, Rising, Top.

Output

The output contains a JSON array of posts retrieved from the specified subreddit. Each post object typically includes details such as title, author, score, number of comments, creation date, and URL. The exact structure depends on the API response but generally represents standard Reddit post metadata.

This node does not output binary data.

Dependencies

  • Requires an API key credential for accessing the Scrape Creators API service.
  • The node sends requests to https://api.scrapecreators.com with appropriate headers including the API key.
  • No additional environment variables are needed beyond the API key configuration.

Troubleshooting

  • Common issues:
    • Invalid or missing API key will cause authentication errors.
    • Requesting too many posts (exceeding API limits) may result in errors or truncated results.
    • Specifying a non-existent or private subreddit will yield empty results or errors.
  • Error messages:
    • Authentication failures: Check that the API key is correctly set and valid.
    • Rate limit exceeded: Reduce the number of requested posts or wait before retrying.
    • Invalid subreddit: Verify the subreddit name spelling and accessibility.

Links and References

Discussion