Developers

The Currency-Exchange.app API

Live and historical exchange rates, conversion and currency metadata for 150+ currencies, from your own code or an AI agent, one GET request per answer.

  • REST + JSON
  • x-api-key
  • MCP server
  • 150+ currencies
APIhttps://api.currency-exchange.app

Quick start

  1. Sign up and open your workspace.
  2. Under API keys, create a key and copy it: it is shown once.
  3. Send it in the x-api-key header with an amount and two ISO 4217 codes, as below.
Convert an amountbash
curl --get "https://api.currency-exchange.app/currency/convert" \
  --data-urlencode "amount=1240.50" \
  --data-urlencode "from=USD" \
  --data-urlencode "to=EUR" \
  -H "x-api-key: $API_KEY"
Convert from TypeScriptts
const query = new URLSearchParams({ amount: '1240.50', from: 'USD', to: 'EUR' });
const response = await fetch('https://api.currency-exchange.app/currency/convert?' + query, {
  headers: { 'x-api-key': process.env.API_KEY ?? '' },
});
const { convertedAmount, exchangeRate, rateTime } = await response.json();
// store rateTime with the amount, so the conversion can be explained later

Four currency routes

Every route is one GET request with ISO 4217 codes and costs 1 credit per call.

RouteCreditsAnswers
GET /currency/convert1An amount converted from one currency to another at the live rate, or at a historical rate with date=YYYY-MM-DD, with the rate and its time.
GET /currency/exchange-rate1The live or historical rate for a currency pair, with the inverse rate and the rate timestamp.
GET /currency/list1The supported currencies, searchable and paginated: code, name, symbol and countries.
GET /currency/details1One currency’s metadata: ISO code and number, symbol and native symbol, units, banknotes and coins, decimal digits, countries.

Existing integrations keep working.

The previous paths (/v1-convert-currency, /v1-get-currency-exchange-rate, /v1-list-currencies, /v1-get-currency-details) answer with the same JSON as before, with the same API keys.

Authentication

  • Every request carries a workspace API key in the x-api-key header. A key belongs to one workspace and spends that workspace’s credits.
  • Keep keys on your server, never in browser code, analytics events or shared spreadsheets.
  • Revoke a key under API keys and it stops working at once.

Errors, credits and limits

  • Errors answer { "error": "CODE", "message": "…" } with the HTTP status that fits.
  • Each call spends 1 credit; 402 INSUFFICIENT_CREDITS means the workspace has none left (top up on the pricing page, or turn on auto top-up).
  • Over the rate limit you get 429 with Retry-After in seconds; back off and retry after that time.

MCP server for AI agents

Connect Claude, Cursor, VS Code or any client that speaks Streamable HTTP to https://mcp.currency-exchange.app/mcp with your API key, and your agent converts amounts and reads rates with the same credits and answers as the REST API.

Claude Codebash
claude mcp add --transport http currency-exchange-app https://mcp.currency-exchange.app/mcp --header "x-api-key: <your-api-key>"

Adds the server to the current project; add --scope user to use it in every project.

API reference

Every route with its parameters, answers and errors, generated from the API’s own OpenAPI spec, so it is always current.