# FX Exchange Rate Lookup

> FX Exchange Rate Lookup is a paid API for AI agents from x402-canary.nicolas-x402-16f380a7.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Returns the current exchange rate between two currencies (base and quote) via a lightweight FX engine.

## Facts

- Endpoint: POST https://x402-canary.nicolas-x402-16f380a7.workers.dev/v1/exchange-rates?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fx-exchange-rate-lookup-29afb67c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U6I2atSMJywJolTY7j-GH

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 fx-exchange-rate-lookup-29afb67c -d '<json body>'
```

Example prompt: What's the current exchange rate from USD to EUR?

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.01 USDC) programmatic FX rate lookup between two currency pairs without needing historical data, batch conversions, or deep financial analytics. It is well-suited for coding agents that need a lightweight, pay-per-call currency rate within an x402-compatible payment flow.

## Known failure modes

- Unsupported or invalid currency code returns an error response
- Network timeout or worker unavailability returns a 5xx error
- Missing required base or quote parameter may return a validation error
- Payment failure (x402 protocol) may block access if the $0.01 USDC fee is not fulfilled

## How this service works

Free need-to-tool routing plus pay-per-call npm docs and TypeScript API signatures, npm breaking-change diffs, JavaScript-rendered browser snapshots and deterministic coding-agent checks via AgentCash/x402.

## Output

A JSON object containing the base currency, quote currency, and the current exchange rate as a decimal number, plus metadata indicating the FX engine used (e.g. {"data":{"base":"USD","rate":0.91,"quote":"EUR"},"meta":{"engine":"fx"}}).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "base": {
   "type": "string",
   "default": "USD",
   "example": "USD"
  },
  "quote": {
   "type": "string",
   "default": "EUR",
   "example": "EUR"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "base": "USD",
   "rate": 0.91,
   "quote": "EUR"
  },
  "meta": {
   "engine": "fx"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fx-exchange-rate-lookup-29afb67c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-canary.nicolas-x402-16f380a7.workers.dev](https://www.zero.xyz/host/x402-canary.nicolas-x402-16f380a7.workers.dev/llms.txt)
