Saltar al contenido principal
GET
Get historical exchange rates
El endpoint está en beta cerrada. El acceso y las fechas disponibles dependen de la habilitación y de los datos almacenados.
String
requerido
Clave de API de Exchange Rates.
String
requerido
Moneda base como código ISO 4217.
String
requerido
Fecha en formato YYYY-MM-DD.
String
Monedas de destino opcionales como códigos ISO 4217 separados por comas. Si se omite, devuelve todos los tipos disponibles.
La respuesta incluye la moneda base, la fecha y los tipos de cambio disponibles.

Parámetros de consulta

api_key
string
requerido

Your unique API key for authentication

base
string
predeterminado:EUR

The base currency used to get the latest exchange rate(s) for. Uses the ISO 4217 currency standard

target
string

The target currency or currencies to get the exchange rate of versus the base currency. Multiple currencies should be separated by commas. If not specified, all available currencies will be returned.

date
string<date>
requerido

The historical date you'd like to get rates from, in the format of YYYY-MM-DD

Respuesta

Successful response

base
string
requerido

The base currency used to get the exchange rates

Ejemplo:

"EUR"

date
string<date>
requerido

The date the currencies were pulled from

Ejemplo:

"2024-01-01"

exchange_rates
object
requerido

A JSON Object containing each of the target currency as the key and its exchange rate versus the base currency as that key's value

Ejemplo: