πŸ“Š Extract YouTube Video Metadata and Save to Google Docs using RapidAPI

⚑ 276 views Β· πŸ“Š Market Research & Insights

πŸ’‘ Pro Tip β€” YouTube’s API quotas can be a bottleneck when you’re pulling data at scale. ScraperNode is a community node with dedicated scrapers for channels, videos, and comments β€” no quota limits, just structured data.

View All Scrapers

Description

πŸ“Ί 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.


2. 🌐 YouTube Metadata API (HTTP Request)

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


3. 🧠 Reformat Metadata (Code Node)

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


4. πŸ“ Append to Google Docs

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


πŸ“„ Use Cases


βœ… Benefits


πŸ”‘ 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


🎨 Customization Options


πŸ›  Troubleshooting Tips

IssueSolution
❌ Auth Error (Google Docs)Ensure correct OAuth redirect URI and permissions.
❌ API Request FailsCheck API key and request structure; test on RapidAPI’s playground.
πŸ“„ Doc Not UpdatingVerify Document ID and sharing permissions.
🧾 Bad FormattingDebug the code node output using logging or console in n8n.
🌐 n8n TimeoutConsider 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


πŸ”— Nodes Used

HTTP Request, Google Docs, n8n Form Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup