Currency exchange rates and conversion
Foreign exchange rates from the European Central Bank for about 30 major currencies (USD, EUR, GBP, JPY, CHF, SEK, CAD, AUD, CNY, INR, BRL and more). Give a base currency, optionally the target currencies and an amount, and get the rates, the converted amounts and the date the rates apply to. Use for currency conversion, invoice and price calculations, and reporting in another currency.
Inputs
| Name | Type | Description |
|---|---|---|
from (required) | string | Base currency as a three-letter ISO 4217 code, e.g. USD |
to | string | Optional comma-separated target currency codes, e.g. EUR,GBP; default is all available currencies |
amount | number | Optional amount of the base currency to convert (default 1) |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/fx?from=USD"
Or one of your 25 free calls, no key:
curl "https://agent-data-tools.revmesh2074.workers.dev/fx?from=USD&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum, Monad, World Chain or Tempo) and retries.
Example result
{
"from": "USD",
"amount": 100,
"rateDate": "2026-10-12",
"rates": {
"EUR": 0.89437,
"GBP": 0.75555,
"SEK": 10.0139
},
"converted": {
"EUR": 89.437,
"GBP": 75.555,
"SEK": 1001.39
},
"source": "European Central Bank reference rates (one rate per working day, published around 16:00 CET)",
"checkedAt": "2026-10-13T09:00:00.000Z"
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is fx, and the first 25 successful calls are free:
https://agent-data-tools.revmesh2074.workers.dev/mcp