{
  "name": "Convert YouTube videos to MP4 & MP3 with RapidAPI and Google Sheets logging",
  "nodes": [
    {
      "id": "8107174c-5a28-4e08-be56-de75f9d85b01",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        300,
        0
      ]
    },
    {
      "id": "86a2db5e-5928-4459-ad69-846994ab98d0",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "a183fdce-c385-4c17-b237-a0ac731adfc0",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        560,
        0
      ]
    },
    {
      "id": "c7806bea-3eaa-464e-8939-cd707de01ba4",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        800,
        -20
      ]
    },
    {
      "id": "2c42910a-7192-41e4-91b6-921a42601bb9",
      "name": "Sticky Note",
      "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)"
      }
    },
    {
      "id": "1fb4d9b5-c883-489b-9f05-0b851cd7b5b2",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -40,
        -200
      ],
      "parameters": {
        "width": null,
        "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. "
      }
    },
    {
      "id": "a5d3d8eb-2202-4ccc-af42-aa51efd433aa",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        220,
        -200
      ],
      "parameters": {
        "width": null,
        "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. "
      }
    },
    {
      "id": "e572667f-8476-4aad-a72d-4ee99d191bcd",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        -200
      ],
      "parameters": {
        "width": null,
        "height": 380,
        "content": "### 3️⃣ **If Node**  \n- Checks if the API request was successful.  \n- Ensures only valid results are processed for logging.  \n"
      }
    },
    {
      "id": "acc65470-0188-4d4c-a798-7862e98657cf",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        740,
        -200
      ],
      "parameters": {
        "width": null,
        "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 refer"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}