# Xchanger API > Live currency and crypto exchange rates through a simple REST API — with API keys, request logs, and usage analytics in one dashboard. Xchanger exposes predictable JSON endpoints for listing assets, fetching exchange rates, and converting amounts. Fiat rates cover every major currency; crypto supports any pair (rates are derived from cached USD prices, so no provider pair is required). Authenticate every request with an `x-api-key` header. Errors use a structured envelope: `{ "error": { "code", "message", "details?" } }`. ## Documentation - [API docs](https://www.xchangerapi.com/docs): Human-readable reference for every endpoint, with a live "try it" panel. - [Pricing](https://www.xchangerapi.com/#pricing): Free and Pro tiers with monthly request limits. - [OpenAPI spec](https://backend-ejsq.onrender.com/api/openapi.json): Machine-readable OpenAPI document. - [Interactive API reference](https://backend-ejsq.onrender.com/api/docs): Scalar UI for the live API. - [Full reference for LLMs](https://www.xchangerapi.com/llms-full.txt): Every endpoint with parameters, response fields, and error codes inline. ## General - [GET /api/general/convert](https://www.xchangerapi.com/docs/general/convert): Convert an amount across asset types (currency or crypto) ## Currency - [GET /api/currency/currencies](https://www.xchangerapi.com/docs/currency/currencies): List supported fiat currencies - [GET /api/currency/exchange-rate](https://www.xchangerapi.com/docs/currency/exchange-rate): Get a fiat exchange rate - [GET /api/currency/convert](https://www.xchangerapi.com/docs/currency/convert): Convert an amount between fiat currencies ## Crypto - [GET /api/crypto/currencies](https://www.xchangerapi.com/docs/crypto/currencies): List supported cryptocurrencies - [GET /api/crypto/exchange-rate](https://www.xchangerapi.com/docs/crypto/exchange-rate): Get a crypto exchange rate (any pair) - [GET /api/crypto/convert](https://www.xchangerapi.com/docs/crypto/convert): Convert an amount between cryptos (any pair) ## Admin - [GET /api/admin/usage](https://www.xchangerapi.com/docs/admin/usage): Get your current API usage