# Agent Data Tools – Currency Exchange Rates

> Agent Data Tools – Currency Exchange Rates is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-14).

Returns live currency exchange rates from a base currency to one or more target currencies, with optional amount conversion, sourced from European Central Bank reference rates.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/fx?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-currency-exchange-rates-06b822ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DIuP-Ai12_UBAo48osQIr

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 agent-data-tools-currency-exchange-rates-06b822ab
```

Example prompt: What's today's ECB exchange rate from USD to EUR and GBP, and how much would 250 USD convert to in each?

## When to prefer this

Choose this endpoint when you need authoritative ECB reference exchange rates without requiring an API key or account setup, and you want pay-per-call micro-pricing in USDC. Ideal for AI agents needing occasional or burst currency lookups where subscription APIs are overkill. Best for EUR-anchored reference rates; if you need real-time mid-market or bid/ask spreads from banks, prefer a dedicated forex data provider.

## Known failure modes

- Invalid or unsupported ISO 4217 currency code returns an error
- ECB rates not yet published for the current day (rates publish ~16:00 CET on working days) may return previous day's rates
- Missing required 'from' parameter returns a 400-level error
- Payment failure or insufficient USDC balance blocks the request via x402
- Network or Cloudflare Worker timeout

## How this service works

Read public static documentation as text or Markdown with code, tables, headings and links for $0.002 USDC on Base via x402. Inspect real cached examples and an unsigned quote, then buy with a capped Node CLI. No account or API key. No JavaScript rendering, authenticated or paywalled access. Other paid utilities remain available.

## Output

A JSON object containing the base currency, requested target currencies with their exchange rates, the optional converted amounts if an amount was specified, the ECB rate date (published around 16:00 CET on working days), and a timestamp for when the rates were checked.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "from"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Optional comma-separated target currency codes, e.g. EUR,GBP; default is all available currencies"
      },
      "from": {
       "type": "string",
       "description": "Base currency as a three-letter ISO 4217 code, e.g. USD"
      },
      "amount": {
       "type": "number",
       "description": "Optional amount of the base currency to convert (default 1)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "from": "USD",
  "rates": {
   "EUR": 0.89437,
   "GBP": 0.75555,
   "SEK": 10.0139
  },
  "amount": 100,
  "source": "European Central Bank reference rates (one rate per working day, published around 16:00 CET)",
  "rateDate": "2026-10-12",
  "checkedAt": "2026-10-13T09:00:00.000Z",
  "converted": {
   "EUR": 89.437,
   "GBP": 75.555,
   "SEK": 1001.39
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-currency-exchange-rates-06b822ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
