AutomationFlowsSocial Media › Reliable Reddit Subreddit Search with Oauth2 API Authentication

Reliable Reddit Subreddit Search with Oauth2 API Authentication

ByChristian Moises @hyxcreation on n8n.io

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*

Event trigger★★★★☆ complexity7 nodesExecute Workflow TriggerHTTP Request
Social Media Trigger: Event Nodes: 7 Complexity: ★★★★☆ Added:

This workflow corresponds to n8n.io template #7646 — we link there as the canonical source.

This workflow follows the Execute Workflow Trigger → HTTP Request recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "b2e203b5-75d0-417b-8f6c-4742f441fc19",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -512,
        256
      ],
      "parameters": {
        "inputSource": "jsonExample",
        "jsonExample": "{\n\"Query\": \n\"RealEstateTechnology\",\n\"min_Members\": \n0,\n\"max_members\": \n20000,\n\"limit\":50\n}"
      },
      "typeVersion": 1.1
    },
    {
      "id": "f1c7f1b1-7f54-46d1-88ff-9c5cc5a41fe8",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -16,
        368
      ],
      "parameters": {
        "options": {},
        "fieldToSplitOut": "data.children"
      },
      "typeVersion": 1
    },
    {
      "id": "34b65197-d956-47ba-95bb-c56260f24897",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        160,
        368
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "bd3654bc-51e7-43b0-bb8d-f25838136011",
              "name": "Subreddit",
              "type": "string",
              "value": "={{ $json.data.url }}"
            },
            {
              "id": "78c8656f-ff1a-4e60-b449-4ee5ac909195",
              "name": "Description",
              "type": "string",
              "value": "={{ $json.data.public_description }}"
            },
            {
              "id": "e26fbedf-32f8-4489-8bbf-c8371dba6b43",
              "name": "18+",
              "type": "string",
              "value": "={{ $json.data.over18 }}"
            },
            {
              "id": "7d7dd017-c021-4ef2-bcb7-0bdfa66d7c8a",
              "name": "Members",
              "type": "string",
              "value": "={{ $json.data.subscribers }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "42d35c17-9414-4e2f-b15f-5fc94fa0fd7b",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        336,
        368
      ],
      "parameters": {
        "options": {},
        "fieldsToAggregate": {
          "fieldToAggregate": [
            {
              "fieldToAggregate": "Subreddit"
            },
            {
              "fieldToAggregate": "Description"
            },
            {
              "fieldToAggregate": "18+"
            },
            {
              "fieldToAggregate": "Members"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "8851d902-4c4e-48ec-831c-24785f7efc69",
      "name": "Get many Subreddit",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -240,
        256
      ],
      "parameters": {
        "url": "https://oauth.reddit.com/subreddits/search",
        "options": {},
        "sendQuery": true,
        "authentication": "predefinedCredentialType",
        "queryParameters": {
          "parameters": [
            {
              "name": "q",
              "value": "={{ $json.Query }}"
            },
            {
              "name": "limit",
              "value": "={{ $json.limit }}"
            }
          ]
        },
        "nodeCredentialType": "redditOAuth2Api"
      },
      "credentials": {
        "redditOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "11ce97ad-4a31-49d3-af3b-bee886da3e96",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        -112
      ],
      "parameters": {
        "width": 1120,
        "height": 640,
        "content": "## Get many subreddit Alternative Node workflow\nDo you keep getting an error response when using Get many subreddit node? Me too, so I made this Template to fix this issue,\nit turns out that reddit don't like when you request from their api without any Authorization Credentials.\n## How to use?\n1. Paste this workflow into your n8n\n2. Replace Get Many Subreddit node with an Execute a SubWorkflow then select this workflow.\n3. Add Queries,\nQuery - Your Keywoard to finding multiple subreddits\nmin_members - Minimum ammount of members you'd like to be returned\nmax_members - Max amount of members you'd like to be returned\nlimit - The number of subreddits you'd like to get."
      },
      "typeVersion": 1
    },
    {
      "id": "d1fee9c5-3e2c-4f76-9aaa-4254f2694284",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        224
      ],
      "parameters": {
        "color": 6,
        "width": 640,
        "height": 304,
        "content": "# Data Processing\nThis section is made to process and retrieve the data needed and return the cleaned data"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Split Out": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many Subreddit": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Get many Subreddit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

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*

Source: https://n8n.io/workflows/7646/ — original creator credit. Request a take-down →

More Social Media workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Social Media

Video explanation

HTTP Request, Execute Workflow Trigger, Postgres +1
Social Media

Wait Dropbox. Uses manualTrigger, httpRequest, executeWorkflowTrigger, stickyNote. Event-driven trigger; 20 nodes.

HTTP Request, Execute Workflow Trigger, Dropbox
Social Media

Extracts a clean transcript from a videoId using youtube-transcript.io. AI summaries, sentiment analysis, keyword extraction Internal indexing/SEO Content pipelines (blog/newsletter) Batch transcript

HTTP Request, Execute Workflow Trigger, Stop And Error
Social Media

YouTube Caption Extractor (Your Channel Only) Extracts clean transcripts from YOUR CHANNEL YouTube video captions using YouTube Data API v3.

Execute Workflow Trigger, HTTP Request, Stop And Error
Social Media

Purpose: Uploads videos to Facebook Pages or Groups automatically, either via a Form Trigger or triggered by another workflow.

Form Trigger, HTTP Request, Execute Workflow Trigger