Guides · API

Exchange rate API (ECB official rates)

Use to convert an amount between currencies with an official, citable rate: the European Central Bank's reference rates for about 30 currencies (USD, GBP, JPY, CHF, CNY...), cross rates computed from the euro rates, today or for a past date such as an invoice date. Input: base (default EUR), symbols, amount, optional date.

0.001 USDC per call · GET /v1/fx/rate · free preview at /v1/fx/rate/preview

Parameters

NameRequiredDescription
baseno3-letter currency code to convert from, default EUR (e.g. USD)
symbolsnoCurrencies to convert to, comma separated (e.g. EUR,GBP,JPY); empty = all ~30
amountnoAmount in the base currency, default 1
datenoOptional date YYYY-MM-DD in the last 90 days, e.g. an invoice date

Example request

curl "https://factline.dev/v1/fx/rate?base=USD&symbols=EUR%2CGBP%2CJPY&amount=100"
# 402 Payment Required: pay with an x402 client (USDC on Base or Solana), or send
# Authorization: Bearer <your Factline API key>

Example response

{
  "base": "USD",
  "amount": 100,
  "date": "2026-10-14",
  "rates": {
    "EUR": 85.616,
    "GBP": 74.302,
    "JPY": 15140.5
  },
  "summary": "100 USD = 85.616 EUR, 74.302 GBP, 15140.5 JPY (ECB reference rates of 2026-10-14).",
  "explain": "Euro foreign exchange reference rates published by the ECB around 16:00 CET on TARGET working days; cross rates are computed from the euro rates. For information, not for transactions.",
  "source": "European Central Bank, euro foreign exchange reference rates"
}

Use it from an AI agent

Agents with an x402 wallet call the URL directly and pay per request. Assistants that speak MCP connect to https://factline.dev/mcp. Full reference: docs, OpenAPI, llms.txt. Businesses: API keys with a free trial.

Questions

How much does the Exchange rate API (ECB official rates) cost?

0.001 USDC per call, paid per request with x402 (no account), or included in a Factline API key plan with a free trial. Calls that fail are not charged.

Can I try it for free?

Yes: GET /v1/fx/rate/preview with the same parameters validates your input and shows what the paid answer contains, at no cost.

Where does the data come from?

Official public registers and open data, named with their licence in every response (source field) and at /.well-known/x402-license-provenance.