Loading
Loading
Convert any amount between 171+ fiat currencies and 830+ cryptocurrencies using live exchange rates. Specify the source currency, target currency, and amount to convert.
from and to are required currency codes. amount defaults to 1 if omitted. Use updates to select the rate refresh frequency (1m, 10m, 1h, 1d).
Authorize every request with your API key, passed either as a header or as a query parameter:
X-apiKeyapiKeyThis is version v1.0 of the API.
from and to are required. All other parameters are optional.
formatoptionalStringdefault: jsonResponse format: `json` (default) or `xml`.
fromrequiredStringSource currency code. Required. Supports fiat, crypto, and metals.
torequiredStringTarget currency code. Required. Supports fiat, crypto, and metals.
amountoptionalStringdefault: 1Amount to convert as a positive decimal. Defaults to `1`.
updatesoptionalStringdefault: 1mUpdate frequency: `1m` (default), `10m`, `1h`, or `1d`.
A successful request returns 200 OK with the converted amount, rate, and metadata.
dateTimestamp of when the rate was recorded (UTC, with timezone offset).
fromSource currency code.
toTarget currency code.
rateExchange rate from the source to the target currency.
givenAmountThe amount provided for conversion (as string).
convertedAmountThe converted amount in the target currency.
Besides the response body, every response carries custom headers you can use to track credit usage, and concurrency usage on endpoints that enforce a concurrency limit. See the Custom Response Headers documentation and the endpoints with concurrency limits for more details.
X-Concurrent-Threadsheaderconcurrency-limited endpointsSpecifies the maximum number of concurrent requests allowed.
X-Concurrent-Threads-Activeheaderconcurrency-limited endpointsIndicates the number of active concurrent requests being processed.
X-AF-Credits-Costheaderall responsesSpecifies the number of credits consumed by the current request.
See the HTTP Status Codes documentation for a complete reference of common API errors and HTTP status codes.
Invalid Amount. Please provide amount in decimal format and greater than 0!
Please provide valid updates parameter (1d,1h,10m,1m)
Rates of provided currency [CURRENCY_CODE] are not available in our database!