# Currency Rates Scraper — Live & Historical Exchange Rates, FX (`chorelet/currency-rates-scraper`) Actor

Currency exchange rates without an API key: today's rates for 165 currencies, or the European Central Bank's daily series back to 1999 — one row per pair per day, week, month or year, with the inverse rate, a converted amount and the move in percent. CSV/JSON export and API.

- **URL**: https://apify.com/chorelet/currency-rates-scraper.md
- **Developed by:** [Chorelet](https://apify.com/chorelet) (community)
- **Categories:** Business, Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.14 / 1,000 rates

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

## Currency Rates Scraper — Live & Historical Exchange Rates, FX

**Exchange rates for any pair, today or any day since 1999 — without an API key.** Ask for `USD → EUR, GBP, JPY` and get one row per pair with the rate, the inverse rate, a converted amount and the move in percent. Ask for a date range and get the same row for every day the rate was published, ready for a chart, a model or an invoice.

Two sources, picked for you: the **European Central Bank's reference rates** (29 currencies, every business day back to 4 January 1999 — the series the euro started with) and an **open global feed of 165 currencies** for today's rates, including the ones the ECB never publishes: lari, hryvnia, naira, dirham, peso.

Daily rows are the raw series; **weekly, monthly and yearly** collapse it into one row per period with that period's open, high, low and average.

No key, no account, no login.

### Why this Actor

- **Today and 1999 in the same Actor.** Most rate scrapers give you a snapshot; this one also returns the ECB's full daily series — about 7,100 days per pair — in a single request.
- **Weekly, monthly and yearly rows** with open, high, low and average, so a decade of a pair is 130 rows instead of 2,800.
- **165 currencies**, not just the majors: the open global feed covers lari, hryvnia, naira, dirham and the rest, and the Actor switches to it on its own when you ask for one.
- **No key and no account** — the European Central Bank's published rates and an open feed, both free to use commercially.

### Sample output

One item of the dataset (long values shortened):

```json
{
  "date": "2026-09-07",
  "pair": "USD/EUR",
  "rate": 0.86044,
  "inverseRate": 1.1621960857,
  "converted": 0.86044,
  "changePct": 0,
  "quoteName": "Euro",
  "source": "ecb"
}
```

### What you get

- **The whole series in one run**: 27 years of daily rates for a pair arrive in a single request, roughly 7,100 rows, and nothing is paged or rate-limited
- **One row per pair per day**: `date`, `pair`, `rate`, `inverseRate`, `converted`, `changePct` — the shape a spreadsheet, a chart or a database expects
- **Periods, not just days**: weekly, monthly and yearly rows carry `open`, `high`, `low`, `average` and how many trading days went into them
- **Conversion at full precision** — the amount is multiplied out of the unrounded rate, not read off an API that rounds to five digits
- **The currencies the ECB retired** are still there for the days they existed: drachma, Cypriot pound, tolar, kroon, litas — useful for anything that reaches back past the euro
- **Both currency names on every row**, so a CSV reads without a lookup table

### Input example

```json
{
  "baseCurrencies": [
    "USD",
    "EUR"
  ],
  "quoteCurrencies": [
    "EUR",
    "GBP",
    "JPY"
  ],
  "interval": "daily",
  "amount": 1,
  "source": "auto",
  "maxRows": 10000
}
```

### How much does it cost?

Pay per rate — no subscription, no minimum, no charge for platform usage.

| Volume | Price |
|---|---|
| 1,000 rates | $0.20 |
| 10,000 rates | $2.00 |
| 100,000 rates | $20.00 |

The Apify **free plan includes $5 of usage every month** — about 25,000 rates with this Actor, no card needed. Nothing else is charged: platform usage is included in the price, and Apify Bronze, Silver and Gold subscribers get 10%, 20% and 30% off these prices.

### Use it from code, n8n, Make, Zapier or an AI agent

Run the Actor and download the dataset in one call (JSON by default; add `&format=csv` or `xlsx`):

```bash
curl -X POST "https://api.apify.com/v2/acts/chorelet~currency-rates-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"baseCurrencies": ["USD", "EUR"], "quoteCurrencies": ["EUR", "GBP", "JPY"], "interval": "daily", "amount": 1, "source": "auto", "maxRows": 10000}'
```

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("chorelet/currency-rates-scraper").call(run_input={"baseCurrencies": ["USD", "EUR"], "quoteCurrencies": ["EUR", "GBP", "JPY"], "interval": "daily", "amount": 1, "source": "auto", "maxRows": 10000})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

- **n8n, Make, Zapier** — use the Apify node/module: run the Actor, then "get dataset items".
- **Google Sheets, Slack, webhooks** — add an integration on the run's *Integrations* tab.
- **AI agents** — the Actor is available as a tool through the Apify MCP server; the dataset schema describes every field for the model.
- **Schedules** — run it hourly, daily or weekly from the *Schedules* tab.

### FAQ

**Do I need an API key?**

No. The rates come from the ECB's published reference rates (through the Frankfurter API) and from exchangerate-api's open endpoint. Neither needs a key or an account.

**How far back does the history go?**

To 4 January 1999, the first day the ECB published euro reference rates. One request covers the whole span: 1999 to today for one pair is about 7,100 rows.

**Why is there no row for a Saturday?**

The ECB publishes on working days only, around 16:00 CET. Ask for a weekend or a holiday and you get the rate in force on that day — the one set on the previous working day.

**Which source is used?**

`auto` takes the ECB whenever you ask for dates or when every currency you listed is one it publishes, and the global feed otherwise. The log says which was chosen, and every row carries a `source` column. You can also force either one.

**Can it convert an amount?**

Yes — set *Amount to convert* and every row gets a `converted` column. The multiplication happens on the unrounded rate, so 100 USD comes out as 75.753 GBP where an API that rounds first says 75.751.

**Can I get rates for the euro's predecessors?**

Yes, for the days they existed: ask for GRD, CYP, SIT, EEK, LTL, LVL, MTL, SKK or ROL with a date range inside their lifetime.

**Is it suitable for trading?**

It is end-of-day reference data, not a live tick feed: the ECB publishes once per working day and the global feed updates daily. For accounting, invoicing, reporting and research it is exactly the right source — it is what auditors and tax offices accept.

### Support

Questions, missing fields or a source that changed? Open an issue on the *Issues* tab or write to support@chorelet.app — problems are usually fixed within a day, and the Actor is checked every morning by an automated test run. If the Actor saved you time, a short review on its Store page helps other people find it.

# Actor input Schema

## `baseCurrencies` (type: `array`):

The currency each rate is quoted from — `USD` means one US dollar buys this much. One request per base, so a watchlist of ten costs ten requests.

## `quoteCurrencies` (type: `array`):

The currencies to price the base in. Leave it empty for every currency the source publishes — 29 from the ECB, 165 from the global source.

## `dateFrom` (type: `string`):

Empty = the latest rates. Otherwise a day (`2020-01-01`) or an offset (`30 days`, `last 6 months`, `5 years`). The ECB series starts on 1999-01-04.

## `dateTo` (type: `string`):

Last day of the range; empty means today. On its own it asks for that single day — the rate on 15 June 2020, say.

## `interval` (type: `string`):

`daily` keeps every published day. The others collapse the series into one row per week, month or year, dated by the period's last trading day, with the period's open, high, low and average next to it.

## `amount` (type: `integer`):

Fills the `converted` column: this many units of the base currency in the quote currency, multiplied out of the unrounded rate.

## `source` (type: `string`):

`ecb` — the European Central Bank's reference rates (29 currencies, daily history since 1999). `global` — an open feed of 165 currencies, today only. `auto` picks the ECB whenever dates are involved or every currency asked for is one it publishes.

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

A safety net for wide date ranges — 27 years of daily history is about 7,100 rows per pair. The run logs how many rows it had to leave behind.

## Actor input object example

```json
{
  "baseCurrencies": [
    "USD",
    "EUR"
  ],
  "quoteCurrencies": [
    "EUR",
    "GBP",
    "JPY"
  ],
  "dateFrom": "",
  "dateTo": "",
  "interval": "daily",
  "amount": 1,
  "source": "auto",
  "maxRows": 10000
}
```

# Actor output Schema

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

Every row scraped — items of the default dataset. Use ?format=csv or xlsx on this URL for spreadsheets.

## `summary` (type: `string`):

Rows per base currency, the source used, the dates covered and any errors.

# 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 = {
    "baseCurrencies": [
        "USD",
        "EUR"
    ],
    "quoteCurrencies": [
        "EUR",
        "GBP",
        "JPY"
    ],
    "dateFrom": "",
    "dateTo": "",
    "interval": "daily",
    "amount": 1,
    "source": "auto",
    "maxRows": 10000
};

// Run the Actor and wait for it to finish
const run = await client.actor("chorelet/currency-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 = {
    "baseCurrencies": [
        "USD",
        "EUR",
    ],
    "quoteCurrencies": [
        "EUR",
        "GBP",
        "JPY",
    ],
    "dateFrom": "",
    "dateTo": "",
    "interval": "daily",
    "amount": 1,
    "source": "auto",
    "maxRows": 10000,
}

# Run the Actor and wait for it to finish
run = client.actor("chorelet/currency-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 '{
  "baseCurrencies": [
    "USD",
    "EUR"
  ],
  "quoteCurrencies": [
    "EUR",
    "GBP",
    "JPY"
  ],
  "dateFrom": "",
  "dateTo": "",
  "interval": "daily",
  "amount": 1,
  "source": "auto",
  "maxRows": 10000
}' |
apify call chorelet/currency-rates-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,chorelet/currency-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/xngQ9MCk3BPoqEdTQ/builds/3JButRqAAkwgfZNy7/openapi.json
