Anokha Web Tools

GET /v1/fx

Currency exchange rates and conversion for 30+ currencies from official European Central Bank reference rates.

Price: $0.002 per call, paid in USDC on Base via x402. No API key or signup.

Example call

npx x402-fetch "https://tools.anokha.space/v1/fx?base=USD&to=EUR%2CINR&amount=100"

Example response

{
  "base": "USD",
  "date": "2026-09-25",
  "rates": {
    "EUR": 0.877
  },
  "converted": {
    "EUR": 87.7
  }
}

How payment works

The first request returns HTTP 402 with a PAYMENT-REQUIRED header. An x402 client signs a USDC authorization and retries with a PAYMENT-SIGNATURE header. You are charged only when the call succeeds.