Skip to main content

Fetch reliable FX exchange rates with Frankfurter and open.er-api

Workflow preview

Workflow preview
100%
Fetch reliable FX exchange rates with Frankfurter and open.er-api preview
Open on n8n.io

1. Workflow Overview

This workflow fetches foreign exchange (FX) rates using multiple public APIs. It validates all inputs, queries providers sequentially, and merges results into a single enforced output schema. The w...

Best for

  • Engineering automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.set, n8n-nodes-base.if, n8n-nodes-base.stopanderror, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.executeworkflowtrigger, n8n-nodes-base.manualtrigger, n8n-nodes-base.noop

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Matchaccino Studio.

Original n8n.io source

1.1 Workflow description

Title
Fetch reliable FX exchange rates with Frankfurter and open.er-api
Workflow name
Fetch reliable FX exchange rates with Frankfurter and open.er-api

This workflow fetches foreign exchange (FX) rates using multiple public APIs.

It validates all inputs, queries providers sequentially, and merges results into a single enforced output schema. The workflow is designed to guarantee complete coverage for the requested currencies. If full coverage cannot be achieved, it fails explicitly instead of returning partial data.

An optional trim flag allows the final output to be limited to only the currencies originally requested.

Who it’s for

This template is intended for developers and automation builders who need reliable FX rates as part of a larger workflow, such as reporting, pricing, analytics, or financial automation.

It can be used as a standalone workflow or reused as a sub-workflow via the Execute Workflow node.

How it works

The workflow starts by validating and normalizing the input parameters. An internal FX state is initialized and acts as the single source of truth throughout execution. Optional static rates can be defined at this stage and always take precedence over provider data.

Rates are fetched from a primary provider first. After each provider call, coverage is checked to determine whether all requested currencies have been resolved. If coverage is complete, the workflow stops early.

If some currencies are still missing, a secondary provider is queried. If coverage is still incomplete after the fallback provider, the workflow fails.

When coverage is complete, the workflow optionally trims the output and returns the final FX payload.

How to set up

  • Provide a baseCurrency (ISO currency code).
  • Provide a currencies array containing the currencies to fetch (ISO currency code).
  • Set the trim flag to control whether the output is reduced to the requested currencies only.
  • Run the workflow manually for testing, or call it from another workflow using the Execute Workflow trigger.

How to customize the workflow

You can define static FX rates during the initialization step. Static rates always override provider results and can be used for fixed or pegged currencies.

Additional FX providers can be added by cloning the provider fetch nodes and connecting them to the existing coverage and error-handling logic.

Requirements

  • None. The workflow uses public APIs and does not require authentication or paid services.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Set Currencies

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 2 - If Valid Data

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 3 - Stop and Error

Type / Role
n8n-nodes-base.stopAndError - stopAndError
Config choices
Version 1

Block 4 - Frankfurter

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 5 - Normalize Frankfurter

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - open.er-api.com

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 7 - If base correct 1

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 8 - If base correct 2

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 9 - Fetch FX Rates

Type / Role
n8n-nodes-base.executeWorkflowTrigger - executeWorkflowTrigger
Config choices
Version 1.1

Block 10 - Stop and Error3

Type / Role
n8n-nodes-base.stopAndError - stopAndError
Config choices
Version 1

Block 11 - Normalize open.er-api.com

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Handle Wrong Base 1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Handle Wrong Base 2

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - Trim

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - If Trim

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 16 - Manual Trigger (Example)

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 17 - Validate & Normalize Inputs

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 18 - Initialize FX State + Static Rates

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - Initialize Coverage Tracking

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 20 - Merge Rates & Check Coverage (1)

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 21 - Merge Rates & Check Coverage (2)

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 22 - Coverage Complete 1?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 23 - Coverage Complete 2?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 24 - Final Output

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Showing the first 24 of 28 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Fetch reliable FX exchange rates with Frankfurter and open.er-api
Complexity advanced
Nodes 28
Categories Engineering
Author Matchaccino Studio
Published 07 Jan 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12539/12539.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Fetch reliable FX exchange rates with Frankfurter and open.er-api do?

This workflow fetches foreign exchange (FX) rates using multiple public APIs. It validates all inputs, queries providers sequentially, and merges results into a single enforced output schema. The w...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering use case.