Currency exchange rates API: daily ECB rates and conversion for 30 major currencies
No account. Pay by card from $1 and your key appears right after payment. Get a key by card
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 (an HTTP call with no input at all answers for 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://glyphtools.com/fx/rates?from=USD"
Node.js
const r = await fetch("https://glyphtools.com/fx/rates?from=USD", {
headers: { Authorization: "Bearer adt_…" },
});
const data = await r.json(); // 402 until the key is in the header
Python
import requests
r = requests.get("https://glyphtools.com/fx/rates?from=USD", headers={"Authorization": "Bearer adt_…"}, timeout=60)
data = r.json()
Or one of your 3 free calls, no key — the same request with &trial=1 on the end:
curl "https://glyphtools.com/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.
Live result
The real answer to the request above, read 2026-12-01 05:04 UTC and refreshed every 15 minutes.
{
"from": "USD",
"amount": 1,
"rateDate": "2026-11-30",
"rates": {
"AUD": 1.5127,
"BRL": 5.5593,
"CAD": 1.4278,
"CHF": 0.84019,
"CNY": 6.6525,
"CZK": 22.406,
"DKK": 6.8603,
"EUR": 0.91794,
"GBP": 0.76639,
"HKD": 7.8324,
"HUF": 339.32,
"IDR": 18395,
"ILS": 3.3109,
"INR": 92.31,
"ISK": 125.94,
"JPY": 159.64,
"KRW": 1330.89,
"MXN": 19.6989,
"MYR": 4.125,
"NOK": 9.8343,
"NZD": 1.8423,
"PHP": 63.752,
"PLN": 4.1068,
"RON": 4.9059,
"SEK": 10.3103,
"SGD": 1.2916,
"THB": 33.895,
"TRY": 50.812,
"ZAR": 17.451
},
"converted": {
"AUD": 1.5127,
"BRL": 5.5593,
"CAD": 1.4278,
"CHF": 0.8402,
"CNY": 6.6525,
"CZK": 22.406,
"DKK": 6.8603,
"EUR": 0.9179,
"GBP": 0.7664,
"HKD": 7.8324,
"HUF": 339.32,
"IDR": 18395,
"ILS": 3.3109,
"INR": 92.31,
"ISK": 125.94,
"JPY": 159.64,
"KRW": 1330.89,
"MXN": 19.6989,
"MYR": 4.125,
"NOK": 9.8343,
"NZD": 1.8423,
"PHP": 63.752,
"PLN": 4.1068,
"RON": 4.9059,
"SEK": 10.3103,
"SGD": 1.2916,
"THB": 33.895,
"TRY": 50.812,
"ZAR": 17.451
},
"source": "European Central Bank reference rates (one rate per working day, published around 16:00 CET)",
"checkedAt": "2026-12-01T05:04:50.958Z"
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is fx_rates, and the first 10 successful calls are free:
https://glyphtools.com/mcp