Convertir des pistes Spotify en MP3 et les partager via un formulaire Google Drive

Intermédiaire

Ceci est unFile Managementworkflow d'automatisation du domainecontenant 13 nœuds.Utilise principalement des nœuds comme Wait, FormTrigger, GoogleDrive, HttpRequest. Convertir des pistes Spotify en MP3 et les partager via des formulaires Google Drive

Prérequis
  • Informations d'identification Google Drive API
  • Peut nécessiter les informations d'identification d'authentification de l'API cible
Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "meta": {
    "instanceId": "60c025075753afcab9f803964b4caaca9402f435deb4efafbb8e3b93b54d8752",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "c2aaf114-004f-4890-8628-842884f24d01",
      "name": "À la soumission du formulaire",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        0,
        0
      ],
      "webhookId": "a1068829-54c0-457c-9e4e-57f72653c9e1",
      "parameters": {
        "options": {},
        "formTitle": "Spotify To Mp3",
        "formFields": {
          "values": [
            {
              "fieldLabel": "url"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "9980b312-847b-4802-ae16-f40da67dd287",
      "name": "Attente",
      "type": "n8n-nodes-base.wait",
      "position": [
        600,
        -140
      ],
      "webhookId": "c6fadb96-472b-45b4-ab72-de9a067acc17",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "f611935e-4893-4cb7-bda3-8cd9b21d9ffa",
      "name": "Spotify Rapid Api",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        260,
        0
      ],
      "parameters": {
        "url": "https://spotify-downloader-mp3.p.rapidapi.com/spotify-downloader.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": "spotify-downloader-mp3.p.rapidapi.com"
            },
            {
              "name": "x-rapidapi-key",
              "value": "your key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "3cafc718-1352-4cc3-b0ee-af607fe88602",
      "name": "Téléchargeur",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1020,
        -80
      ],
      "parameters": {
        "url": "={{ $json.download_url }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "a9fa6952-377a-49c5-b09f-cb0e35fced78",
      "name": "Upload Mp3 To Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1540,
        -300
      ],
      "parameters": {
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "root",
          "cachedResultName": "/ (Root folder)"
        },
        "authentication": "serviceAccount"
      },
      "credentials": {
        "googleApi": {
          "id": "qUtlCnYpk7bXXaYp",
          "name": "Google Sheets account 3"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "3994a8b4-d6c7-41b0-a2ed-60f50e08f947",
      "name": "Mettre à jour les permissions",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2000,
        -280
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "id",
          "value": ""
        },
        "options": {},
        "operation": "share",
        "permissionsUi": {
          "permissionsValues": {
            "role": "writer",
            "type": "anyone"
          }
        },
        "authentication": "serviceAccount"
      },
      "credentials": {
        "googleApi": {
          "id": "qUtlCnYpk7bXXaYp",
          "name": "Google Sheets account 3"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "143ddac5-033b-4438-8590-310dc47916ee",
      "name": "Note autocollante",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1200,
        -480
      ],
      "parameters": {
        "width": 880,
        "height": 1340,
        "content": "# 🎵 Spotify to MP3 → Google Drive\nThis n8n workflow automates the process of converting a Spotify track URL to an MP3 file, downloading it, uploading it to Google Drive, and making it publicly shareable.\n\n---\n\n## 🧩 Flow Overview\n\nForm Submission → Spotify RapidAPI → Wait → Downloader → Upload to Google Drive → Update Permission\n\n---\n\n## 🔍 Node Descriptions\n\n1. **On form submission (`formTrigger`)**  \n   Accepts a Spotify track URL from the user through a form interface.\n\n2. **Spotify Rapid Api (`httpRequest`)**  \n   Sends the provided Spotify URL to RapidAPI to generate a downloadable MP3 file link.\n\n3. **Wait (`wait`)**  \n   Adds a short pause in the workflow to ensure the MP3 is ready for download.\n\n4. **Downloader (`httpRequest`)**  \n   Uses the `download_url` from RapidAPI to download the MP3 file.\n\n5. **Upload Mp3 To Google Drive (`googleDrive`)**  \n   Uploads the MP3 file to your Google Drive using a service account.\n\n6. **Update Permission (`googleDrive`)**  \n   Makes the uploaded MP3 file public by setting its sharing permissions to \"anyone can write\" (can be changed to \"read\").\n\n---\n\n## ✅ Benefits\n\n- Automatically converts Spotify URLs to MP3 files.\n- Eliminates manual download and upload steps.\n- Files are uploaded directly to your Google Drive.\n- Generated MP3s are instantly shareable.\n- Can be customized or reused for other media platforms or storage services.\n\n---\n\n## 🛠️ Problems Solved\n\n- No need for manual conversion tools or sites.\n- No need to manually download and organize MP3s.\n- Removes the friction of sharing MP3s with others.\n- Reduces human error and saves time.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "8f98a48f-8a93-49ae-a2ac-f9d47e19c6f4",
      "name": "Note autocollante1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -120,
        -180
      ],
      "parameters": {
        "width": 300,
        "height": 320,
        "content": "## 1. On form submission (`formTrigger`)\n- Purpose: Collects the Spotify URL from a user through a form.\n- Details: A simple web form is presented with one field labeled `url`."
      },
      "typeVersion": 1
    },
    {
      "id": "bf986036-50b2-44f2-90f6-6447309b85e7",
      "name": "Note autocollante2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        -360
      ],
      "parameters": {
        "width": 280,
        "height": 500,
        "content": "## 2. Spotify Rapid Api (`httpRequest`)\n- Purpose: Sends the Spotify URL to a RapidAPI endpoint to generate a downloadable MP3.\n- Method: POST\n- Headers:\n  - `x-rapidapi-host`: spotify-downloader-mp3.p.rapidapi.com\n  - `x-rapidapi-key`: your-api-key\n- Body: Sends the form URL as a `multipart/form-data` parameter."
      },
      "typeVersion": 1
    },
    {
      "id": "27b15fcc-0534-461f-94bc-d94d40432b1f",
      "name": "Note autocollante3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        520,
        -340
      ],
      "parameters": {
        "width": 280,
        "height": 320,
        "content": "## 3. Wait (`wait`)\n- Purpose: Adds a delay before attempting to download the MP3.\n- Why: Ensures that the API has had enough time to process and generate the file.\n- Note: You can configure wait duration as needed or remove it if unnecessary.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "1304d8d5-5316-4705-86a4-accd546cd31f",
      "name": "Note autocollante4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        -300
      ],
      "parameters": {
        "width": 320,
        "height": 340,
        "content": "## 4. Downloader (`httpRequest`)\n- Purpose: Downloads the MP3 file using the `download_url` returned from the previous node.\n- Method: GET\n- URL: Dynamically populated from `={{ $json.download_url }}`\n"
      },
      "typeVersion": 1
    },
    {
      "id": "c8837817-b03f-4235-a6fa-3742a3e80f41",
      "name": "Note autocollante5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1420,
        -520
      ],
      "parameters": {
        "width": 360,
        "height": 400,
        "content": "## 5. Upload Mp3 To Google Drive (`googleDrive`)\n- Purpose: Uploads the downloaded MP3 file to a specific Google Drive folder.\n- Authentication: Uses a service account.\n- Folder: Uploads to root or specified folder of the linked Drive.\n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "3f989fbd-1929-4b37-9f85-5bd4c443720a",
      "name": "Note autocollante6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1900,
        -540
      ],
      "parameters": {
        "width": 320,
        "height": 440,
        "content": "## 6. Update Permission (`googleDrive`)\n- Purpose: Makes the uploaded file publicly accessible.\n- Role: `writer` (you can change this to `reader` for safety).\n- Type: `anyone` (no login required to access the file).\n- Benefit: Instantly shareable download link after upload."
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "9980b312-847b-4802-ae16-f40da67dd287": {
      "main": [
        [
          {
            "node": "3cafc718-1352-4cc3-b0ee-af607fe88602",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3cafc718-1352-4cc3-b0ee-af607fe88602": {
      "main": [
        [
          {
            "node": "a9fa6952-377a-49c5-b09f-cb0e35fced78",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f611935e-4893-4cb7-bda3-8cd9b21d9ffa": {
      "main": [
        [
          {
            "node": "9980b312-847b-4802-ae16-f40da67dd287",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c2aaf114-004f-4890-8628-842884f24d01": {
      "main": [
        [
          {
            "node": "f611935e-4893-4cb7-bda3-8cd9b21d9ffa",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a9fa6952-377a-49c5-b09f-cb0e35fced78": {
      "main": [
        [
          {
            "node": "3994a8b4-d6c7-41b0-a2ed-60f50e08f947",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Intermédiaire - Gestion de fichiers

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Workflows recommandés

Téléchargeur de vidéos Bilibili avec téléchargement sur Google Drive et notification par e-mail
Téléchargeur de vidéos Bilibili, avec téléchargement sur Google Drive et notifications par e-mail
If
Wait
Email Send
+
If
Wait
Email Send
19 NœudsSk developer
Gestion de fichiers
Téléchargement de vidéos Facebook vers Google Drive et enregistrement automatique dans une feuille de calcul
Télécharger des vidéos Facebook sur Google Drive et enregistrer automatiquement les logs de téléchargement dans une feuille de données
If
Wait
Form Trigger
+
If
Wait
Form Trigger
19 NœudsSk developer
Gestion de fichiers
Téléchargement de présentations Slideshare vers Google Drive via l'intégration RapidAPI
Télécharger des présentations Slideshare sur Google Drive via l'intégration RapidAPI
If
Wait
Form Trigger
+
If
Wait
Form Trigger
17 NœudsSk developer
Gestion de fichiers
Téléchargement de vidéos Threads et enregistrement des résultats dans Google Sheets
Télécharger des vidéos Threads et enregistrer les résultats dans Google Sheets
If
Wait
Form Trigger
+
If
Wait
Form Trigger
19 NœudsSk developer
Gestion de fichiers
Téléchargement de vidéos de n'importe quelle plateforme vers Google Drive via l'intégration RapidAPI
Télécharger des vidéos de n'importe quelle plateforme sur Google Drive via l'intégration RapidAPI
If
Wait
Form Trigger
+
If
Wait
Form Trigger
17 NœudsSk developer
Gestion de fichiers
Téléchargement en masse de vidéos TikTok sans filigrane vers Google Drive et suivi
Téléchargement de masse de vidéos TikTok sans filigrane vers Google Drive avec suivi
Wait
Google Drive
Http Request
+
Wait
Google Drive
Http Request
21 NœudsSk developer
Gestion de fichiers
Informations sur le workflow
Niveau de difficulté
Intermédiaire
Nombre de nœuds13
Catégorie1
Types de nœuds5
Description de la difficulté

Adapté aux utilisateurs expérimentés, avec des workflows de complexité moyenne contenant 6-15 nœuds

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34