Convertir des vidéos YouTube en MP4 et MP3 avec RapidAPI et Google Sheets pour la journalisation

Intermédiaire

Ceci est unFile Managementworkflow d'automatisation du domainecontenant 9 nœuds.Utilise principalement des nœuds comme If, FormTrigger, HttpRequest, GoogleSheets. Transformer des vidéos YouTube en MP4 et MP3 avec RapidAPI et Google Sheets pour la journalisation

Prérequis
  • Peut nécessiter les informations d'identification d'authentification de l'API cible
  • Informations d'identification Google Sheets API
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": "8107174c-5a28-4e08-be56-de75f9d85b01",
      "name": "Requête HTTP",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        300,
        0
      ],
      "parameters": {
        "url": "https://youtube-video-downloader-fast.p.rapidapi.com/download.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-video-downloader-fast.p.rapidapi.com"
            },
            {
              "name": "x-rapidapi-key",
              "value": "your key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "86a2db5e-5928-4459-ad69-846994ab98d0",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        0,
        0
      ],
      "webhookId": "97a426d1-4557-4d85-8c0f-e98f6590721c",
      "parameters": {
        "options": {},
        "formTitle": "YouTube To Mp4",
        "formFields": {
          "values": [
            {
              "fieldLabel": "URL",
              "requiredField": true
            }
          ]
        },
        "formDescription": "YouTube To Mp4"
      },
      "typeVersion": 2.2
    },
    {
      "id": "a183fdce-c385-4c17-b237-a0ac731adfc0",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        560,
        0
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "0380d6fd-b5ab-49ef-a5e1-5d34a138f883",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              },
              "leftValue": "={{ $json.success }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "c7806bea-3eaa-464e-8939-cd707de01ba4",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        800,
        -20
      ],
      "parameters": {
        "columns": {
          "value": {
            "Mp3": "={{ $json.medias[18].url }}",
            "Url": "={{ $json.url }}",
            "Mp4 720": "={{ $json.medias[3].url }}",
            "Mp4 1080": "={{ $json.medias[1].url }}",
            "Mp4 360p": "={{ $json.medias[0].url }}"
          },
          "schema": [
            {
              "id": "Url",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Mp4 360p",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Mp4 360p",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Mp4 720",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Mp4 720",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Mp4 1080",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Mp4 1080",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Mp3",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Mp3",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1BFR7Ce8FYarGF7kvfaQf6fBsu7hLxDbzzp_RL8DDlas",
          "cachedResultUrl": "",
          "cachedResultName": "YT to Mp4"
        },
        "authentication": "serviceAccount"
      },
      "credentials": {
        "googleApi": {
          "id": "Rt0RWApx8PL9t0RF",
          "name": "Google Docs account"
        }
      },
      "typeVersion": 4.6
    },
    {
      "id": "2c42910a-7192-41e4-91b6-921a42601bb9",
      "name": "Note adhésive",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -900,
        -480
      ],
      "parameters": {
        "width": 740,
        "height": 740,
        "content": "# 🎥 YouTube to MP4 Downloader \n\nConvert YouTube videos into MP4 and MP3 formats automatically using **[YouTube Video Downloader API](https://rapidapi.com/skdeveloper/api/youtube-video-downloader-fast)**.  \nThis workflow fetches video download links, extracts multiple quality options, and logs results in Google Sheets.  \nIt’s **fully customizable** – you can modify video qualities, add notifications, or integrate with different storage solutions.  \n\n---\n\n### 📝 **Node-by-Node Explanation**\n\n1. **On Form Submission** → Triggers when a user submits a YouTube video URL via a form. *(You can add more fields like format selection or email delivery.)*  \n2. **HTTP Request** → Sends a POST request to **YouTube Video Downloader API** to fetch downloadable links. *(You can switch the API endpoint or add extra headers easily.)*  \n3. **If Node** → Checks if the API response is successful before processing download links. *(You can add advanced conditions for custom validation.)*  \n4. **Google Sheets** → Appends video details including:  \n   - **Original URL**  \n   - **MP4 360p, 720p, 1080p links**  \n   - **MP3 link**  \n   *(You can add more resolutions or metadata fields like title, duration, size.)*  \n"
      },
      "typeVersion": 1
    },
    {
      "id": "1fb4d9b5-c883-489b-9f05-0b851cd7b5b2",
      "name": "Note adhésive1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -40,
        -200
      ],
      "parameters": {
        "height": 380,
        "content": "### 1️⃣ **On Form Submission**  \n- Displays a form where the user enters the YouTube video URL.  \n- Acts as the starting trigger for the workflow. "
      },
      "typeVersion": 1
    },
    {
      "id": "a5d3d8eb-2202-4ccc-af42-aa51efd433aa",
      "name": "Note adhésive2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        220,
        -200
      ],
      "parameters": {
        "height": 380,
        "content": "### 2️⃣ **HTTP Request**  \n- Sends the provided URL to **YouTube Video Downloader API** via RapidAPI.  \n- Retrieves different resolution MP4 and MP3 download links. "
      },
      "typeVersion": 1
    },
    {
      "id": "e572667f-8476-4aad-a72d-4ee99d191bcd",
      "name": "Note adhésive3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        -200
      ],
      "parameters": {
        "height": 380,
        "content": "### 3️⃣ **If Node**  \n- Checks if the API request was successful.  \n- Ensures only valid results are processed for logging.  \n"
      },
      "typeVersion": 1
    },
    {
      "id": "acc65470-0188-4d4c-a798-7862e98657cf",
      "name": "Note adhésive4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        740,
        -200
      ],
      "parameters": {
        "height": 380,
        "content": "### 4️⃣ **Google Sheets**  \n- Appends the original URL and all available download links (360p, 720p, 1080p, MP3) into a spreadsheet.  \n- Provides a structured history of all downloads for future reference.  \n"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "a183fdce-c385-4c17-b237-a0ac731adfc0": {
      "main": [
        [
          {
            "node": "c7806bea-3eaa-464e-8939-cd707de01ba4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "a183fdce-c385-4c17-b237-a0ac731adfc0",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "86a2db5e-5928-4459-ad69-846994ab98d0": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "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é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é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 Instagram vers Google Drive et envoi d'e-mails automatique
Télécharger des vidéos Instagram sur Google Drive et les envoyer automatiquement par e-mail
If
Email Send
Form Trigger
+
If
Email Send
Form Trigger
15 NœudsSk developer
Gestion de fichiers
Informations sur le workflow
Niveau de difficulté
Intermédiaire
Nombre de nœuds9
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