N
n8n Store
Workflow Market
YouTube to MP3 Converter with RapidAPI - Upload to Drive & Email Link

YouTube to MP3 Converter with RapidAPI - Upload to Drive & Email Link

by skdeveloper0 views

描述

分类

⚙️ Automation

使用的节点

n8n-nodes-base.waitn8n-nodes-base.emailSendn8n-nodes-base.stickyNoten8n-nodes-base.stickyNoten8n-nodes-base.stickyNoten8n-nodes-base.stickyNoten8n-nodes-base.stickyNoten8n-nodes-base.stickyNoten8n-nodes-base.stickyNoten8n-nodes-base.stickyNote
价格免费
浏览量0
最后更新11/28/2025
workflow.json
{
  "meta": {
    "instanceId": "60c025075753afcab9f803964b4caaca9402f435deb4efafbb8e3b93b54d8752",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "c1c7f52b-77b3-4936-9579-7601eb9593b0",
      "name": "n8n Form Trigger",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1340,
        -100
      ],
      "webhookId": "5192b179-44d9-4ca6-9bb7-0111d481ee16",
      "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
      ],
      "webhookId": "bc4a8c78-542f-48e6-8174-78fb36ffb0aa",
      "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": {
          "id": "qUtlCnYpk7bXXaYp",
          "name": "Google Sheets account 3"
        }
      },
      "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": "🎵 Your MP3 is ready!",
        "toEmail": "={{ $json.email }}",
        "fromEmail": "[email protected]"
      },
      "credentials": {
        "smtp": {
          "id": "H0f4Gja9ECFRA34L",
          "name": "SMTP account 2"
        }
      },
      "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’s 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": {
          "id": "qUtlCnYpk7bXXaYp",
          "name": "Google Sheets account 3"
        }
      },
      "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
    }
  ],
  "pinData": {},
  "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
          }
        ]
      ]
    }
  }
}

相关工作流