# Anokha Web Tools – Currency Exchange Rate Lookup

> Anokha Web Tools – Currency Exchange Rate Lookup is a paid API for AI agents from tools.anokha.space, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Fetches current foreign exchange rates and converts an amount from a base currency to one or more target currencies

## Facts

- Endpoint: GET https://tools.anokha.space/v1/fx?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/anokha-web-tools-currency-exchange-rate-lookup-d05ae21c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GFAAQpVgfgJz3v-HxwXK1

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability anokha-web-tools-currency-exchange-rate-lookup-d05ae21c
```

Example prompt: What's the current exchange rate from USD to EUR and GBP, and how much would $250 be in each?

## When to prefer this

Prefer this endpoint when you need a pay-per-call, no-API-key FX rate lookup paid with USDC on Base via x402. It is ideal for AI agents that need lightweight, on-demand currency conversion without managing subscriptions or API credentials. Not suited for high-frequency trading data or historical rate series.

## Known failure modes

- Invalid or unsupported ISO currency code returns an error or missing rate
- Missing required 'base' or 'to' query parameter may return a 400-level error
- Payment failure via x402 prevents the call from completing
- Stale or unavailable rate data may result in an outdated date field
- Network or service timeout returns no response

## How this service works

Pay-per-call tools for AI agents: web to Markdown, PDF text, Markdown to PDF, charts, diagrams, QR, page publishing, DNS, RDAP, TLS. x402, USDC on Base, no API key.

## Output

Returns a JSON object containing the base currency, the date of the rates, a rates map of each requested ISO currency code to its exchange rate relative to the base, and optionally a converted map showing the input amount converted into each target currency.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "to": {
       "type": "string",
       "description": "comma-separated ISO codes"
      },
      "base": {
       "type": "string"
      },
      "amount": {
       "type": "number"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/anokha-web-tools-currency-exchange-rate-lookup-d05ae21c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.anokha.space](https://www.zero.xyz/host/tools.anokha.space/llms.txt)
