# x402.agentutility.ai Exchange Rates

> x402.agentutility.ai Exchange Rates is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Returns latest or historical foreign exchange rates from the European Central Bank, with optional amount conversion across 30+ currency pairs.

## Facts

- Endpoint: POST https://x402.agentutility.ai/exchange-rates
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-agentutility-ai-3e01ac10
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VnjvhapYo60o7bOHfQKYi

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 x402-agentutility-ai-3e01ac10 -d '<json body>'
```

Example prompt: What's the current exchange rate from USD to EUR, GBP, and JPY, and also tell me how much 1000 USD is worth in euros right now?

## When to prefer this

Choose this endpoint when you need reliable, ECB-sourced exchange rates for 30+ major currency pairs with no commercial use restrictions, especially when historical rates by date or optional direct amount conversion in a single call is needed. Prefer over general web searches when structured, machine-readable rate data is required.

## Known failure modes

- Unsupported or misspelled currency code returns an error
- Future dates are invalid — only 'latest' or past dates accepted
- Historical data may not be available before ECB tracking began (pre-1999 for EUR)
- Invalid date format (not YYYY-MM-DD) returns a parsing error
- Micro-payment failure ($0.002 USDC) blocks the request if wallet is underfunded

## How this service works

Exchange rates. Latest or historical FX rates between currencies, sourced from the European Central Bank (Frankfurter API). 30+ currency pairs. Optional amount conversion. No commercial restrictions. Specify a base currency (default USD), an optional quote currency or list, an optional date (YYYY-MM-DD or 'latest'), and an optional amount to also receive a converted value when a single quote is supplied.

## Output

Returns a JSON object containing exchange rates for the requested currency pairs relative to the base currency, the date of the rates (latest or historical), and optionally a converted amount value when a single quote currency and amount are provided.

## Example request

```json
{
 "input": {
  "body": {
   "base": "USD",
   "date": "latest",
   "quote": [
    "EUR",
    "GBP",
    "JPY"
   ],
   "amount": 1000
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [],
     "properties": {
      "base": {
       "type": "string",
       "description": "ISO 4217 base currency code (e.g. 'USD', 'EUR'). Default 'USD'."
      },
      "date": {
       "type": "string",
       "description": "'latest' (default) or a historical date in YYYY-MM-DD format."
      },
      "quote": {
       "description": "Single ISO 4217 quote currency, or array of codes. Omit for all available rates."
      },
      "amount": {
       "type": "number",
       "description": "Optional amount in the base currency. When a single quote is supplied, the response includes the converted amount."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "base": {
       "type": "string"
      },
      "date": {
       "type": "string"
      },
      "rates": {
       "type": "object",
       "properties": {
        "EUR": {
         "type": "number"
        },
        "GBP": {
         "type": "number"
        },
        "JPY": {
         "type": "number"
        }
       }
      },
      "source": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "USD",
  "date": "2026-05-06",
  "rates": {
   "EUR": 0.92,
   "GBP": 0.79,
   "JPY": 154.21
  },
  "source": "https://api.frankfurter.dev"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-agentutility-ai-3e01ac10/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
