[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [Xe historical exchange rates](https://spiral.ai/integrations/n8n/xe-historical-exchange-rates)

# How to Use Xe historical exchange rates in n8n

Get exchange rates against one base currency for a selected past date. Use it to compare several currencies on the same date rather than follow one pair through time.

|  |  |
| --- | --- |
| Model | Xe historical exchange rates |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with Xe historical exchange rates in n8n

- On the first day of each month, use Xe historical exchange rates to retrieve EUR, GBP, and CAD against USD for the last day of the previous month.
- Every Monday at 9am: use Xe historical exchange rates to look this up and give me the result as a table.
- Pull the latest numbers from Xe historical exchange rates and tell me what changed since last week.
- Check Xe historical exchange rates and summarize what you find in three bullet points.
- Pull the newest data from Xe historical exchange rates and give me the result as a table.

## How to set up Xe historical exchange rates in n8n

Pick the way that suits you. Each takes about two minutes.

### Use the Spiral skill

1. **Send n8n this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run Xe historical exchange rates in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Xe historical exchange rates, prices it and runs it each time the step fires.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Xe historical exchange rates**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "xe-com/exchange-rates/historical_table",
    "input": {
      "base": "<base>",
      "date": "<date>"
    }
  }'
```

Then paste one of the prompts above: n8n finds Xe historical exchange rates on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/n8n

## Xe historical exchange rates tools and prices

- [XE currency data · Historical table](https://spiral.ai/tools/alexandria/xe-com/exchange-rates/historical_table) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| quotes |  | — | Only these quote currencies. |

## What can you do with Xe historical exchange rates in n8n?

Keep a recurring currency research brief current with Xe reference information and rate context. Scheduled agents can refresh selected currencies, compare dated observations, and summarize movements for uses covered by the applicable data permissions.

### Explain exchange-rate changes in an invoice estimate

Where licensed, compare a EUR invoice's current USD equivalent with its value on the invoice date. Add the pair's history to show how the reference rate moved between those dates.

### Prepare a currency market briefing

Where licensed, identify the currencies in a USD, EUR, GBP, and JPY watchlist, explain their reference details, compare current and past rates, and illustrate the effect on a sample amount.

### Understand an archived market report

Resolve the currency codes in an old report, read their profiles, and compare its publication-date exchange rates with the surrounding historical trend.

### Compare month-end currency snapshots

Where licensed, label currencies consistently in an analytical workbook, compare selected month-end tables, and use pair histories to explain movements between snapshots.

### Build a currency research application

Where licensed, combine a currency directory and profiles with amount conversion, current comparison tables, dated snapshots, and historical charts.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All n8n guides](https://spiral.ai/integrations/n8n)

## Xe historical exchange rates in other agents

- [Amp](https://spiral.ai/integrations/amp/xe-historical-exchange-rates)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/xe-historical-exchange-rates)
- [Claude](https://spiral.ai/integrations/claude-desktop/xe-historical-exchange-rates)
- [Claude Code](https://spiral.ai/integrations/claude-code/xe-historical-exchange-rates)
- [Cline](https://spiral.ai/integrations/cline/xe-historical-exchange-rates)
- [Codex](https://spiral.ai/integrations/codex/xe-historical-exchange-rates)
- [Cursor](https://spiral.ai/integrations/cursor/xe-historical-exchange-rates)
- [Devin](https://spiral.ai/integrations/devin/xe-historical-exchange-rates)
- [dots](https://spiral.ai/integrations/dots/xe-historical-exchange-rates)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/xe-historical-exchange-rates)
- [Gemini](https://spiral.ai/integrations/gemini/xe-historical-exchange-rates)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/xe-historical-exchange-rates)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/xe-historical-exchange-rates)
- [goose](https://spiral.ai/integrations/goose/xe-historical-exchange-rates)
- [Grok](https://spiral.ai/integrations/grok/xe-historical-exchange-rates)
- [Grok Build](https://spiral.ai/integrations/grok-build/xe-historical-exchange-rates)
- [Hermes](https://spiral.ai/integrations/hermes/xe-historical-exchange-rates)
- [Instinct](https://spiral.ai/integrations/instinct/xe-historical-exchange-rates)
- [Manus](https://spiral.ai/integrations/manus/xe-historical-exchange-rates)
- [Muse](https://spiral.ai/integrations/muse/xe-historical-exchange-rates)
- [Muse Code](https://spiral.ai/integrations/muse-code/xe-historical-exchange-rates)
- [Notion](https://spiral.ai/integrations/notion/xe-historical-exchange-rates)
- [OpenClaw](https://spiral.ai/integrations/openclaw/xe-historical-exchange-rates)
- [opencode](https://spiral.ai/integrations/opencode/xe-historical-exchange-rates)
- [Perplexity](https://spiral.ai/integrations/perplexity/xe-historical-exchange-rates)
- [Raycast](https://spiral.ai/integrations/raycast/xe-historical-exchange-rates)
- [VS Code](https://spiral.ai/integrations/vscode/xe-historical-exchange-rates)
- [Windsurf](https://spiral.ai/integrations/windsurf/xe-historical-exchange-rates)
- [Zapier](https://spiral.ai/integrations/zapier/xe-historical-exchange-rates)

## More n8n guides

- [Xe exchange rate history](https://spiral.ai/integrations/n8n/xe-exchange-rate-history)
- [Xe live exchange rates](https://spiral.ai/integrations/n8n/xe-live-exchange-rates)
- [Xe currency profile](https://spiral.ai/integrations/n8n/xe-currency-profile)
- [Yahoo Finance company earnings](https://spiral.ai/integrations/n8n/yahoo-finance-company-earnings)
- [Xe currency list](https://spiral.ai/integrations/n8n/xe-currency-list)
- [Yahoo Finance dividend history](https://spiral.ai/integrations/n8n/yahoo-finance-dividend-history)

## Questions about Xe historical exchange rates in n8n

**Can n8n use Xe historical exchange rates?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run Xe historical exchange rates like any built-in tool.

**How much does Xe historical exchange rates cost in n8n?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

**Do I need an Alexandria account to use Xe historical exchange rates in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs Xe historical exchange rates on its own Alexandria account.

**How long does it take to set up Xe historical exchange rates in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while Xe historical exchange rates runs?**

Xe historical exchange rates runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**How many currencies does Xe cover?**

Xe says its converter covers more than 170 currencies. That is source coverage, rather than a promise that every currency has the same historical depth.

**How fresh are Xe's current rates?**

Xe describes its converter rates as up to the minute. This describes the source display and does not establish a separate refresh guarantee for these endpoints.

**Will a transfer use the exchange rate shown by Xe?**

Xe's converter shows a mid-market reference rate. Its money-transfer send rate is different and includes a margin.

**How far back do Xe's currency charts go?**

Xe offers chart periods of up to 10 years using mid-market rates. Its historical tables provide a separate view organized around a base currency and a past date.

**What currency information is public on Xe?**

Xe publicly lists currency codes and names in its Currency Encyclopedia. Individual profiles include reference details such as the US dollar's symbol and its cent minor unit.

