# ECB Exchange Rates Scraper - Official FX Data (`thirdwatch/ecb-exchange-rates-scraper`) Actor

Export official European Central Bank exchange rates by currency, date range, and daily or monthly frequency as structured dataset records. Built for research, diligence, and market intelligence. No login, cookies, or API keys — clean JSON output and pay-per-result pricing.

- **URL**: https://apify.com/thirdwatch/ecb-exchange-rates-scraper.md
- **Developed by:** [Thirdwatch](https://apify.com/thirdwatch) (community)
- **Categories:** Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Exchange Rates Scraper

> Export official European Central Bank foreign-exchange observations by currency, date, and frequency.

### What you get

Turn the ECB Data Portal's exchange-rate series into clean Apify dataset rows. Request several currencies in one run, choose daily or monthly observations, and either set a historical date range or collect the latest values. Each row includes both foreign-currency units per euro and the calculated inverse, making the output immediately useful in spreadsheets, dashboards, finance systems, and scheduled automations.

### Output fields

| Field | Description |
|---|---|
| `currency`, `base_currency` | Quote currency and EUR base |
| `date`, `frequency` | Observation period and daily/monthly frequency |
| `rate_per_eur` | Currency units for one euro |
| `eur_per_unit` | Calculated euros for one currency unit |
| `status`, `title`, `unit` | ECB series metadata |
| `source_url`, `source` | Official source attribution |

### Example output

```json
{"currency":"USD","base_currency":"EUR","date":"2026-07-20","rate_per_eur":1.1426,"eur_per_unit":0.875197}
```

### Input parameters

| Parameter | Required | Description |
|---|---|---|
| `currencies` | No | ISO currency codes; defaults to USD, GBP, and JPY |
| `frequency` | No | `D` for daily or `M` for monthly |
| `startDate` | No | First date in YYYY-MM-DD form |
| `endDate` | No | Last date in YYYY-MM-DD form |
| `maxResultsPerCurrency` | No | Maximum observations per currency; defaults to 10 |

### Use cases

- Finance teams can schedule an authoritative daily FX table.
- Analysts can compare movements across several currencies and periods.
- E-commerce teams can enrich reports with a common EUR reference rate.
- Developers can send structured ECB data to databases and alerts.

### Limitations

The Actor covers ECB EXR reference-rate series quoted against EUR. Availability, publication calendars, revisions, and supported currencies are controlled by the ECB. Weekends and ECB holidays generally have no daily observation. The inverse rate is calculated for convenience and may differ slightly after rounding. This tool provides data plumbing, not financial advice or an executable market quote.

### Compared to alternatives

Compared with generic exchange-rate trackers, this Actor is deliberately source-specific: every record comes from the official ECB Data API and retains the observation date and status. It also supports multi-currency requests and date-bounded history without requiring users to learn SDMX series keys.

### FAQ

#### Is an API key required?

No. The bounded official ECB endpoint used by this Actor does not require credentials.

#### Which direction is the rate?

`rate_per_eur` means foreign-currency units for EUR 1. `eur_per_unit` is the calculated inverse.

Explore [ECB Exchange Rates Scraper on thirdwatch.dev](https://thirdwatch.dev/scrapers/ecb-exchange-rates-scraper). Related Actors: [Trade Data Scraper](https://apify.com/thirdwatch/trade-data-scraper), [CoinGecko Markets Scraper](https://apify.com/thirdwatch/coingecko-markets-scraper), and [Google Search Scraper](https://apify.com/thirdwatch/google-search-scraper).

Last verified: 2026-07

# Actor input Schema

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

ISO currency codes quoted against EUR, such as USD, GBP, JPY, or INR.

## `frequency` (type: `string`):

Daily or monthly ECB observations.

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

Optional first date in YYYY-MM-DD format.

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

Optional last date in YYYY-MM-DD format.

## `maxResultsPerCurrency` (type: `integer`):

Maximum observations saved for each requested currency.

## Actor input object example

```json
{
  "currencies": [
    "USD",
    "GBP",
    "JPY"
  ],
  "frequency": "D",
  "startDate": "",
  "endDate": "",
  "maxResultsPerCurrency": 10
}
```

# Actor output Schema

## `results` (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 = {
    "currencies": [
        "USD",
        "GBP",
        "JPY"
    ],
    "maxResultsPerCurrency": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("thirdwatch/ecb-exchange-rates-scraper").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 = {
    "currencies": [
        "USD",
        "GBP",
        "JPY",
    ],
    "maxResultsPerCurrency": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("thirdwatch/ecb-exchange-rates-scraper").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 '{
  "currencies": [
    "USD",
    "GBP",
    "JPY"
  ],
  "maxResultsPerCurrency": 10
}' |
apify call thirdwatch/ecb-exchange-rates-scraper --silent --output-dataset

```

## MCP server setup

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

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/Ud3Nr6ddYhBB0Hcgz/builds/FypCbitxo71nXAecx/openapi.json
