RapidAPI を使って YouTube 動画 メタデータ を抽出して Google Docs に保存

中級

これはMiscellaneous, Multimodal AI分野の自動化ワークフローで、9個のノードを含みます。主にCode, GoogleDocs, FormTrigger, HttpRequestなどのノードを使用。 RapidAPIを使ってYouTube動画メタデータを抽出してGoogle Docsに保存

前提条件
  • ターゲットAPIの認証情報が必要な場合あり
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "meta": {
    "instanceId": "60c025075753afcab9f803964b4caaca9402f435deb4efafbb8e3b93b54d8752"
  },
  "nodes": [
    {
      "id": "2d304223-ef2d-4e03-814d-cac411106f6b",
      "name": "フォーム送信時",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -160,
        220
      ],
      "webhookId": "2edc6cbb-9fb2-47c9-8387-8ff412c7838a",
      "parameters": {
        "options": {},
        "formTitle": "YouTube Metadata ",
        "formFields": {
          "values": [
            {
              "fieldLabel": "url",
              "requiredField": true
            }
          ]
        },
        "formDescription": "YouTube Metadata"
      },
      "typeVersion": 2.2
    },
    {
      "id": "3ddda565-879e-4685-bde6-e3f1dc62df2e",
      "name": "YouTube Metadata",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        60,
        220
      ],
      "parameters": {
        "url": "https://youtube-metadata1.p.rapidapi.com/video_metadata.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-metadata1.p.rapidapi.com"
            },
            {
              "name": "x-rapidapi-key",
              "value": "your key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "9ddd4dd3-3c23-471a-aac9-9222deb584a5",
      "name": "再フォーマット",
      "type": "n8n-nodes-base.code",
      "position": [
        300,
        220
      ],
      "parameters": {
        "jsCode": "const itemsArray = $input.first().json.items;\n\n// Safely access the first video item\nconst video = itemsArray[0];\nconst {\n  id: videoId,\n  snippet,\n  contentDetails,\n  statistics,\n} = video;\n\n// Format tags as a comma-separated string\nconst tags = snippet.tags && snippet.tags.length > 0\n  ? snippet.tags.join(', ')\n  : 'No tags available';\n\n// Format published date\nconst publishedDate = new Date(snippet.publishedAt).toLocaleDateString();\n\n// Format duration (optional: still in ISO 8601 like PT4M16S)\nconst duration = contentDetails.duration;\n\n// Prepare formatted content\nconst formatted = `\n🎬 **${snippet.title}**\n\n🧾 **Description:**\n${snippet.description}\n\n📺 **Channel:** ${snippet.channelTitle}\n📅 **Published At:** ${publishedDate}\n\n📊 **Stats:**\n- Views: ${statistics.viewCount}\n- Likes: ${statistics.likeCount}\n- Comments: ${statistics.commentCount}\n\n🕒 **Duration:** ${duration}\n\n🏷️ **Tags:** ${tags}\n\n🔗 **Video URL:** https://www.youtube.com/watch?v=${videoId}\n🖼️ **Thumbnail:** ${snippet.thumbnails.high.url}\n`;\n\n// Return formatted string for use in Google Docs\nreturn [\n  {\n    json: {\n      docContent: formatted.trim()\n    }\n  }\n];\n"
      },
      "typeVersion": 2
    },
    {
      "id": "0589461b-0419-4798-9f69-851d7d9fffb3",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        -40
      ],
      "parameters": {
        "width": 520,
        "height": 500,
        "content": " \nAutomated YouTube Video Metadata Extraction and Documentation Workflow\n\n**Description:**  \nEasily extract detailed YouTube video metadata from any URL and automatically format and save it to Google Docs for streamlined documentation and analysis.\n\n- **On form submission:**  \n  Triggers the workflow when a user submits a YouTube URL via the form.\n\n- **YouTube Metadata (HTTP Request):**  \n  Sends the submitted URL to the RapidAPI YouTube Metadata service to fetch detailed video data.\n\n- **Reformat (Code):**  \n  Extracts and formats key video details like title, description, stats, and thumbnails into a clean, readable string.\n\n- **Append Data in Google Docs:**  \n  Inserts the formatted video metadata into a specified Google Docs document for storage or further use.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "6d94b502-69ea-41a5-a4df-22fe20ee812b",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -260,
        120
      ],
      "parameters": {
        "height": 240,
        "content": "**On form submission:**  \n  Triggers the workflow when a user submits a YouTube URL via the form."
      },
      "typeVersion": 1
    },
    {
      "id": "656ff1b1-f872-48d8-80c8-dd8df82d1ebc",
      "name": "付箋2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        120
      ],
      "parameters": {
        "height": 240,
        "content": " **YouTube Metadata (HTTP Request):**  \n  Sends the submitted URL to the RapidAPI YouTube Metadata service to fetch detailed video data.\n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "73b16e7c-f9ac-46e7-83dc-902ebbd74158",
      "name": "付箋3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        260,
        120
      ],
      "parameters": {
        "height": 240,
        "content": "**Reformat (Code):**  \n  Extracts and formats key video details like title, description, stats, and thumbnails into a clean, readable string.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "bccb9237-7414-4976-9b60-5504c4d3cc7d",
      "name": "付箋4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        520,
        120
      ],
      "parameters": {
        "height": 240,
        "content": "**Append Data In Google Sheet:**  \n  Append Data in Google sheet for the future usages.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "ee750cf2-1839-469d-8a84-dff68f280535",
      "name": "Google Docsへのデータ追加",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        560,
        220
      ],
      "parameters": {
        "actionsUi": {
          "actionFields": [
            {
              "text": "={{ $json.docContent }}",
              "action": "insert"
            }
          ]
        },
        "operation": "update",
        "authentication": "serviceAccount"
      },
      "credentials": {
        "googleApi": {
          "id": "Rt0RWApx8PL9t0RF",
          "name": "Google Docs account"
        }
      },
      "typeVersion": 2
    }
  ],
  "pinData": {},
  "connections": {
    "9ddd4dd3-3c23-471a-aac9-9222deb584a5": {
      "main": [
        [
          {
            "node": "ee750cf2-1839-469d-8a84-dff68f280535",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3ddda565-879e-4685-bde6-e3f1dc62df2e": {
      "main": [
        [
          {
            "node": "9ddd4dd3-3c23-471a-aac9-9222deb584a5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2d304223-ef2d-4e03-814d-cac411106f6b": {
      "main": [
        [
          {
            "node": "3ddda565-879e-4685-bde6-e3f1dc62df2e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

中級 - その他, マルチモーダルAI

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

関連ワークフロー

ランディングページアナライザーAIを使ってウェブページを分析し、Google Docsレポートを生成
ラニリングページアナライザAIを使ってウェブページを分析し、Google Docsのレポートを生成
Code
Google Docs
Form Trigger
+
Code
Google Docs
Form Trigger
9 ノードEvoort Solutions
AI要約
RapidAPIを使ってYouTubeチャンネル メタデータをGoogle Docsに抽出
RapidAPIを使ってYouTubeチャネルメタデータをGoogle Docsに抽出
Code
Google Docs
Form Trigger
+
Code
Google Docs
Form Trigger
9 ノードEvoort Solutions
市場調査
GST Insights API および Google Docs を使用して GST レポートを自動生成
GST Insights API および Google Docs を使用して自動のな GST レポートを生成する
Code
Google Docs
Form Trigger
+
Code
Google Docs
Form Trigger
9 ノードEvoort Solutions
文書抽出
RapidAPI SEO Analyzer および Google Docs を使用して SEO レポートを自動生成
RapidAPI SEO 分析器および Google Docs を使用して自動のな SEO レポートを生成する
Code
Google Docs
Form Trigger
+
Code
Google Docs
Form Trigger
9 ノードEvoort Solutions
AI要約
TikTokの動画を署名なしでGoogle Driveにダウンロードし、テーブルに自動記録
TikTokの動画を無 watermark 版でGoogleドライブにダウンロードし、自動のにテーブルにログを記録
If
Wait
Form Trigger
+
If
Wait
Form Trigger
19 ノードEvoort Solutions
コンテンツ作成
Instagram動画をフォームトリガーでGoogle Driveにダウンロードし、テーブルに記録
Instagram動画をフォームトリガーでGoogle Driveへダウンロードし、そしてテーブルへ記録
If
Wait
Form Trigger
+
If
Wait
Form Trigger
19 ノードEvoort Solutions
その他
ワークフロー情報
難易度
中級
ノード数9
カテゴリー2
ノードタイプ5
難易度説明

経験者向け、6-15ノードの中程度の複雑さのワークフロー

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34