Skip to main content

Reliable Reddit subreddit search with OAuth2 API authentication

Workflow preview

Workflow preview
100%
Reliable Reddit subreddit search with OAuth2 API authentication preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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

Best for

  • Market Research automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.executeworkflowtrigger, n8n-nodes-base.splitout, n8n-nodes-base.set, n8n-nodes-base.aggregate, n8n-nodes-base.httprequest, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Christian Moises.

Original n8n.io source

1.1 Workflow description

Title
Reliable Reddit subreddit search with OAuth2 API authentication
Workflow name
Reliable Reddit subreddit search with OAuth2 API authentication

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

  • Reddit OAuth2 API Credentials (must be set up in n8n under Credentials).
  • Basic understanding of JSON parameters in n8n.
  • An existing workflow that calls this one using Execute Workflow.

Customizing This Workflow

You can adapt this workflow to your specific needs by:

  • Filtering by member range: Add logic to exclude subreddits outside min_members or max_members.
  • Expanding extracted fields: Include additional subreddit properties such as created_utc, lang, or active_user_count.
  • Changing authentication: Switch to different Reddit OAuth2 credentials if managing multiple Reddit accounts.
  • Integrating downstream apps: Send the processed subreddit list to Google Sheets, Airtable, or a database for storage.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When Executed by Another Workflow

Type / Role
n8n-nodes-base.executeWorkflowTrigger - executeWorkflowTrigger
Config choices
Version 1.1

Block 2 - Split Out

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 3 - Edit Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Aggregate

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 5 - Get many Subreddit

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Reliable Reddit subreddit search with OAuth2 API authentication
Complexity intermediate
Nodes 7
Categories Market Research, Multimodal AI
Author Christian Moises
Published 20 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7646/7646.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Reliable Reddit subreddit search with OAuth2 API authentication do?

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

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, Multimodal AI use case.