# x402 Multi-Tool API — FX Rates Endpoint

> x402 Multi-Tool API — FX Rates Endpoint is a paid API for AI agents from x402deploy.vercel.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-16).

Returns live foreign exchange rates for a given base currency, optionally filtered to specific target currency codes.

## Facts

- Endpoint: POST https://x402deploy.vercel.app/api/fx
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-multi-tool-api-fx-rates-endpoint-71554fe9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JayPb7STDe8GSDb1C4hUD

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-multi-tool-api-fx-rates-endpoint-71554fe9 -d '<json body>'
```

Example prompt: What's the current exchange rate from USD to EUR, JPY, and VND?

## When to prefer this

Choose this endpoint when you need live foreign exchange rates without managing API keys or subscriptions — ideal for AI agents that can handle x402 micropayments and need on-demand forex data at very low per-call cost. Prefer it over free FX APIs when rate limits or key management are a concern, and over heavier financial data platforms when only spot rates are needed.

## Known failure modes

- Invalid or unsupported base currency code returns an error or empty rates
- Malformed symbols string (e.g. typos in currency codes) may return partial or empty results
- Rate data may be slightly delayed depending on upstream provider refresh cadence
- Payment failure via x402 protocol will block the request entirely
- If the x402 payment is not properly handled, a 402 Payment Required response is returned

## How this service works

Pay-per-request data toolkit for AI agents — 13 no-auth tools, $0.005 USDC each via x402. Web search, read URL, crypto price/markets/trending, Wikipedia, news headlines, weather, FX rates, IP geolocation, DNS lookup, stock quotes, and domain WHOIS.

## Output

A JSON object containing the base currency, a map of target currency codes to their current exchange rates, the total number of rates returned, and a timestamp of when the rates were last updated.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "base": {
   "type": "string",
   "description": "Base currency ISO code, e.g. 'USD'"
  },
  "symbols": {
   "type": "string",
   "description": "Comma-separated target codes to filter, e.g. 'EUR,VND,JPY'. Empty = all."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "base": "USD",
 "rates": {
  "EUR": 0.8753,
  "JPY": 161.33,
  "VND": 26208.11
 },
 "total": 3,
 "updated": "Fri, 03 Jul 2026 00:00:01 +0000"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-multi-tool-api-fx-rates-endpoint-71554fe9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402deploy.vercel.app](https://www.zero.xyz/host/x402deploy.vercel.app/llms.txt)
