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.
This node acts as the trigger. When a user submits a form containing a YouTube video URL, the workflow is activated.
Webhook
or n8n Form Trigger
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:
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
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:**
---
Go to Google Docs and create a new document.
Name it (e.g., YouTube Metadata Report
).
Optionally, add a title or table of contents.
Copy the Document ID from the URL:
https://docs.google.com/document/d/DOCUMENT_ID/edit
Append Content to Document
Node in n8nUse the Google Docs
node in n8n with:
Append Content
thumbnail_url
to embed preview images.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. |
You can deploy this workflow in just minutes using n8n.