Webhook経由でランダムな犬の画像を取得

中級

これはOther分野の自動化ワークフローで、6個のノードを含みます。主にWebhook, HttpRequest, RespondToWebhookなどのノードを使用。 Dog CEO API Webhookを使用してランダムな犬の画像を取得

前提条件
  • HTTP Webhookエンドポイント(n8nが自動生成)
  • ターゲットAPIの認証情報が必要な場合あり

カテゴリー

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "nRx93htY4oXoKnTw",
  "meta": {
    "instanceId": "1777696fb9fddfee653e70940936c2b1e28ba1f1bde53b7182fbd6eb01988706"
  },
  "name": "Random Dog Image via Webhook",
  "tags": [],
  "nodes": [
    {
      "id": "a50f8603-069f-432a-8616-7dfb65be8ff6",
      "name": "Webhookトリガーの注記",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        740,
        460
      ],
      "parameters": {
        "height": 320,
        "content": "This node listens for incoming POST requests. It acts as the trigger for the workflow. No specific data is needed in the webhook body for this workflow, as it fetches a random image."
      },
      "typeVersion": 1
    },
    {
      "id": "8c233238-3a56-40ac-bb24-a185c88edfb3",
      "name": "犬画像取得の注記",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        460
      ],
      "parameters": {
        "color": 2,
        "width": 280,
        "height": 340,
        "content": "This node makes an HTTP GET request to the Dog CEO API (dog.ceo/api/breeds/image/random) to fetch a random dog image URL. The API typically returns a JSON object with a 'message' property containing the image URL."
      },
      "typeVersion": 1
    },
    {
      "id": "dc972e35-6c41-4507-a533-3d0c4f627182",
      "name": "Webhookレスポンスの注記",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1380,
        460
      ],
      "parameters": {
        "color": 3,
        "width": 360,
        "height": 340,
        "content": "This node sends the response from the Dog CEO API (the image URL) back to the original caller of the webhook. You can insert other nodes before this to download the image, save it to cloud storage, or send it as part of a message."
      },
      "typeVersion": 1
    },
    {
      "id": "ab0bce0f-9d7e-4add-a113-33cf6631e906",
      "name": "ランダムな犬画像の取得",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1140,
        640
      ],
      "parameters": {
        "url": "=https://dog.ceo/api/breeds/image/random",
        "method": "=GET",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "76cf0099-b4e9-4446-a355-9fa85b72365d",
      "name": "Webhookのトリガー",
      "type": "n8n-nodes-base.webhook",
      "position": [
        800,
        640
      ],
      "webhookId": "fc960ca2-4564-44e7-b74d-fe9c94be242d-unique-id",
      "parameters": {
        "path": "get-dog-image",
        "options": {},
        "responseMode": "responseNode"
      },
      "typeVersion": 2
    },
    {
      "id": "3a739102-4c56-4125-949c-a54775073a64",
      "name": "画像URLでの応答",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1500,
        640
      ],
      "parameters": {
        "options": {},
        "respondWith": "allIncomingItems"
      },
      "typeVersion": 1.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "cbc2c313-a506-40d9-b17c-60309e502770",
  "connections": {
    "76cf0099-b4e9-4446-a355-9fa85b72365d": {
      "main": [
        [
          {
            "node": "ab0bce0f-9d7e-4add-a113-33cf6631e906",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ab0bce0f-9d7e-4add-a113-33cf6631e906": {
      "main": [
        [
          {
            "node": "3a739102-4c56-4125-949c-a54775073a64",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

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

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

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

中級 - その他

有料ですか?

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

関連ワークフロー

day9_暗号通貨の更新情報取得
CoinGeckoを使って暗号通貨市場:ボラティリティ指標と投資シグナル
If
Set
Switch
+
If
Set
Switch
26 ノードist00dent
財務
Webhook を通じたコンテンツ要約ジェネレーター (ApyHub)
Webhook を使った要約生成ツール (ApyHub)
Webhook
Http Request
Respond To Webhook
+
Webhook
Http Request
Respond To Webhook
8 ノードist00dent
ビルディングブロック
タイムゾーンDB APIを使用して時差を変換する
TimeZoneDB API統合を使用してタイムゾーンを変換する
Webhook
Http Request
Respond To Webhook
+
Webhook
Http Request
Respond To Webhook
6 ノードist00dent
ビルディングブロック
ExchangeRate.host を Webhook を使って通貨変換を自動化
ExchangeRate.host を使って Webhook で為替レート変換を実行
Webhook
Http Request
Respond To Webhook
+
Webhook
Http Request
Respond To Webhook
6 ノードist00dent
ビルディングブロック
Webhookを使ってScreenshotMachine APIを使用してウェブサイトのスクリーンショットをリアルタイムで生成する
ScreenshotMachine APIをWebhooks経由でウェブサイトのスクリーンショットを需要に応じて生成する
If
Code
Webhook
+
If
Code
Webhook
12 ノードist00dent
ビルディングブロック
Webhook経由でのIPジオロケーション検索
Webhookを使用してIP-API.comでIPの地理位置詳細をクエリ
Webhook
Http Request
Respond To Webhook
+
Webhook
Http Request
Respond To Webhook
6 ノードist00dent
ビルディングブロック
ワークフロー情報
難易度
中級
ノード数6
カテゴリー1
ノードタイプ4
難易度説明

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

作成者
ist00dent

ist00dent

@ist00dent

I’m a dedicated automation engineer passionate about no-code and low-code solutions. I design and implement robust n8n workflows—integrating APIs, databases, and messaging—to eliminate manual tasks and accelerate delivery. Leveraging Python and C#, I build scalable, adaptable automations that empower teams to focus on high-value work.

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34