ExchangeRate.host を Webhook を使って通貨変換を自動化
中級
これはBuilding Blocks分野の自動化ワークフローで、6個のノードを含みます。主にWebhook, HttpRequest, RespondToWebhookなどのノードを使用。 ExchangeRate.host を使って Webhook で為替レート変換を実行
前提条件
- •HTTP Webhookエンドポイント(n8nが自動生成)
- •ターゲットAPIの認証情報が必要な場合あり
カテゴリー
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "vQB8xArVsMh8sroM",
"meta": {
"instanceId": "1777696fb9fddfee653e70940936c2b1e28ba1f1bde53b7182fbd6eb01988706"
},
"name": "Currency Converter via Webhook using ExchangeRate.host",
"tags": [],
"nodes": [
{
"id": "6f42915a-6851-4e36-b086-29fc6c975d48",
"name": "Webhook トリガー",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
-160
],
"parameters": {
"width": 280,
"height": 540,
"content": "## Webhook Input\n\nThis node listens for incoming POST requests. It expects a JSON body with the following properties:\n\n* `from` (source currency's 3-letter ISO 4217 code, e.g., `USD`)\n* `to` (target currency's 3-letter ISO 4217 code, e.g., `EUR`)\n* `amount` (numeric value to convert)\n\n**Important:** The ExchangeRate.host API key is handled securely by n8n's credential system and should **not** be included in the webhook body or headers."
},
"typeVersion": 1
},
{
"id": "52cb862c-71e1-4960-a0f2-2f6a7c620d7b",
"name": "通貨変換 API 呼び出し",
"type": "n8n-nodes-base.stickyNote",
"position": [
340,
-160
],
"parameters": {
"color": 2,
"width": 280,
"height": 540,
"content": "## Currency Conversion API Call\n\nThis node makes an HTTP GET request to the ExchangeRate.host API to perform the currency conversion. It uses the `from`, `to`, and `amount` from the webhook body to build the API request URL.\n\n**The API access key is securely retrieved from n8n's pre-configured credentials** (HTTP Query Auth type) and automatically added as a query parameter (`access_key`). This ensures your key is not exposed in the workflow or webhook requests."
},
"typeVersion": 1
},
{
"id": "e75b2ecb-7637-4dfc-9ded-d2f8294d64ba",
"name": "Webhook レスポンス",
"type": "n8n-nodes-base.stickyNote",
"position": [
660,
0
],
"parameters": {
"color": 3,
"width": 320,
"height": 380,
"content": "## Webhook Response\n\nThis node sends the currency conversion result received from ExchangeRate.host back to the original caller of the webhook. You can insert other nodes before this to format the output, log the conversion, or perform further actions before responding."
},
"typeVersion": 1
},
{
"id": "aa7f2f15-a806-41a2-94fc-7e3e0b34e66c",
"name": "通貨を変換",
"type": "n8n-nodes-base.httpRequest",
"position": [
420,
220
],
"parameters": {
"url": "=https://api.exchangerate.host/convert?from={{ $json.body.from }}&to={{ $json.body.to }}&amount={{ $json.body.amount }}",
"method": "=GET",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpQueryAuth"
},
"credentials": {
"httpQueryAuth": {
"id": "HK0TybEUeSEKTm0j",
"name": "ExchangeRate"
}
},
"typeVersion": 4.2
},
{
"id": "7d362367-2cbc-4761-ac60-a9c0cdf96329",
"name": "変換リクエスト受信 Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
80,
220
],
"webhookId": "fe5e86fb-2975-4206-8982-19c52dc6a327-unique-id",
"parameters": {
"path": "convert-currency",
"options": {},
"httpMethod": "POST",
"responseMode": "responseNode"
},
"typeVersion": 2
},
{
"id": "9cfde3de-fdad-4d16-bed4-08512d57dd73",
"name": "変換金額で応答",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
780,
220
],
"parameters": {
"options": {},
"respondWith": "allIncomingItems"
},
"typeVersion": 1.2
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "d7c961bc-e3f3-42a4-8238-5b0393417449",
"connections": {
"aa7f2f15-a806-41a2-94fc-7e3e0b34e66c": {
"main": [
[
{
"node": "9cfde3de-fdad-4d16-bed4-08512d57dd73",
"type": "main",
"index": 0
}
]
]
},
"7d362367-2cbc-4761-ac60-a9c0cdf96329": {
"main": [
[
{
"node": "aa7f2f15-a806-41a2-94fc-7e3e0b34e66c",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - ビルディングブロック
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
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
ビルディングブロック
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
ビルディングブロック
WebhookによるJSON文字列の検証
WebhookによるJSON文字列の検証
Code
Webhook
Respond To Webhook
+
Code
Webhook
Respond To Webhook
6 ノードist00dent
ビルディングブロック
day9_暗号通貨の更新情報取得
CoinGeckoを使って暗号通貨市場:ボラティリティ指標と投資シグナル
If
Set
Switch
+
If
Set
Switch
26 ノードist00dent
財務
ワークフロー情報
難易度
中級
ノード数6
カテゴリー1
ノードタイプ4
作成者
ist00dent
@ist00dentI’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で表示 →
このワークフローを共有