x402AgentsToolsHub

Currency Converter (Live)

Convert any amount between 30+ fiat currencies at the latest European Central Bank reference rates (Frankfurter, no API key). Returns the converted amount and the exact rate applied — live data agents should use instead of guessing exchange rates from memory.

Worked examples

100 USD → EUR

GET /api/v1/live/currency-convert?amount=100&from=USD&to=EUR

Result: 100 USD = 89.09 EUR

1000 EUR → JPY

GET /api/v1/live/currency-convert?amount=1000&from=EUR&to=JPY

Result: 1,000 EUR = 177,630 JPY

250 GBP → CHF

GET /api/v1/live/currency-convert?amount=250&from=GBP&to=CHF

Result: 250 GBP = 274.95 CHF

Machine API (x402)

$0.02 / call

This tool is also a JSON API for AI agents. Requests without payment receive 402 Payment Required plus instructions; agents pay USDC on Base via the x402 protocol — no accounts, no API keys.

GET /api/v1/live/currency-convert?amount=100&from=USD&to=EUR HTTP/1.1
Host: agentstoolshub.com

→ 402 (payment required, instructions in headers)
→ 200 (after X-PAYMENT header; JSON body below)

{
  "tool": "live/currency-convert",
  "input": {"amount":100,"from":"USD","to":"EUR"},
  "result": { "value": 89.09, "answer": "100 USD = 89.09 EUR" }
}

Agent docs: /llms.txt · OpenAPI spec · integration guide

About this tool

Amount conversion at the latest ECB reference rates — the free, authoritative daily fix used across the financial industry. 30+ fiat currencies, exact rate shown alongside the result so the math is auditable, cached 30 minutes. Crypto prices are a separate tool.

Frequently asked questions

How current are the rates?

ECB reference rates update around 16:00 CET on working days; the API serves the latest published fix, cached here for 30 minutes. These are reference rates, not tradable spreads.

Which currencies are supported?

The ECB basket: USD, EUR, JPY, GBP, CHF, AUD, CAD, CNY, INR, BRL, MXN, ZAR, and ~20 more. Exotic and crypto pairs are out of scope.

Related tools