Exchange Rates API
Convert exchange rates
The convert endpoint enables precise currency conversion by transforming specific amounts between currencies using real-time exchange rates, ideal for financial calculations and payment processing.
GET
Convert exchange rates
Getting started
Base URL
Validation endpoint
Theconvert endpoint requires your API key, a base currency, and a target parameter to perform currency conversions.
Request parameters
Your unique API key. Note that each user has unique API keys for each of
Cleariflow 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 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. Note that unlinke the other endpoints,
convert only accepts one target currency at a time.The historical date you’d like to get rates from, in the format of YYYY-MM-DD. If you leave this blank, it will use the latest available rate(s).
Response parameters
The API response is returned in a universal and lightweight JSON format.The exchange rate used to convert the base_amount from the base currency to the target currency.
Query Parameters
Response
Successful response