ECB Exchange Rates API
European Central Bank reference rates
Live Technical Metrics
Pre-calculated · updated every 20 min| Uptime Status | ✅ Operational (HTTP 200) |
|---|---|
| Server Latency | 🟡 254 ms — Moderate |
| Hosting Server | myracloud |
| Content-Type | text/xml |
| Cache-Control | max-age=300 |
| CORS Support | ✅ Enabled — safe for browser fetch() |
| Authentication | ✅ None required — call the API directly without a key |
| Category | Currency Exchange |
- Last HTTP status:
- 200
- Measured latency:
- 254 ms
Quick Integration Code
✅ No API key neededfetch("https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml")
.then(response => {
if (!response.ok) throw new Error(`HTTP ${response.status}`);
return response.json();
})
.then(data => console.log(data))
.catch(error => console.error("Request failed:", error));
import requests
url = "https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml"
headers = {
"Accept": "application/json",
# "Authorization": "Bearer YOUR_TOKEN_HERE",
}
response = requests.get(url, headers=headers, timeout=10)
response.raise_for_status()
data = response.json()
print(data)
curl -X GET "https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml" \
-H "Accept: application/json" \
-H "User-Agent: MyApp/1.0" \
--max-time 10 \
--silent | python3 -m json.tool
Sample JSON Response — Currency Exchange
Currency Exchange{
"base": "USD",
"date": "2025-01-15",
"rates": {
"EUR": 0.9234,
"GBP": 0.7891,
"JPY": 157.23,
"CAD": 1.4312,
"AUD": 1.6012,
"CNY": 7.2847,
"BTC": 0.0000148
},
"timestamp": 1736956800
}