📈 Currency converter via webhook using ExchangeRate.host

874 views · 📈 Crypto Trading & Stock Market

Description

This n8n template allows you to perform real-time currency conversions by simply sending a webhook request. By integrating with the ExchangeRate.host API, you can get up-to-date exchange rates for over 170 world currencies, making it an incredibly useful tool for financial tracking, e-commerce, international business, and personal budgeting.


🔧 How it works

Important: The ExchangeRate.host API access_key is handled securely by n8n’s credential system and should not be included in the webhook body or headers.


👤 Who is it for?

This workflow is ideal for:


📑 Data Structure

When you trigger the webhook, send a POST request with a JSON body structured as follows:

{
  "from": "USD",
  "to": "PHP",
  "amount": 100
}

The workflow will return a JSON response similar to this (results will vary based on currencies and amount):

{
  "date": "2025-06-03",
  "historical": false,
  "info": {
    "rate": 58.749501,
    "timestamp": 1717398188
  },
  "query": {
    "amount": 100,
    "from": "USD",
    "to": "PHP"
  },
  "result": 5874.9501,
  "success": true
}

⚙️ Setup Instructions


📝 Tips

This workflow is a powerful starting point. Here’s how you can make it even more robust and integrated:

🔗 Nodes Used

HTTP Request, Webhook

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup