Currency exchange rates API: live rates and conversion for 30 major currencies

$0.002 per call · failed calls are never charged · no account or subscription: pay per call with a card key or USDC

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.

Run it free (25 free calls) Buy credits by card (from $1) Example result (JSON)

Try it with your own inputs

Base currency as a three-letter ISO 4217 code, e.g. USD

Uses one of your 25 free calls. Nothing is charged, and a call that fails is not counted.

Inputs

NameTypeDescription
from (required)stringBase currency as a three-letter ISO 4217 code, e.g. USD
tostringOptional comma-separated target currency codes, e.g. EUR,GBP; default is all available currencies
amountnumberOptional 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

Related tools