CoinGeckoとExchangeRate-APIを使用してBTC-ETH価格と為替レートAPIを作成

中級

これはCrypto Trading, Miscellaneous, Multimodal AI分野の自動化ワークフローで、7個のノードを含みます。主にCode, Merge, Webhook, HttpRequest, RespondToWebhookなどのノードを使用。 CoinGeckoとExchangeRate-APIを使用してBTC/ETH価格とドル為替レートAPIを作成

前提条件
  • HTTP Webhookエンドポイント(n8nが自動生成)
  • ターゲットAPIの認証情報が必要な場合あり
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "meta": {
    "instanceId": "2000c64071c20843606b95c63795bb0797c41036047055a6586498e855b96efc"
  },
  "nodes": [
    {
      "id": "f43de1da-85c9-4e07-87b2-e3d54aba8cfd",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -704,
        -16
      ],
      "webhookId": "9cb6d3c6-0ff2-4ff4-a992-4b8ebc27de72",
      "parameters": {
        "path": "crypto-fx",
        "options": {},
        "httpMethod": "POST",
        "responseMode": "responseNode"
      },
      "typeVersion": 1
    },
    {
      "id": "53645dd6-4117-4e41-b958-5d3bfc022f6a",
      "name": "法定通貨為替レートの取得",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -496,
        -80
      ],
      "parameters": {
        "url": "https://api.exchangerate-api.com/v4/latest/USD",
        "options": {}
      },
      "typeVersion": 4.1
    },
    {
      "id": "9d0c77d1-67bc-4030-93d2-75ca981bb504",
      "name": "暗号通貨価格の取得",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -496,
        80
      ],
      "parameters": {
        "url": "https://api.coingecko.com/api/v3/simple/price?ids=bitcoin,ethereum&vs_currencies=usd&include_24hr_change=true",
        "options": {}
      },
      "typeVersion": 4.1
    },
    {
      "id": "9bd74632-a79c-4076-b75d-2a7550325356",
      "name": "マージ",
      "type": "n8n-nodes-base.merge",
      "position": [
        -304,
        0
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "89163b24-4f91-4a12-b260-d00b47849a73",
      "name": "JSONの構築",
      "type": "n8n-nodes-base.code",
      "position": [
        -96,
        0
      ],
      "parameters": {
        "jsCode": "let fx,cg;for(const it of $input.all()){ if(it.json?.rates) fx=it.json; if(it.json?.bitcoin) cg=it.json; }\nconst payload={\n  btc:{ price: cg?.bitcoin?.usd ?? null, change_24h: cg?.bitcoin?.usd_24h_change ?? null },\n  eth:{ price: cg?.ethereum?.usd ?? null, change_24h: cg?.ethereum?.usd_24h_change ?? null },\n  usd_eur: fx?.rates?.EUR ?? null,\n  usd_ngn: fx?.rates?.NGN ?? null,\n  ts: new Date().toISOString()\n};\nreturn [{json: payload}];"
      },
      "typeVersion": 2
    },
    {
      "id": "70a8ddb0-b644-4344-a17f-1cadbb8074e6",
      "name": "応答",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        128,
        0
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "28ab2e99-d2cc-420c-9e5f-c73fd14639c0",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        272,
        -208
      ],
      "parameters": {
        "width": 544,
        "height": 640,
        "content": "## 🌐 Crypto + FX Micro-API (Webhook JSON)\n\n**What it does:**  \nExposes a lightweight **GET** endpoint that returns **BTC/ETH price + 24h %** and **USD→EUR / USD→NGN** in clean JSON.\n\n**Route:**  \n`/webhook/crypto-fx` (use n8n’s Test or Production URL)\n\n**Flow:**  \n**Webhook (GET)** → ExchangeRate-API → CoinGecko → **Merge** → **Code (build JSON)** → **Respond**\n\n**Example Response:**  \n```json\n{\n  \"btc\": { \"price\": 112417, \"change_24h\": 1.22 },\n  \"eth\": { \"price\": 4334.57, \"change_24h\": 1.33 },\n  \"usd_eur\": 0.854,\n  \"usd_ngn\": 1524.54,\n  \"ts\": \"2025-09-08T08:00:00.000Z\"\n}\n"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "9bd74632-a79c-4076-b75d-2a7550325356": {
      "main": [
        [
          {
            "node": "89163b24-4f91-4a12-b260-d00b47849a73",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f43de1da-85c9-4e07-87b2-e3d54aba8cfd": {
      "main": [
        [
          {
            "node": "53645dd6-4117-4e41-b958-5d3bfc022f6a",
            "type": "main",
            "index": 0
          },
          {
            "node": "9d0c77d1-67bc-4030-93d2-75ca981bb504",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "89163b24-4f91-4a12-b260-d00b47849a73": {
      "main": [
        [
          {
            "node": "70a8ddb0-b644-4344-a17f-1cadbb8074e6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9d0c77d1-67bc-4030-93d2-75ca981bb504": {
      "main": [
        [
          {
            "node": "9bd74632-a79c-4076-b75d-2a7550325356",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "53645dd6-4117-4e41-b958-5d3bfc022f6a": {
      "main": [
        [
          {
            "node": "9bd74632-a79c-4076-b75d-2a7550325356",
            "type": "main",
            "index": 1
          }
        ]
      ]
    }
  }
}
よくある質問

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

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

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

中級 - 仮想通貨取引, その他, マルチモーダルAI

有料ですか?

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

関連ワークフロー

ビットコインとイーサリアムの下落アラート(Telegram、Slack、SMS)
Telegram、Slack、SMS 経由でビットコインとイーサリアムの下落アラートを送信
If
Code
Slack
+
If
Code
Slack
8 ノードDavid Olusola
仮想通貨取引
競合他社コンテンツギャップ分析ツール:構題マッピングの自動化
Gemini AI、Apify、Google Sheetsを使用して競合企業のコンテンツギャップを分析
If
Set
Code
+
If
Set
Code
30 ノードMychel Garzon
その他
Groq AIとGhostGeniusを使ってLinkedInプロフィールと求人情報を比較
Groq AI と GhostGenius を使って LinkedIn プロフィールと職位説明のマッチ度を比較する
If
Set
Code
+
If
Set
Code
17 ノードStephan Koning
その他
Zoom の録画を Google ドライブに保存し、Airtable にメーティング記録を加える
Zoom 録画を Google ドライブに自動保存し、Airtable でメッセージを記録
Code
Webhook
Airtable
+
Code
Webhook
Airtable
7 ノードDavid Olusola
ファイル管理
Google Driveで保存し、TelegramでリマインドしてInstagram Reelをダウンロードを自動化
Google Drive の保存と Telegram によるリマインダーで Instagram Reel ダウンロードを自動化
If
Code
Webhook
+
If
Code
Webhook
11 ノードAryan Shinde
ファイル管理
Slack多言語アシスタント(Gemini 2.5 Flashを使用)
Gemini 2.5 Flashを使って多言語Slack通信(日本語⇄英語)を自動化
If
Code
Switch
+
If
Code
Switch
29 ノードTomohiro Goto
その他
ワークフロー情報
難易度
中級
ノード数7
カテゴリー3
ノードタイプ6
難易度説明

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

作成者
David Olusola

David Olusola

@dae221

I help ambitious businesses eliminate operational bottlenecks and scale faster with AI automation. My clients typically see 40-60% efficiency gains within 90 days. Currently accepting 3 new projects this quarter - david@daexai.com

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34