Currency and finance

ECB Data Portal API

by data.ecb.europa.eu

Currency and finance Added on November 1st, 2026 Checked and working on November 1st, 2026
Visit data.ecb.europa.eu →

What it does

The ECB Data Portal API gives the statistics of the European Central Bank, including the daily euro reference exchange rates, interest rates, money supply, inflation and other euro area series. Build a request from a dataset and series key, such as EXR for exchange rates, and get the data back as SDMX-ML (XML), JSON or CSV. It follows the SDMX 2.1 REST standard, and filters let you ask for date ranges or only the latest observations. Free, no key needed; cite the ECB as the source.
  • API
  • CSV
  • HTTP-GET
  • JSON
  • REST
  • XML

At a glance

API key
Not needed · More APIs with no key
Pricing
Free, no key needed; cite the ECB as the source.
From the browser
Yes (CORS)
Formats
JSON, XML, CSV
Interface
REST, HTTP-GET
Provider
data.ecb.europa.eu
Last checked
Working on November 1st, 2026

More information: https://data.ecb.europa.eu/help/api/overview

Used in: Build a currency converter with free exchange rate APIs

Is this your service? Show that it is listed

Put this badge on your website or in your README; it links to this page. About the badge

Listed on Free Web Services

data.ecb.europa.eu
ECB Data Portal API

Example request

curl

curl 'https://data-api.ecb.europa.eu/service/data/EXR/D.USD.EUR.SP00.A?lastNObservations=1&format=jsondata'

JavaScript

const response = await fetch("https://data-api.ecb.europa.eu/service/data/EXR/D.USD.EUR.SP00.A?lastNObservations=1&format=jsondata");
const data = await response.json();
console.log(data);

Python

import requests

response = requests.get(
    "https://data-api.ecb.europa.eu/service/data/EXR/D.USD.EUR.SP00.A?lastNObservations=1&format=jsondata",
    timeout=30,
)
print(response.json())

The JavaScript works in a web page as well as in Node.js 18 or newer.

Did it work for you?

Tell us what you found when you tried ECB Data Portal API.