workflows.fit
Back to n8n workflows
n8n templateFreeBy Matchaccino Studio

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 ...

DevelopmentCore NodesUtilitySetIfStop And ErrorHttp Request
Loading interactive preview...

Template notes

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.