Skip to main content

Extract YouTube Video Metadata and Save to Google Docs using RapidAPI

Workflow preview

Workflow preview
100%
Extract YouTube Video Metadata and Save to Google Docs using RapidAPI preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Automated YouTube Video Metadata Extraction Workflow Description: This workflow leverages the YouTube Metadata API to automatically e...

Best for

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

Tools used

n8n-nodes-base.formtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.stickynote, n8n-nodes-base.googledocs

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Extract YouTube Video Metadata and Save to Google Docs using RapidAPI
Workflow name
Extract YouTube Video Metadata and Save to Google Docs using RapidAPI

๐Ÿ“บ Automated YouTube Video Metadata Extraction Workflow

Description: This workflow leverages the YouTube Metadata API to automatically extract detailed video information from any YouTube URL. It uses n8n to automate the entire process and stores the metadata in a neatly formatted Google Docs document.

Perfect for content creators, marketers, and researchers who need quick, organized YouTube video insights at scale.


โš™๏ธ Node-by-Node Explanation

1. โœ… On Form Submission

This node acts as the trigger. When a user submits a form containing a YouTube video URL, the workflow is activated.

  • Input: YouTube Video URL
  • Platform: Webhook or n8n Form Trigger

2. ๐ŸŒ YouTube Metadata API (HTTP Request)

This node sends the video URL to the YouTube Metadata API via HTTP request.

  • Action: GET request

  • Headers:

    -H "X-RapidAPI-Key: YOUR_API_KEY"
    -H "X-RapidAPI-Host: youtube-metadata1.p.rapidapi.com"
    
  • Endpoint Example:

    https://youtube-metadata1.p.rapidapi.com/video?url=YOUTUBE_VIDEO_URL
    
  • Output: JSON with metadata like:

    • Title
    • Description
    • Views, Likes, Comments
    • Duration
    • Upload Date
    • Channel Info
    • Thumbnails

3. ๐Ÿง  Reformat Metadata (Code Node)

This node reformats the raw metadata into a clean, human-readable text block.

  • Example Output Format:

    ๐ŸŽฌ **Title:** How to Build Workflows with n8n  
    ๐Ÿงพ **Description:** This tutorial explains how to build...  
    ๐Ÿ‘ค **Channel:** n8n Tutorials  
    ๐Ÿ“… **Published On:** 2023-05-10  
    โฑ๏ธ **Duration:** 10 minutes, 30 seconds  
    ๐Ÿ‘๏ธ **Views:** 45,678  
    ๐Ÿ‘ **Likes:** 1,234  
    ๐Ÿ’ฌ **Comments:** 210  
    ๐Ÿ”— **URL:** https://youtube.com/watch?v=abc123
    

4. ๐Ÿ“ Append to Google Docs

This node connects to your Google Docs and appends the formatted metadata into a selected document.

  • Document Format Example:

    ## ๐Ÿ“Œ Video Entry โ€“ [Date]
    
    ๐ŸŽฌ **Title:**  
    ๐Ÿงพ **Description:**  
    ๐Ÿ‘ค **Channel:**  
    ๐Ÿ“… **Published On:**  
    โฑ๏ธ **Duration:**  
    ๐Ÿ‘๏ธ **Views:**  
    ๐Ÿ‘ **Likes:**  
    ๐Ÿ’ฌ **Comments:**  
    ๐Ÿ”— **URL:**
    
    ---
    

๐Ÿ“„ Use Cases

  • Content Creators: Quickly analyze competitor content or inspirations.
  • Marketers: Collect campaign video performance data.
  • Researchers: Compile structured metadata across videos.
  • Social Media Managers: Create content briefs effortlessly.

โœ… Benefits

  • ๐Ÿš€ Time-saving: Automates manual video data extraction
  • ๐Ÿ“Š Accurate: Uses reliable, updated YouTube API
  • ๐Ÿ“ Organized: Formats and stores data in Google Docs
  • ๐Ÿ” Scalable: Handles unlimited YouTube URLs
  • ๐ŸŽฏ User-friendly: Simple setup and clean output

๐Ÿ”‘ How to Get Your API Key for YouTube Metadata API

  1. Go to the YouTube Metadata API on RapidAPI.
  2. Sign up or log in to your RapidAPI account.
  3. Click Subscribe to Test and choose a pricing plan (free or paid).
  4. Copy your API Key shown in the "X-RapidAPI-Key" section.
  5. Use it in your HTTP request headers.

๐Ÿงฐ Google Docs Integration โ€“ Full Setup Instructions

๐Ÿ” Step 1: Enable Google Docs API

  1. Go to the Google Cloud Console.
  2. Create a new project or select an existing one.
  3. Navigate to APIs & Services > Library.
  4. Search for Google Docs API and click Enable.
  5. Also enable Google Drive API (for document access).

๐Ÿ›  Step 2: Create OAuth Credentials

  1. Go to APIs & Services > Credentials.
  2. Click Create Credentials > OAuth Client ID.
  3. Select Web Application or Desktop App.
  4. Add authorized redirect URIs if needed (e.g., for n8n OAuth).
  5. Save your Client ID and Client Secret.

๐Ÿ”— Step 3: Connect n8n to Google Docs

  1. In n8n, go to Credentials > Google Docs API.
  2. Add new credentials using the Client ID and Secret from above.
  3. Authenticate with your Google account and allow access.

๐Ÿ“˜ Step 4: Create and Format Your Google Document

  1. Go to Google Docs and create a new document.

  2. Name it (e.g., YouTube Metadata Report).

  3. Optionally, add a title or table of contents.

  4. Copy the Document ID from the URL:

    https://docs.google.com/document/d/DOCUMENT_ID/edit
    

๐Ÿ”„ Step 5: Use Append Content to Document Node in n8n

  • Use the Google Docs node in n8n with:

    • Operation: Append Content
    • Document ID: Your copied Google Doc ID
    • Content: The formatted video summary string

๐ŸŽจ Customization Options

  • ๐Ÿ’ก Add Tags: Insert hashtags or categories based on video topics.
  • ๐Ÿ“† Organize by Date: Create headers for each day or weekโ€™s entries.
  • ๐Ÿ“ธ Embed Thumbnails: Use thumbnail_url to embed preview images.
  • ๐Ÿ“Š Spreadsheet Export: Use Google Sheets instead of Docs if preferred.

๐Ÿ›  Troubleshooting Tips

Issue Solution
โŒ Auth Error (Google Docs) Ensure correct OAuth redirect URI and permissions.
โŒ API Request Fails Check API key and request structure; test on RapidAPI's playground.
๐Ÿ“„ Doc Not Updating Verify Document ID and sharing permissions.
๐Ÿงพ Bad Formatting Debug the code node output using logging or console in n8n.
๐ŸŒ n8n Timeout Consider using Wait or Split In Batches for large submissions.

๐Ÿš€ Ready to Launch?

You can deploy this workflow in just minutes using n8n.

๐Ÿ‘‰ Start Automating with n8n


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 - On form submission

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 2 - YouTube Metadata

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

Block 3 - Reformat

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Sticky Note

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

Block 5 - Sticky Note1

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

Block 6 - Sticky Note2

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

Block 7 - Sticky Note3

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

Block 8 - Sticky Note4

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

Block 9 - Append Data in Google Docs

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

3. Summary Table

Workflow Extract YouTube Video Metadata and Save to Google Docs using RapidAPI
Complexity intermediate
Nodes 9
Categories Market Research
Author Evoort Solutions
Published 20 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7628/7628.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 Extract YouTube Video Metadata and Save to Google Docs using RapidAPI do?

Automated YouTube Video Metadata Extraction Workflow Description: This workflow leverages the YouTube Metadata API to automatically e...

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 use case.