# XE API on SandBase

> XE data API endpoints available through one SandBase API key.

Source: https://www.sandbase.ai/apis/xe

- Endpoints: 7
- Call: `POST https://api.sandbase.ai/v1/api/{vendor}/{endpoint}` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body
- Billing: pay per call from one SandBase balance; no provider account or subscription needed

## Endpoints

- [XE All Rates](https://www.sandbase.ai/apis/xe/all-rates.md): $0.06 per call
  Get all mid-market exchange rates relative to USD. Returns a timestamp and a rates object mapping every supported currency code to its USD-relative rate. The rate sheet refreshes every few minutes.
- [XE Convert Currency](https://www.sandbase.ai/apis/xe/convert-currency.md): $0.03 per call
  Convert a specific amount from source to target currency. Returns the same structure as get_live_exchange_rate with the specified amount applied to the mid-market rate.
- [XE Currency Details](https://www.sandbase.ai/apis/xe/currency-details.md): $0.03 per call
  Get the ISO 2-letter country code associated with a specific currency. Useful for mapping currencies to their issuing country.
- [XE Currency Symbols](https://www.sandbase.ai/apis/xe/currency-symbols.md): $0.03 per call
  Get metadata and classification for all supported currencies. Each currency includes flags for obsolete status, crypto classification, and whether it is sellable or buyable on the XE platform.
- [XE Historical Chart Data](https://www.sandbase.ai/apis/xe/historical-chart-data.md): $0.03 per call
  Retrieve historical exchange rate data points for a currency pair. Returns multiple time-series batches at different intervals (daily, hourly, 15-minute). Each batch contains a start time, interval in...
- [XE Live Exchange Rate](https://www.sandbase.ai/apis/xe/live-exchange-rate.md): $0.03 per call
  Get the live mid-market exchange rate for a specific currency pair. Computes the cross-rate from USD-based rates. When amount is provided, also returns the converted value.
- [XE Popular Currency Pairings](https://www.sandbase.ai/apis/xe/popular-currency-pairings.md): $0.03 per call
  Get popular currency pairings for a base currency with real-time rates and trend data including rate change, percentage change, and direction. Returns the most commonly tracked pairs from the given ba...

## Use it through SandBase

- Base URL: `https://api.sandbase.ai/v1`, with `Authorization: Bearer $SANDBASE_API_KEY`.
- Language models use the OpenAI-compatible `POST /v1/chat/completions`; media models use `POST /v1/run`; data APIs use `POST /v1/api/{vendor}/{endpoint}`.
- AI agents can connect through the SandBase MCP server or CLI: https://www.sandbase.ai/skill.md
- Every model and API page has a Markdown twin at the same URL plus `.md`. Full index: https://www.sandbase.ai/llms.txt
