n8n API を使ってお使いの n8n バージョンを最新版と比較

中級

これはDevOps, Multimodal AI分野の自動化ワークフローで、9個のノードを含みます。主にIf, N8n, Code, Html, HttpRequestなどのノードを使用。 n8n API を使用してお使いの n8n バージョンを最新版と比較

前提条件
  • ターゲットAPIの認証情報が必要な場合あり
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "meta": {
    "instanceId": "ad0113c344ee237399e44e9f11798b05baeb83a6196d514a9ae9d2ad71c3b5c9"
  },
  "nodes": [
    {
      "id": "e70dcb2b-184f-4eb1-a9e3-69b0c583d411",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2128,
        6544
      ],
      "parameters": {
        "color": 7,
        "width": 1936,
        "height": 928,
        "content": "# 🔑 Test your n8n Version with HTTP Request\n\nThis workflow compares your **current n8n instance version** with the **latest release**.  \nTo make it work, you need to set up your **n8n API credentials**.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "588b400f-76c4-40fa-a488-fa63cabb783e",
      "name": "付箋23",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1680,
        6544
      ],
      "parameters": {
        "width": 400,
        "height": 928,
        "content": "\n\n## ⚙️ Setup Instructions\n\n### 1️⃣ Set Up n8n API Credentials\n1. In your **n8n instance** → go to **Admin Panel → API**  \n2. Copy your **API Key**  \n3. In **n8n → Credentials → New → n8n API**  \n   - Paste the API Key  \n   - Save it  \n4. Attach this credential to the **n8n node** (`Set up your n8n credentials`)  \n\n---\n\n## ✅ How It Works\n- **Get Most Recent n8n Version** → Fetches the latest release info from docs.n8n.io  \n- **Extract Version + Clean Value** → Parses the version string  \n- **Get your n8n version** → Reads the version of your own instance via API  \n- **Compare** → Checks if your instance is up-to-date  \n\n---\n\n## 📬 Contact\nNeed help setting up API credentials or running this workflow?\n\n- 📧 **robert@ynteractive.com**  \n- 🔗 **[Robert Breen](https://www.linkedin.com/in/robert-breen-29429625/)**  \n- 🌐 **[ynteractive.com](https://ynteractive.com)**\n"
      },
      "typeVersion": 1
    },
    {
      "id": "9b890a79-1052-4bcc-a2d3-500e85ddb511",
      "name": "n8n 認証情報を設定",
      "type": "n8n-nodes-base.n8n",
      "disabled": true,
      "position": [
        2432,
        7264
      ],
      "parameters": {
        "options": {},
        "resource": "execution",
        "operation": "get",
        "requestOptions": {}
      },
      "credentials": {
        "n8nApi": {
          "id": "fmmFU3Ale1HZvMIL",
          "name": "n8n account 2"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "3487da8d-0334-4a25-9fb2-c025677557d6",
      "name": "最新の n8n バージョンを取得",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2656,
        6832
      ],
      "parameters": {
        "url": "https://docs.n8n.io/release-notes/",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "4b4ae554-2376-4b2a-9a99-4815e532666d",
      "name": "あなたの n8n バージョンを取得",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3440,
        6992
      ],
      "parameters": {
        "url": "https://yourn8nurl.app.n8n.cloud/rest/settings",
        "options": {},
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "n8nApi"
      },
      "credentials": {
        "n8nApi": {
          "id": "fmmFU3Ale1HZvMIL",
          "name": "n8n account 2"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "71face2b-d555-41e9-ad80-0128d6b56278",
      "name": "バージョンを抽出",
      "type": "n8n-nodes-base.html",
      "position": [
        2944,
        7120
      ],
      "parameters": {
        "options": {},
        "operation": "extractHtmlContent",
        "extractionValues": {
          "values": [
            {
              "key": "versions",
              "cssSelector": "h2:contains(\"n8n@\")"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "2b506d24-badc-4af6-8d40-27a7ec3336e8",
      "name": "値をクリーンアップ",
      "type": "n8n-nodes-base.code",
      "position": [
        3184,
        6816
      ],
      "parameters": {
        "jsCode": "// Strip \"n8n@\" prefix and trailing \"#\"\nconst raw = $json.versions || '';\nconst clean = raw.replace(/^n8n@/, '').replace(/#$/, '');\nreturn [{ version: clean }];\n"
      },
      "typeVersion": 2
    },
    {
      "id": "4c7d9901-72b8-4e22-836e-525c24400729",
      "name": "バージョンをテスト",
      "type": "n8n-nodes-base.if",
      "position": [
        3696,
        6832
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "060eee63-3c1d-485f-bbcd-4d8b59579771",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.data.versionCli }}",
              "rightValue": "={{ $('Clean Value').item.json.version }}"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "eec0952b-c17b-4961-85d3-92146b64d488",
      "name": "付箋55",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2336,
        7008
      ],
      "parameters": {
        "color": 3,
        "width": 288,
        "height": 448,
        "content": "### 1️⃣ Set Up n8n API Credentials\n1. In your **n8n instance** → go to **Admin Panel → API**  \n2. Copy your **API Key**  \n3. In **n8n → Credentials → New → n8n API**  \n   - Paste the API Key  \n   - Save it  \n4. Attach this credential to the **n8n node** (`Set up your n8n credentials`)  \n"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "2b506d24-badc-4af6-8d40-27a7ec3336e8": {
      "main": [
        [
          {
            "node": "4b4ae554-2376-4b2a-9a99-4815e532666d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "71face2b-d555-41e9-ad80-0128d6b56278": {
      "main": [
        [
          {
            "node": "2b506d24-badc-4af6-8d40-27a7ec3336e8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4b4ae554-2376-4b2a-9a99-4815e532666d": {
      "main": [
        [
          {
            "node": "4c7d9901-72b8-4e22-836e-525c24400729",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3487da8d-0334-4a25-9fb2-c025677557d6": {
      "main": [
        [
          {
            "node": "71face2b-d555-41e9-ad80-0128d6b56278",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

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

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

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

中級 - DevOps, マルチモーダルAI

有料ですか?

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

ワークフロー情報
難易度
中級
ノード数9
カテゴリー2
ノードタイプ6
難易度説明

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

作成者
Robert Breen

Robert Breen

@rbreen

Professional services consultant with over 10 years of experience solving complex business problems across industries. I specialize in n8n and process automation—designing custom workflows that integrate tools like Google Calendar, Airtable, GPT, and internal systems. Whether you need to automate scheduling, sync data, or streamline operations, I build solutions that save time and drive results.

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34