REST API
Exchange Rates
Public API for daily currency exchange rates.
GET https://api.elexess.com/functions/v1/exchange-rate
The Exchange Rates API is a public endpoint — no authentication is required.
Rates are sourced from the European Central Bank (ECB) and updated daily. All rates use EUR as the base currency.
Example Request
curl "https://api.elexess.com/functions/v1/exchange-rate"
Response
{
"success": true,
"date": "2026-02-25",
"rates_count": 31,
"rates": [
{ "currency": "USD", "rate": 1.0458 },
{ "currency": "JPY", "rate": 158.59 },
{ "currency": "GBP", "rate": 0.8314 },
{ "currency": "CHF", "rate": 0.9435 },
{ "currency": "CNY", "rate": 7.6184 }
]
}
| Field | Type | Description |
|---|---|---|
success | boolean | Whether the rates were fetched and stored successfully |
date | string | The date the rates apply to (ISO 8601) |
rates_count | number | Total number of currency pairs available |
rates | array | First 5 currency pairs (EUR → target) |
Supported Currencies
The API provides exchange rates for all currencies published by the ECB, including USD, GBP, JPY, CHF, CNY, PLN, CAD, and others.
Error Response
| Status | Body | Description |
|---|---|---|
| 500 | {"error":"..."} | Failed to fetch or parse ECB data |