Automate YouTube Research with n8n and Apify MCP Server

Discover how to automate YouTube video searches and transcript retrieval with n8n’s MCP server trigger integrated with Apify’s scraping API. This workflow eliminates manual searching and transcription, saving hours for researchers and content creators.
executeWorkflowTrigger
switch
httpRequest
+5
Workflow Identifier: 2125
NODES in Use: ExecuteWorkflowTrigger, Switch, StickyNote, ToolWorkflow, HttpRequest, Set, Aggregate, MCPTrigger
Automate YouTube research with n8n and Apify

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What this workflow does

This workflow helps you search YouTube for videos and get their transcripts automatically.
It solves the problem of spending too much time copying video links and text manually.
You get video details and transcripts all in one place without errors.
This saves time and makes research easier and faster.


Who should use this workflow

This is for content creators, marketers, researchers, or anyone who needs quick YouTube video data and transcripts.
It works well for people who want to avoid manual copying and pasting.
If you want to track how many API calls you make and keep your costs under control, this workflow also shows usage stats.


Tools and services used

  • n8n Platform: Manages automation workflow with triggers, HTTP requests, and data processing nodes.
  • Apify YouTube Scraper API: Searches YouTube videos and downloads transcripts.
  • MCP Server Trigger node: Listens for requests from other workflows or clients.
  • HTTP Request node: Calls Apify APIs with user data.
  • Switch node: Routes requests based on operation type.
  • Set and Aggregate nodes: Simplify and gather video and transcript data.

Inputs and outputs

Inputs:
User inputs an operation type as youtube_search, youtube_transcripts, or usage_metrics.
For video search, a text query is input.
For transcript download, one or more video URLs separated by commas are input.
For usage metrics, no extra input is needed.

Processing Steps:
The workflow triggers on requests from an MCP client or another workflow.
It checks the operation requested and runs the proper API call to Apify:
• Search videos by query
• Get transcripts for video URLs
• Retrieve monthly API usage data
A series of nodes simplify and combine the data for easy use.

Outputs:
Structured JSON data is returned:
• Top videos with title, channel, views, likes, and URL
• Video transcripts in plaintext
• Usage statistics showing API credits used and limits


Beginner step-by-step: How to build this workflow in n8n for production use

Step 1: Import the workflow

Download the provided workflow file using the Download button on this page.

Inside the n8n editor, choose Import from File and select the downloaded file.

Step 2: Configure credentials

Open the workflow and locate all HTTP Request nodes.
Add your Apify API Key in the credential section for each.

Step 3: Update workflow settings

If needed, change the MCP Server Trigger node’s path to a unique private URL.
This keeps your workflow secure.

Step 4: Test the workflow

Run the workflow manually or trigger it from an MCP client with example inputs.
Make sure you get video search results, transcripts, or usage reports as expected.

Step 5: Activate the workflow

Toggle the workflow to active so it listens for real requests.
Now clients can call the endpoint to get YouTube data.

For production, consider hosting n8n on a stable server. self-host n8n is a good option.


Edge cases and failures

If the HTTP Request nodes give 401 errors, check the Apify API Key is correct.

If no videos show in search results, the search query might be empty or wrong.

If transcripts don’t download, check the video URLs are valid YouTube links and separated by commas.

Enable authentication on the MCP Server Trigger to avoid unauthorized access.


Customization ideas

  • You can increase the number of YouTube search results by changing maxResults in the search request from 5 to a higher number.
  • Change the transcript language by updating the subtitlesLanguage parameter to other supported codes.
  • Add security by enabling authentication on the MCP Server Trigger.
  • Modify usage metrics nodes to give alerts when API limits are near.
  • Connect with AI clients like Claude Desktop to make chatbot queries using this workflow.

Summary of what you get

✓ A workflow that automatically finds YouTube videos from a search.
✓ Downloads clear, plain-text transcripts from video URLs.
✓ Shows detailed usage stats to avoid overspending.
✓ Reduces manual copying and mistakes.
✓ Easy for other workflows or clients to use via a single MCP trigger.


Automate YouTube research with n8n and Apify

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

The YouTube Search operation requires a text query input to find relevant videos.
It uses the Apify YouTube Scraper API to download transcripts for provided video URLs in plaintext format.
Check and update the Apify API Key credentials in the HTTP Request nodes to ensure they are correct and valid.
Yes, the MCP Server Trigger allows AI clients like Claude Desktop to query this workflow easily for YouTube data.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.
manualTrigger
twist
twist
Free

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.
googleSheets
httpRequest
chainLlm
+8
Free

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.
RespondToWebhook
If
Slack
+5
Free

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.
agent
lmChatOpenAi
toolWorkflow
+3
Free

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.
gumroadTrigger
googleSheets
httpRequest
+3
Free

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
httpRequest
informationExtractor
wordpress
+9
Free
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.