Historical exchange rates
The historical
endpoint functions almost exactly like the live
endpoint, except it requires a date parameter and returns the exchange rates for that specific date for a given set of currencies.
Note: the
historical
endpoint is currently in closed beta.
Getting started
Base URL
Validation endpoint
The base currency is the currency you’re converting from, while the target currency or currencies are what you’re converting to. Also, if no target currency or currencies are specified, then all available currencies are returned. You can see a full list of supported currencies here.
This was a successful request, and because no target currency or currencies were included, the exchange rate of all available currencies were included in the response:
Request parameters
Your unique API key. Note that each user has unique API keys for each of Abstract’s APIs, so your Exchange Rates API key will not work for your IP Geolocation API, for example.
The base currency used to get the latest exchange rate(s) for. Uses the ISO 4217 currency standard (e.g., USD for United States Dollars), like all currency parameters in this API.
The historical date you’d like to get rates from, in the format of YYYY-MM-DD.
The target currency or currencies to get the exchange rate of versus the base currency. Like the base parameters, any currency passed here follows the ISO 4217 standard. If multiple currencies are passed in the target, they should be separated by commas (e.g., &target=EUR,CAD,AUD).
Response parameters
The API response is returned in a universal and lightweight JSON format.
The base currency used to get the exchange rates.
The date the currencies were pulled from, per the successful request.
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.