API & MCP

Everything a person can do on Travel Exchange Fee Calculator, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Travel Exchange Fee Calculator

Enter what you spend abroad and the terms of your payment options – foreign transaction fee, exchange-rate mark-up, ATM fees, “pay in your currency” (dynamic currency conversion) and exchange-bureau spreads. The calculator converts at the ECB reference rate (or your own rate) and shows the effective rate, total cost and extra cost of each option, cheapest first.

Inputs of Travel Exchange Fee Calculator
FieldTypeDefaultDescription
amount (required)number500Amount spent abroad. In the local (spending) currency.
spendCurrency (required)text"USD"Spending currency
homeCurrency (required)text"EUR"Home (account) currency
rateSourceselect (ecb, manual)"ecb"Reference rate
manualRatenumber—Manual rate: 1 home-currency unit =. …units of the spending currency (e.g. 1 EUR = 1.10 USD → 1.10). Used with "Enter a rate manually", or as fallback when the ECB is unreachable.
optionstable[{"name":"Card without foreign transaction fee","method":"card","feePercent":0,"Payment options. Example values – replace them with your own card’s and provider’s terms. EU card issuers must state their conversion mark-up over the ECB rate.
atmWithdrawalsinteger1Number of ATM withdrawals. The fixed fee of ATM options is charged per withdrawal.

Example request

500 USD with the example options (manual rate 1 EUR = 1.10 USD)

curl -X POST https://travelexchangefeecalculator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"amount":500,"spendCurrency":"USD","homeCurrency":"EUR","rateSource":"manual","manualRate":1.1}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "travel-exchange-fee-calculator": { "type": "http", "url": "https://travelexchangefeecalculator.usefulweb.site/mcp" }
  }
}