๐Ÿ“Š Reliable Reddit subreddit search with OAuth2 API authentication

โšก 358 views ยท ๐Ÿ“Š Market Research & Insights

Description

Since the Get Many Subreddit node often blocks requests because Reddit requires proper authentication headers, this workflow provides a reliable alternative. It uses the Reddit OAuth2 API through the HTTP Request node, processes the results, and outputs cleaned subreddit data.

If you are using Get Many subreddit node and you are getting this error: n8n Youโ€™ve been blocked by network security.To continue, log in to your Reddit account or use your developer token

Usecase: This is especially useful if you want to search multiple subreddits programmatically and apply filtering for members, descriptions, and categories.

How It Works

  1. Trigger Input

    • The workflow is designed to be called by another workflow using the Execute Workflow Trigger node.

    • Input is passed in JSON format with parameters:

      {
        "Query": "RealEstateTechnology",
        "min_members": 0,
        "max_members": 20000,
        "limit": 50
      }
  2. Fetch Subreddits

    • The HTTP Request (Reddit OAuth2) node queries the Reddit API (/subreddits/search) with the given keyword and limit.
    • Because it uses OAuth2 credentials, the request is properly authenticated and accepted by Reddit.
  3. Process Results

    • Split Out: Iterates over each subreddit entry (data.children).

    • Edit Fields: Extracts the following fields for clarity:

      • Subreddit URL
      • Description
      • 18+ flag
      • Member count
    • Aggregate: Recombines the processed data into a structured output array.

  4. Output

    • Returns a cleaned dataset with only the relevant subreddit details.(Saves token if Attached to an AI Agent)

How to Use

  1. Import this workflow into n8n.
  2. In your main workflow, replace the Get Many Subreddit node with an Execute Workflow node and select this workflow.
  3. Pass in the required query parameters (Query, min_members, max_members, limit).
  4. Run your main workflow โ€” results will now come through authenticated API requests without being blocked.

Requirements


Customizing This Workflow

You can adapt this workflow to your specific needs by:

๐Ÿ”— Nodes Used

HTTP Request, Execute Workflow Trigger

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup