vøiddo guidesAll Actors on Apify

Currency exchange rates (ECB): how to get exchange rates as JSON/CSV (API, Python, no code)

Latest and historical euro foreign exchange reference rates from the European Central Bank, with conversion between any two of its currencies. This guide shows the output fields, a working input, and Python, JavaScript and cURL code for the Actor v0iddo/currency-exchange-rates on Apify.

Open Currency exchange rates (ECB) on Apify

What data you get

One row per result. Every row can be downloaded as JSON, CSV, Excel or HTML, or read through the API.

FieldLabelTypeExample
index#number0
amountAmountnumber100
fromFromtextEUR
toTotextUSD
rateRatenumber1.1721
resultResultnumber117.21
date_usedRate datetext2026-01-02
sourceSourcetextEuropean Central Bank, euro foreign exchange reference rates
optextconvert
date_requestedtext2026-01-02
creditsnumber1
msnumber1356

Input example

This is the input that is pre-filled on the Actor page. Change the values for your own run.

{
  "op": "convert",
  "amount": "100",
  "from": "EUR",
  "to": "USD",
  "date": "2026-01-02"
}
Input fieldTypeWhat it does
opstringOne of: latest, convert, history.
basestringBase currency (latest, history); for convert the alias of 'from'
quotestringQuote currency (history; latest filter; convert alias of 'to')
quotesarraySeveral quote currencies for latest; omit for all
amountstringAmount of the 'from' currency (convert) (a number)
fromstringCurrency to convert from (default EUR)
tostringCurrency to convert to
datestringYYYY-MM-DD; non-business days use the previous business day.
daysintegerhistory: calendar days ending at 'date' (default the latest day)
itemsarrayOptional. A list of input objects with the same fields as above; every object is processed in its own right and the top-level fields act as shared defaults.

Output sample

Real rows from a run of the Actor. Fields that name people are left out of the sample.

[
  {
    "index": 0,
    "op": "convert",
    "amount": 100,
    "from": "EUR",
    "to": "USD",
    "rate": 1.1721,
    "result": 117.21,
    "date_used": "2026-01-02",
    "source": "European Central Bank, euro foreign exchange reference rates",
    "date_requested": "2026-01-02",
    "credits": 1,
    "ms": 1356
  }
]

Code: Python, JavaScript and cURL

Get your API token in Apify Console under Settings, then Integrations. The Actor id is v0iddo/currency-exchange-rates.

Python (apify-client)

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run_input = {'op': 'convert', 'amount': '100', 'from': 'EUR', 'to': 'USD', 'date': '2026-01-02'}

run = client.actor("v0iddo/currency-exchange-rates").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

JavaScript (apify-client)

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });

const input = {
  "op": "convert",
  "amount": "100",
  "from": "EUR",
  "to": "USD",
  "date": "2026-01-02"
};

const run = await client.actor('v0iddo/currency-exchange-rates').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

cURL

curl -X POST "https://api.apify.com/v2/acts/v0iddo~currency-exchange-rates/run-sync-get-dataset-items" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"op": "convert", "amount": "100", "from": "EUR", "to": "USD", "date": "2026-01-02"}'

Price

$3.40 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $2.38 per 1,000. See the pricing tab for your plan. A new Apify account gets $5 of platform credit every month.

FAQ

What data does the Currency exchange rates (ECB) return?

Each result is one row in an Apify dataset. Fields include index, amount, from, to, rate, result, date_used, source, and more. The table above shows every field with an example value.

How do I use the Currency exchange rates (ECB) from Python?

Install the apify-client package, create a client with your Apify API token, call the Actor v0iddo/currency-exchange-rates with an input like the one above, and read the rows from the run's dataset. The Python snippet above does exactly that.

Can I use it without writing code?

Yes. Open the Actor page on Apify, fill in the input form (an example is already filled in), press Start, and download the results as JSON, CSV, Excel or HTML. You can also schedule runs there.

How much does it cost?

$3.40 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $2.38 per 1,000. A new Apify account gets $5 of platform credit every month.

How do I limit the number of results?

Set a maximum cost for a run in the run options on Apify, and the run stops when it is reached.

Can I send the results to Google Sheets, Make, Zapier or n8n?

Yes. Apify datasets connect to Google Sheets, Slack, Make, Zapier and n8n, and a webhook can call your own service when a run finishes. You can also export the dataset as JSON, CSV or Excel.

Open Currency exchange rates (ECB) on Apify

Related guides