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 TriggerThis 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:
Append Content to Document Node in n8nUse the Google Docs node in n8n with:
Append Contentthumbnail_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 WaitorSplit In Batchesfor large submissions. | 
You can deploy this workflow in just minutes using n8n.
๐ Start Automating with n8n


