# ECB Euro Exchange Rates (Daily & Historical) (`klyve1/ecb-exchange-rates`) Actor

Official euro foreign exchange reference rates from the European Central Bank: latest, any date or full history since 1999 for about 30 currencies, with cross rates in any base currency.

- **URL**: https://apify.com/klyve1/ecb-exchange-rates.md
- **Developed by:** [Nico Klyve](https://apify.com/klyve1) (community)
- **Categories:** Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 rate returneds

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/running/actors-in-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

## ECB Euro Exchange Rates (Daily & Historical)

Get the **official euro foreign exchange reference rates of the European Central Bank**: the latest fixing, the rates of any date, or the full daily history since 1999 for about 30 currencies (USD, GBP, CHF, JPY, CNY, CAD, AUD, SEK, PLN...). Choose any published currency as base and the Actor computes the cross rates for you.

### Who uses it

- **Accountants and finance teams**: convert invoices and expenses with the official ECB rate of the day, as many tax authorities accept.
- **E-commerce and SaaS**: refresh price lists in several currencies every day with a schedule.
- **Analysts and data teams**: load clean historical FX series into a spreadsheet, BI tool or database.
- **Developers**: a reliable FX feed without managing an API key.

### Example output

```json
{
  "date": "2026-11-13",
  "base": "USD",
  "currency": "EUR",
  "rate": 0.90481361,
  "inverseRate": 1.1052,
  "eurRate": 1,
  "source": "European Central Bank euro foreign exchange reference rates"
}
```

`rate` = how many units of `currency` for 1 unit of `base`. `eurRate` is the raw ECB rate against the euro.

### Input

| Field | What it does | Default |
|---|---|---|
| `mode` | `latest`, `date` (one day) or `range` (history) | latest |
| `baseCurrency` | EUR for the official rates, or any published currency for cross rates | EUR |
| `currencies` | Currencies to return. Empty = all | all |
| `date` | For `date`: YYYY-MM-DD. Weekends and holidays get the last fixing before | |
| `startDate`, `endDate` | For `range`: YYYY-MM-DD, end defaults to today | |
| `maxRows` | Stop after this many rows | 10000 |

### Pricing

Pay per result: **$0.0005 per rate returned** (one currency on one day). Example: the latest rates of 5 currencies cost $0.0025, one year of daily USD rates about $0.13.

### Good to know

- The ECB publishes the rates around 16:00 CET on TARGET working days. There are no rates on weekends and TARGET holidays.
- Currencies the ECB no longer publishes (for example HRK, RUB) are only available for past dates.
- Reference rates are for information. Source: European Central Bank, data reused under the ECB conditions of reuse of statistics.

# Actor input Schema

## `mode` (type: `string`):

latest = last published fixing. date = rates of one day (the last fixing on or before it, for weekends and holidays). range = every working day between two dates.

## `baseCurrency` (type: `string`):

Currency the rates are expressed against. EUR gives the official ECB rates; any other published currency (USD, GBP, CHF...) gives cross rates computed from them.

## `currencies` (type: `array`):

3-letter ISO codes to return. Leave empty for all currencies the ECB publishes (about 30).

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

Day in YYYY-MM-DD format, from 1999-01-04.

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

First day in YYYY-MM-DD format, from 1999-01-04.

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

Last day in YYYY-MM-DD format. Empty means today.

## `maxRows` (type: `integer`):

Stop after this many rates (one row = one currency on one day).

## Actor input object example

```json
{
  "mode": "latest",
  "baseCurrency": "EUR",
  "currencies": [
    "USD",
    "GBP",
    "CHF",
    "JPY",
    "CNY"
  ],
  "maxRows": 10000
}
```

# Actor output Schema

## `results` (type: `string`):

All rows produced by the run.

# 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 = {
    "mode": "latest",
    "baseCurrency": "EUR",
    "currencies": [
        "USD",
        "GBP",
        "CHF",
        "JPY",
        "CNY"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("klyve1/ecb-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 = {
    "mode": "latest",
    "baseCurrency": "EUR",
    "currencies": [
        "USD",
        "GBP",
        "CHF",
        "JPY",
        "CNY",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("klyve1/ecb-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 '{
  "mode": "latest",
  "baseCurrency": "EUR",
  "currencies": [
    "USD",
    "GBP",
    "CHF",
    "JPY",
    "CNY"
  ]
}' |
apify call klyve1/ecb-exchange-rates --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,klyve1/ecb-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/jm4HIJkHrr2jnTHPZ/builds/tdJeXCxFXuMtoAXya/openapi.json
