Currency exchange rates API: live rates and conversion for 30 major currencies
Currency exchange rates and conversion: rates from a base currency to one or many currencies (USD, EUR, GBP, JPY, CHF, SEK, CAD, AUD, CNY, INR and about 20 more), with an optional amount to convert, from European Central Bank reference rates. Use to convert prices, settle an invoice in another currency or show a rate in an agent's answer.
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/rates?from=USD"
Or one of your 25 free calls, no key:
curl "https://agent-data-tools.revmesh2074.workers.dev/fx/rates?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 or Solana over x402; Base or Tempo over MPP) 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_rates, and the first 25 successful calls are free:
https://agent-data-tools.revmesh2074.workers.dev/mcp