Currency converter via webhook using ExchangeRate.host
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 curre...
Template notes
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 - Receive Conversion Request Webhook: This node acts as the entry point for the workflow, listening for incoming POST requests. It's configured to expect a JSON body containing:
- from: The 3-letter ISO 4217 currency code for the source currency (e.g., USD, PHP). - to: The 3-letter ISO 4217 currency code for the target currency (e.g., EUR, JPY). - amount: The numeric value you want to convert.
Important: The ExchangeRate.host API accesskey is handled securely by n8n's credential system and should not be included in the webhook body or headers.
- Convert Currency: This node makes an HTTP GET request to the ExchangeRate.host API (api.exchangerate.host). It dynamically constructs the URL using the from, to, and amount from the webhook body. Your API access key is securely retrieved from n8n's pre-configured credentials (HTTP Query Auth type) and automatically added as a query parameter (accesskey). The API then performs the conversion and returns a JSON object with the conversion details.
- Respond with Converted Amount: This node sends the full currency conversion result received from ExchangeRate.host back to the service that initiated the webhook.
---