Custom Real-Time Currency Converter API
detail.loadingPreview
Instantly get real-time currency exchange rates by leveraging the power of Google Search with this n8n workflow. It transforms a simple webhook call into a dynamic currency conversion API, perfect for any application needing up-to-the-minute financial data without costly subscriptions.
About This Workflow
Unlock accurate, real-time currency conversions for your applications with this innovative n8n workflow. Designed to act as a custom API, it processes incoming webhook requests containing a specific currency conversion query (e.g., '5 USD to MXN'). Instead of relying on traditional, often expensive, third-party APIs, this workflow intelligently scrapes Google search results for the latest exchange rates. The extracted data is then meticulously parsed, formatted, and returned as a clean JSON response, making it an incredibly flexible and cost-effective solution for integrating live currency data into any system or service.
Key Features
- Customizable API Endpoint: Expose a dedicated webhook endpoint to trigger currency conversions from any external system.
- Real-Time Exchange Rates: Leverages Google Search for the most current exchange rate data available.
- Dynamic Query Parsing: Intelligently understands natural language queries like "10 EUR to USD" or "500 JPY to CAD".
- Robust Data Extraction: Employs advanced scraping techniques to reliably pull conversion figures from diverse search result layouts.
- Formatted JSON Output: Provides a clean, structured JSON response with converted amount, exchange rate, and source currencies.
How To Use
- Activate the Webhook: After importing the workflow, activate the "Webhook" node. This will generate a unique URL for your custom currency conversion API.
- Understand the Query Format: The workflow expects a GET request to the webhook URL with a
qquery parameter, formatted like?q=AMOUNT+FROM_CURRENCY+to+TO_CURRENCY(e.g.,?q=5usd+to+mxn). - Integrate with Your Application: Call this webhook URL from your application, website, or other n8n workflows, passing the desired conversion query.
- Process the JSON Response: The workflow will return a JSON object containing the
responsestring (e.g., "5.00 USD = 90.00 MXN") and adataobject with detailed conversion information. - Handle Errors: Implement error handling for status code 400, which indicates a missing
qparameter or an inability to parse the exchange rate.
Apps Used
Workflow JSON
{
"id": "dd9db10a-94af-4cbc-9d3f-493d566c6370",
"name": "Custom Real-Time Currency Converter API",
"nodes": 28,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: dd9db10a-94af...
About the Author
N8N_Community_Pick
Curator
Hand-picked high quality workflows from the global community.
Statistics
Related Workflows
Discover more workflows you might like
Dynamic Bible Scripture Retrieval Workflow
This n8n workflow provides a robust solution for dynamically querying and retrieving Bible scriptures from the getBible.net API. It takes structured JSON input for references, translation, and version, returning the corresponding passages in a standardized API response format.
Google Sheets to Icypeas: Automated Bulk Domain Scanning
This workflow streamlines the process of performing bulk domain scans by integrating your Google Sheets data directly with the Icypeas platform. Automate the submission of company names from your spreadsheet to Icypeas for comprehensive domain information, saving valuable time and effort.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.