AutomationFlowsSocial Media › YouTube to MP3 Converter & Upload to Drive

YouTube to MP3 Converter & Upload to Drive

Original n8n title: Youtube to Mp3 Converter with Rapidapi - Upload to Drive & Email Link

BySk developer @skdeveloper on n8n.io

This n8n workflow allows users to convert any YouTube video to MP3 using the YouTube To MP3 Fast API on RapidAPI. It handles the entire process end-to-end — from form input to automatic delivery via email with cloud storage. 📝 User Form Input Users submit a YouTube URL and their…

Event trigger★★★★☆ complexity15 nodesForm TriggerHTTP RequestGoogle DriveEmail Send
Social Media Trigger: Event Nodes: 15 Complexity: ★★★★☆ Added:

This workflow corresponds to n8n.io template #6318 — we link there as the canonical source.

This workflow follows the Emailsend → Form Trigger recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "c1c7f52b-77b3-4936-9579-7601eb9593b0",
      "name": "n8n Form Trigger",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1340,
        -100
      ],
      "parameters": {
        "options": {},
        "formTitle": "YouTube To Mp3",
        "formFields": {
          "values": [
            {
              "fieldLabel": "url"
            },
            {
              "fieldLabel": "email"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "1ee08de5-158e-406e-a446-65607c3c1c6a",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1060,
        -100
      ],
      "parameters": {
        "url": "https://youtube-to-mp3-fast.p.rapidapi.com/output.php",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "contentType": "multipart-form-data",
        "sendHeaders": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "url",
              "value": "={{ $json.url }}"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "x-rapidapi-host",
              "value": "youtube-to-mp3-fast.p.rapidapi.com"
            },
            {
              "name": "x-rapidapi-key",
              "value": "YOUR_API_KEY"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "c34dac58-017d-47fc-9d71-90e15182110e",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        -800,
        -100
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "dd3b29d8-8273-43ad-94b9-f3c65540bdce",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -220,
        -100
      ],
      "parameters": {
        "name": "=",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "options": {},
        "folderId": "root",
        "authentication": "serviceAccount"
      },
      "credentials": {
        "googleApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "208e117f-2b69-40b8-8386-ce0bb656e7df",
      "name": "Send Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        360,
        -100
      ],
      "parameters": {
        "text": "Your download link: {{ $json.webViewLink }}",
        "options": {},
        "subject": "\ud83c\udfb5 Your MP3 is ready!",
        "toEmail": "={{ $json.email }}",
        "fromEmail": "your@email.com"
      },
      "credentials": {
        "smtp": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "83011b96-1444-4eba-8b31-0f39c1dca764",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2440,
        -820
      ],
      "parameters": {
        "width": 680,
        "height": 1200,
        "content": "# YouTube to MP3 Download & Email Delivery Automation\n\n## Flow Overview\n\nThis automated workflow takes a YouTube URL and user email via a form, converts the video to MP3 using an external API, uploads the MP3 to Google Drive, makes it publicly accessible, and emails the download link to the user.\n\n---\n## Nodes \n\n1. **n8n Form Trigger:** Starts the workflow by capturing YouTube URL and user email input.  \n2. **HTTP Request:** Sends the URL to an external API to initiate MP3 conversion.  \n3. **Wait:** Pauses the workflow to allow the conversion process to complete.  \n4. **HTTP Request1:** Fetches the MP3 file or metadata from the conversion API.  \n5. **Google Drive:** Uploads the MP3 file to Google Drive for storage and sharing.  \n6. **Google Drive1 (Share):** Updates file permissions to make it publicly accessible.  \n7. **Send Email:** Emails the user with the download link to their MP3 file.\n\n\n## Benefits of the Flow\n\n- **Fully Automated Process:** No manual intervention needed from URL submission to final delivery.\n- **User-Friendly:** Simple form input for users to request MP3 downloads.\n- **Scalable & Reliable:** Uses cloud APIs and Google Drive for dependable processing and storage.\n- **Fast Delivery:** Combines asynchronous waits and file sharing for quick turnaround.\n- **Secure & Accessible:** Files are stored safely in Google Drive with controlled sharing.\n- **Improved User Experience:** Automated email notifications ensure users get their files promptly.\n\n---\n\n## Challenges This Flow Resolves\n\n- **Manual Conversion Hassles:** Removes the need for users or admins to convert videos manually.\n- **File Hosting Management:** Avoids building and maintaining own file hosting or server storage.\n- **Delay Handling:** Addresses API processing delays with a wait step for reliable downloads.\n- **Permission Complexity:** Simplifies file sharing with automatic public link permissions.\n- **Communication Overhead:** Eliminates the need to manually notify users about download availability.\n\n---\n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "099f6774-e487-4af0-8342-1e29a3afc04f",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1420,
        -300
      ],
      "parameters": {
        "height": 360,
        "content": "**n8n Form Trigger**  \n   This node captures user input from a web form, specifically the YouTube video URL and the user's email address, to initiate the workflow.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "e14ff1d2-bcb1-41c5-9468-d24f5d6bff00",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1140,
        -300
      ],
      "parameters": {
        "height": 360,
        "content": " **HTTP Request**  \n   It sends the submitted YouTube URL to an external API which processes the video and converts it into an MP3 format."
      },
      "typeVersion": 1
    },
    {
      "id": "20990e96-c260-454f-b0fa-df3db10473c1",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -860,
        -300
      ],
      "parameters": {
        "height": 360,
        "content": "**Wait**  \n   This node introduces a pause in the workflow, ensuring the external API has enough time to complete the MP3 conversion before the workflow continues."
      },
      "typeVersion": 1
    },
    {
      "id": "2a86a142-8406-4838-be19-221045b1493f",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        -300
      ],
      "parameters": {
        "width": 220,
        "height": 360,
        "content": "HTTP Downloader  \n   After waiting, this node fetches the resulting MP3 file or its metadata from the API, confirming the file is ready for the next steps."
      },
      "typeVersion": 1
    },
    {
      "id": "ebe64242-7e7b-4326-8071-3eda8a2a76e7",
      "name": "HTTP Downloader",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -500,
        -100
      ],
      "parameters": {
        "url": "={{ $json.url }}",
        "options": {
          "timeout": 10000000,
          "redirect": {
            "redirect": {
              "maxRedirects": 10
            }
          },
          "response": {
            "response": {
              "neverError": true,
              "fullResponse": true
            }
          },
          "lowercaseHeaders": false
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "user-agent",
              "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
            },
            {
              "name": "accept",
              "value": "*/*"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "0b392d74-7a70-40b7-9a4f-d9db3c3d93a1",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -300,
        -300
      ],
      "parameters": {
        "height": 360,
        "content": " **Google Drive**  \n   Uploads the retrieved MP3 file to Google Drive, providing cloud storage and easy file management."
      },
      "typeVersion": 1
    },
    {
      "id": "96c2211c-5625-477f-9b1a-538f89ce8d7a",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        -300
      ],
      "parameters": {
        "height": 360,
        "content": "**Google Drive set permissions (Share)**  \n   Modifies the file\u2019s permissions in Google Drive to allow anyone with the link to access or download the MP3 file."
      },
      "typeVersion": 1
    },
    {
      "id": "a33d47b6-1a2d-4edf-a426-6c56db6dd679",
      "name": "Google Drive set permissions",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        80,
        -100
      ],
      "parameters": {
        "fileId": "={{ $json.resource.id }}",
        "options": {},
        "operation": "share",
        "permissionsUi": {
          "permissionsValues": {
            "role": "reader",
            "type": "anyone"
          }
        },
        "authentication": "serviceAccount"
      },
      "credentials": {
        "googleApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "73104f9d-9eca-4a65-9594-31d0f83ef487",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        300,
        -300
      ],
      "parameters": {
        "height": 360,
        "content": "**Send Email**  \n   Sends an automated email to the user with the link to download their converted MP3 file, completing the user experience."
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "HTTP Downloader",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Email": {
      "main": [
        []
      ]
    },
    "Google Drive": {
      "main": [
        [
          {
            "node": "Google Drive set permissions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Downloader": {
      "main": [
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "n8n Form Trigger": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive set permissions": {
      "main": [
        [
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This n8n workflow allows users to convert any YouTube video to MP3 using the YouTube To MP3 Fast API on RapidAPI. It handles the entire process end-to-end — from form input to automatic delivery via email with cloud storage. 📝 User Form Input Users submit a YouTube URL and their…

Source: https://n8n.io/workflows/6318/ — original creator credit. Request a take-down →

More Social Media workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Social Media

Effortlessly convert Instagram videos to MP4 and automatically store them on Google Drive with a shareable download link sent to the user via email. This n8n workflow uses the Instagram Video Download

Form Trigger, Google Drive, HTTP Request +1
Social Media

This n8n template demonstrates how to generate subtitle overlays for YouTube videos and save the final files to Google Drive. It is useful when you want accessible video outputs without manually editi

@Videodb/N8N Nodes Videodb, HTTP Request, Form Trigger +1
Social Media

This automated workflow allows seamless conversion of YouTube videos to MP3, using the YouTube to MP3 Downloader API. The converted MP3 files are uploaded to Google Drive, and all relevant conversion

Form Trigger, HTTP Request, Google Drive +1
Social Media

Convert TikTok videos to MP4 , MP3 (without watermark), upload to Google Drive, and log conversion attempts into Google Sheets automatically — powered by TikTok Download Audio Video API.

Form Trigger, Google Sheets, Google Drive +1
Social Media

Easily convert Facebook videos into downloadable MP4 files using Facebook Video Downloader API. This n8n workflow automates fetching videos, downloading them, uploading them to Google Drive, and loggi

Form Trigger, Google Sheets, Google Drive +1