Instagram動画をGoogleドライブにダウンロードし、自動のにメールで送付する
中級
これはFile Management分野の自動化ワークフローで、15個のノードを含みます。主にIf, EmailSend, FormTrigger, GoogleDrive, HttpRequestなどのノードを使用。 Instagramの動画をGoogleドライブにダウンロードし、メールで自動送信
前提条件
- •Google Drive API認証情報
- •ターゲットAPIの認証情報が必要な場合あり
カテゴリー
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"meta": {
"instanceId": "60c025075753afcab9f803964b4caaca9402f435deb4efafbb8e3b93b54d8752"
},
"nodes": [
{
"id": "adba156d-f31e-482b-87ee-40800c553e21",
"name": "n8n フォームトリガー",
"type": "n8n-nodes-base.formTrigger",
"position": [
1120,
520
],
"webhookId": "5192b179-44d9-4ca6-9bb7-0111d481ee16",
"parameters": {
"options": {},
"formTitle": "Instagram To Mp4",
"formFields": {
"values": [
{
"fieldLabel": "url"
},
{
"fieldLabel": "email"
}
]
},
"formDescription": "Instagram To Mp4 Downloader"
},
"typeVersion": 2.2
},
{
"id": "1db2e5d0-5129-45e7-9a40-3deba9fcaed1",
"name": "付箋1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1040,
320
],
"parameters": {
"height": 360,
"content": "**n8n Form Trigger** \n This node captures user input from a web form, specifically the Instagram video URL and the user's email address, to initiate the workflow.\n"
},
"typeVersion": 1
},
{
"id": "1375ec94-2db9-408d-a259-3394b40b9dea",
"name": "付箋2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1420,
320
],
"parameters": {
"height": 360,
"content": " **API Request** \n It sends the submitted instagram To URL to an rapid API which processes the video and converts it into an MP4 format."
},
"typeVersion": 1
},
{
"id": "08f49617-2164-489b-8a0e-9d8e1c8d1dbb",
"name": "付箋3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1760,
300
],
"parameters": {
"height": 360,
"content": "**Check for API Error** \n This node validate error false if yes then will continue to next node else it will stop execution."
},
"typeVersion": 1
},
{
"id": "edbf05ef-28ce-4d63-80f9-c9553b083a96",
"name": "付箋4",
"type": "n8n-nodes-base.stickyNote",
"position": [
2060,
300
],
"parameters": {
"width": 220,
"height": 360,
"content": "**Download Instagram Video** \n After waiting, this node fetches the resulting MP4 file or its metadata from the API, confirming the file is ready for the next steps."
},
"typeVersion": 1
},
{
"id": "80799827-7c68-4956-b764-f7d9eb9b965d",
"name": "付箋5",
"type": "n8n-nodes-base.stickyNote",
"position": [
2320,
300
],
"parameters": {
"height": 360,
"content": " **Upload To Google Drive** \n Uploads the retrieved MP4 file to Google Drive, providing cloud storage and easy file management."
},
"typeVersion": 1
},
{
"id": "27997f6d-bb16-407e-b8e2-9e7998064684",
"name": "付箋6",
"type": "n8n-nodes-base.stickyNote",
"position": [
2620,
300
],
"parameters": {
"height": 360,
"content": "**Set permissions Google Drive (Share)** \n Modifies the file’s permissions in Google Drive to allow anyone with the link to access or download the MP4 file."
},
"typeVersion": 1
},
{
"id": "2f01c571-a958-4264-bf38-56f98e76bc02",
"name": "付箋7",
"type": "n8n-nodes-base.stickyNote",
"position": [
2920,
300
],
"parameters": {
"height": 360,
"content": "**Deliver Download Link to User** \n Sends an automated email to the user with the link to download their converted MP4 file, completing the user experience."
},
"typeVersion": 1
},
{
"id": "1f550fe8-9302-4b4b-801f-fb7ea316c921",
"name": "Google ドライブにアップロード",
"type": "n8n-nodes-base.googleDrive",
"position": [
2360,
500
],
"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": "01c9373c-405e-4184-9118-2d9369297ead",
"name": "Google ドライブの権限設定",
"type": "n8n-nodes-base.googleDrive",
"position": [
2680,
500
],
"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": "2b8b6c94-d557-45ad-931f-f9ddd76dd4fa",
"name": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
160,
160
],
"parameters": {
"width": 620,
"height": 2100,
"content": "# 📥 Instagram to MP4 – Download & Upload to Google Drive with Auto Email\n\n## ✨ Description\n\nThis workflow automates converting **Instagram videos to MP4**, storing them in **Google Drive**, and sending the user an email with the download link. Users just need to submit a form with the Instagram video URL and their email address — the rest is fully automated.\n\n---\n\n## 🧩 Workflow Breakdown (Node by Node)\n\n### 1. ## 🧾 n8n Form Trigger\n- **Node Name:** `n8n Form Trigger`\n- **Purpose:** Captures user input from a form.\n- **Fields:** \n - `url` – Instagram video URL\n - `email` – Email address to receive the MP4 link\n\n---\n\n### 2. ## 📡 Get MP4 Link from RapidAPI\n- **Node Name:** `API Request`\n- **Purpose:** Sends the Instagram video URL to RapidAPI's \"Instagram Video Downloader\" to get an MP4 download link.\n\n---\n\n### 3. ## ⚠️ Check for API Error\n- **Node Name:** `Check for API Error`\n- **Purpose:** Checks if the API response has an error.\n- **Condition:** Continues only if `error === false`.\n\n---\n\n### 4. ## 📥 Download Instagram Video\n- **Node Name:** `Download Instagram Video`\n- **Purpose:** Downloads the MP4 video from the link provided by the API.\n- **Headers:** Sets a browser-like `User-Agent` for successful fetch.\n\n---\n\n### 5. ## ☁️ Upload to Google Drive\n- **Node Name:** `Upload To Google Drive`\n- **Purpose:** Uploads the MP4 file to your Google Drive using a connected Service Account.\n\n---\n\n### 6. ## 🔗 Set Google Drive Sharing Permissions\n- **Node Name:** `Set permissions Google Drive`\n- **Purpose:** Makes the uploaded MP4 file shareable by anyone with the link.\n\n---\n\n### 7. ## 📧 Deliver Download Link to User\n- **Node Name:** `Deliver Download Link to User`\n- **Purpose:** Sends the user an email with the public link to the MP4 video.\n- **To:** `={{ $json.email }}`\n- **Message:** Includes `{{ $json.webViewLink }}` for downloading the file.\n\n---\n\n## ✅ Key Features\n\n- Converts **Instagram videos to MP4** automatically \n- Uploads files to **Google Drive** \n- Sends download link via **email** \n- Simple **form-based user input**\n\n---\n\n## 🔐 Requirements\n\n- RapidAPI account + API key for Instagram Video Downloader\n- Google Cloud Service Account with Drive API access\n- SMTP or Gmail credentials for email delivery\n- n8n instance (self-hosted or cloud)\n\n"
},
"typeVersion": 1
},
{
"id": "cf0d989d-6fd3-4f56-b141-ab9895018d63",
"name": "API リクエスト",
"type": "n8n-nodes-base.httpRequest",
"position": [
1480,
520
],
"parameters": {
"url": "https://instagram-video-downloader13.p.rapidapi.com/index.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": "instagram-video-downloader13.p.rapidapi.com"
},
{
"name": "x-rapidapi-key",
"value": "YOUR_API_KEY"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "57fe215b-33c8-4a93-81f0-7d761c6c7bb9",
"name": "API エラー確認",
"type": "n8n-nodes-base.if",
"position": [
1800,
520
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "71b56363-9bc8-4516-801d-26dea43f61f3",
"operator": {
"type": "boolean",
"operation": "false",
"singleValue": true
},
"leftValue": "={{ $json.error }}",
"rightValue": ""
}
]
}
},
"typeVersion": 2.2
},
{
"id": "5058de96-27e8-469c-9e1c-4c8119bd77f1",
"name": "Instagram 動画をダウンロード",
"type": "n8n-nodes-base.httpRequest",
"position": [
2100,
500
],
"parameters": {
"url": "={{ $json.medias[0].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": "9233e6c3-b6ef-44dc-a748-fd14cd1406d9",
"name": "ダウンロードリンクをユーザーに送信",
"type": "n8n-nodes-base.emailSend",
"position": [
2980,
500
],
"parameters": {
"text": "Your download link: {{ $json.webViewLink }}",
"options": {},
"subject": "🎵 Your Instagram MP4 is ready!",
"toEmail": "={{ $json.email }}",
"fromEmail": "your@email.com"
},
"credentials": {
"smtp": {
"id": "H0f4Gja9ECFRA34L",
"name": "SMTP account 2"
}
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"cf0d989d-6fd3-4f56-b141-ab9895018d63": {
"main": [
[
{
"node": "57fe215b-33c8-4a93-81f0-7d761c6c7bb9",
"type": "main",
"index": 0
}
]
]
},
"adba156d-f31e-482b-87ee-40800c553e21": {
"main": [
[
{
"node": "cf0d989d-6fd3-4f56-b141-ab9895018d63",
"type": "main",
"index": 0
}
]
]
},
"57fe215b-33c8-4a93-81f0-7d761c6c7bb9": {
"main": [
[
{
"node": "5058de96-27e8-469c-9e1c-4c8119bd77f1",
"type": "main",
"index": 0
}
]
]
},
"1f550fe8-9302-4b4b-801f-fb7ea316c921": {
"main": [
[
{
"node": "01c9373c-405e-4184-9118-2d9369297ead",
"type": "main",
"index": 0
}
]
]
},
"5058de96-27e8-469c-9e1c-4c8119bd77f1": {
"main": [
[
{
"node": "1f550fe8-9302-4b4b-801f-fb7ea316c921",
"type": "main",
"index": 0
}
]
]
},
"01c9373c-405e-4184-9118-2d9369297ead": {
"main": [
[
{
"node": "9233e6c3-b6ef-44dc-a748-fd14cd1406d9",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - ファイル管理
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
Bilibili動画ダウンローダー(Google Driveアップロード・アイメール通知対応)
Bilibili 動画ダウンローダー(Google Drive アップロードとメール通知に対応)
If
Wait
Email Send
+
If
Wait
Email Send
19 ノードSk developer
ファイル管理
Facebook動画をGoogleドライブにダウンロードし、自動のに表に記録する
Facebookの動画をGoogleドライブにダウンロードし、テーブルの自動記録にダウンロードログを記録
If
Wait
Form Trigger
+
If
Wait
Form Trigger
19 ノードSk developer
ファイル管理
RapidAPI統合を通じてSlideshareプレゼンテーションをGoogleドライブにダウンロード
RapidAPI統合でSlideshareのプレゼンテーションをGoogleデリカレントダウンロード
If
Wait
Form Trigger
+
If
Wait
Form Trigger
17 ノードSk developer
ファイル管理
Threadsの動画をダウンロードし、結果をGoogleスプレッドシートに記録
Threadsの動画をダウンロードして結果をGoogleスプレッドシートに記録
If
Wait
Form Trigger
+
If
Wait
Form Trigger
19 ノードSk developer
ファイル管理
RapidAPI統合による任意のプラットフォームの動画をGoogleドライブにダウンロード
RapidAPI統合を通じて、任意のプラットフォームの動画をGoogleドライブにダウンロード
If
Wait
Form Trigger
+
If
Wait
Form Trigger
17 ノードSk developer
ファイル管理
IMDBビデオ自動ダウンローダー(Google Driveアップロード&メール通知付き)
IMDB動画自動ダウンロードツール(Google Driveアップロード+メールアラート付き)
If
Wait
Email Send
+
If
Wait
Email Send
19 ノードSk developer
コンテンツ作成