Vai al contenuto principale
GET
Get historical exchange rates
L’endpoint è in beta chiusa. L’accesso e le date disponibili dipendono dall’abilitazione e dai dati memorizzati.
String
obbligatorio
Chiave API di Exchange Rates.
String
obbligatorio
Valuta di base come codice ISO 4217.
String
obbligatorio
Data nel formato YYYY-MM-DD.
String
Valute di destinazione facoltative come codici ISO 4217 separati da virgole. Se omesse, vengono restituiti tutti i tassi disponibili.
La risposta contiene la valuta di base, la data e i tassi disponibili.

Parametri della query

api_key
string
obbligatorio

Your unique API key for authentication

base
string
predefinito: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>
obbligatorio

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

Risposta

Successful response

base
string
obbligatorio

The base currency used to get the exchange rates

Esempio:

"EUR"

date
string<date>
obbligatorio

The date the currencies were pulled from

Esempio:

"2024-01-01"

exchange_rates
object
obbligatorio

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

Esempio: