# Currency Exchange Rates - Daily & Historical FX Since 1999 (`helenisapi/currency-exchange-rates`) Actor

Official exchange rates of 140+ currencies against any base: latest, any date since 1999 or a daily series, one row per rate with its source (ECB, Norges Bank, HMRC). 💱

- **URL**: https://apify.com/helenisapi/currency-exchange-rates.md
- **Developed by:** [Helenis API](https://apify.com/helenisapi) (community)
- **Categories:** Developer tools, E-commerce, Business
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.20 / 1,000 exchange rate

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 💱 Currency Exchange Rates - Daily & Historical FX Since 1999

**Official exchange rates, ready for your spreadsheet.** Get the latest rates of 140+ currencies against any base currency, the rates of any date since 1999, or a daily series between two dates: one clean row per date and currency, with the **rate**, the **source** (European Central Bank, Norges Bank or HMRC) and the **date** of the publication it comes from.

No API key: pick a base currency, list the currencies and hit **Run**.

***

### ⚡ Why this actor?

- 🏦 **Official sources only:** ECB euro reference rates (29 currencies, daily), Norges Bank (TWD, PKR, BDT, VND, BYN, MMK and the IMF's SDR, daily) and HM Revenue & Customs (about 106 more currencies, monthly).
- 📜 **Daily history since 4 January 1999**, legacy currencies included until their last day (Cypriot pound, Estonian kroon...).
- 🎯 **Honest cross rates:** each pair comes from one publication that quotes both currencies, on one date, so pegs stay exact (USD to AED 3.6726).
- 🗓️ **Weekends and holidays handled:** you get the last publication before the date, and the run log says so.
- 📏 **Long ranges made easy:** years of daily rates, fetched one year at a time for you.
- 💸 **Cheap:** pay per rate returned, nothing else.

***

### 📊 What data do you get?

One row per date and currency:

| Field | Description | Example |
|---|---|---|
| `date` | Date of the publication the rate comes from | `2026-11-26` |
| `base` | Base currency | `USD` |
| `currency` | Quoted currency | `EUR` |
| `rate` | Units of `currency` for 1 unit of `base` (8 significant digits) | `0.91116173` |
| `source` | `ECB`, `NORGES_BANK` or `HMRC` | `ECB` |
| `frequency` | `daily` or `monthly` | `daily` |
| `requestedDate` | The date you asked, when it was a weekend or holiday | `2026-11-28` |
| `stale` | `true` when a source could not be reached and its last rates were used | `false` |

***

### 🚀 How to use it

1. Set the **base currency** (USD by default).
2. List the **currencies** you want, one per line (empty = every currency, for the latest rates or one date).
3. Choose the dates:
   - nothing: the **latest** rates;
   - **Date**: the rates of that day;
   - **Start date** and **End date**: one row per business day (HMRC currencies: one per month).
4. Click **Run**, then export the table.

#### Input example

```json
{
  "base": "USD",
  "symbols": ["EUR", "GBP", "JPY"],
  "startDate": "2026-11-02",
  "endDate": "2026-11-06"
}
```

#### Output example

```json
{
  "date": "2026-11-26",
  "base": "USD",
  "currency": "EUR",
  "rate": 0.91116173,
  "source": "ECB",
  "frequency": "daily",
  "requestedDate": null,
  "stale": false
}
```

Available as **JSON**, **CSV**, **Excel**, or via the **Apify API** and **dataset exports**.

***

### 💰 Pricing

| Event | When |
|---|---|
| 💱 Exchange rate | Each rate row returned |

> 🆓 On the Apify **free plan**, each run returns the first 500 rates.

The run stops cleanly when your spending limit is reached.

***

### 💡 Use cases

- 🧾 **Accounting and invoicing:** the official rate of each invoice date.
- 📈 **Reports and dashboards:** monthly or yearly series in a spreadsheet.
- 🛒 **E-commerce:** a daily table of prices in every currency you sell in.
- 🔁 **Data pipelines:** backfill years of rates for a warehouse.

***

### ❓ FAQ

**Where do the rates come from?**
From the European Central Bank's euro foreign exchange reference rates (source: ECB, available free of charge at ecb.europa.eu), Norges Bank's exchange rates and HMRC's monthly exchange rates (Open Government Licence v3.0). Cross rates are computed by Helenis API.

**Are they real-time?**
No: they are daily reference rates, published around 16:00 CET on business days (HMRC: monthly). They suit accounting, reporting and pricing, not trading.

**Is crypto included?**
No, only official currencies.

***

### 🤖 Use it from an AI agent

Add this actor to **Claude, ChatGPT, Cursor, VS Code** or any MCP client with one URL (sign in with your Apify account):

```
https://mcp.apify.com?tools=helenisapi/currency-exchange-rates
```

Your agent then calls it as a tool, with the input described above, and pays per event like a normal run. In code: `ApifyActorsTool("helenisapi/currency-exchange-rates")` in LangChain or CrewAI; in **n8n**, **Make** or **Zapier**, use the Apify app and pick this actor.

***

### 🌐 Also available as an API

The same data is sold as a REST API on RapidAPI as **Currency Exchange Rates & Converter - Since 1999** by **Helenis API**, with an exact converter, fluctuation between two dates and the full currency list.

***

### 🔒 Privacy

No personal data is processed: only currency codes and dates.

# Actor input Schema

## `base` (type: `string`):

3-letter ISO 4217 code of the base currency, e.g. "USD" or "EUR": every rate is the number of units of a quoted currency for 1 unit of this one. Left empty: USD. An unknown code returns an error row (not charged).

## `symbols` (type: `array`):

3-letter ISO 4217 codes of the currencies to quote against the base, one per item, e.g. \["EUR", "GBP", "JPY"]. Leave empty for every currency (140+), but only for the latest rates or a single date: a date range (startDate/endDate) needs at least one code. Each currency returns one row per date with rate, source (ECB, NORGES_BANK or HMRC) and publication date.

## `date` (type: `string`):

One past date to get the rates of, YYYY-MM-DD, from 1999-01-04, e.g. "2020-03-16". A weekend or holiday gives the last publication before it (requestedDate says so). Ignored when startDate or endDate is set. Leave empty, with startDate and endDate, for the latest rates.

## `startDate` (type: `string`):

First day of a daily series, YYYY-MM-DD, from 1999-01-04, e.g. "2026-11-02". Returns one row per business day and currency (HMRC monthly currencies: one per month) up to endDate, or up to today when endDate is empty. Needs at least one code in symbols. Leave empty, with endDate, for the latest rates or the single date.

## `endDate` (type: `string`):

Last day of the daily series, YYYY-MM-DD, e.g. "2026-11-06"; a future date is capped at today. Left empty with startDate set: today. Set alone: the series is that one day. Long ranges are fetched one year at a time. Needs at least one code in symbols.

## Actor input object example

```json
{
  "base": "USD",
  "symbols": [
    "EUR",
    "GBP",
    "JPY"
  ],
  "startDate": "2026-11-02",
  "endDate": "2026-11-06"
}
```

# Actor output Schema

## `rates` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "base": "USD",
    "symbols": [
        "EUR",
        "GBP",
        "JPY"
    ],
    "startDate": "2026-11-02",
    "endDate": "2026-11-06"
};

// Run the Actor and wait for it to finish
const run = await client.actor("helenisapi/currency-exchange-rates").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "base": "USD",
    "symbols": [
        "EUR",
        "GBP",
        "JPY",
    ],
    "startDate": "2026-11-02",
    "endDate": "2026-11-06",
}

# Run the Actor and wait for it to finish
run = client.actor("helenisapi/currency-exchange-rates").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "base": "USD",
  "symbols": [
    "EUR",
    "GBP",
    "JPY"
  ],
  "startDate": "2026-11-02",
  "endDate": "2026-11-06"
}' |
apify call helenisapi/currency-exchange-rates --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,helenisapi/currency-exchange-rates"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/4bZwsgBecTPZ0dEYa/builds/jbcwcJaV5tejtCBZX/openapi.json
