# FX Currency Rate Lookup

> FX Currency 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-09-15).

Returns the current exchange rate between a base currency and a quote currency.

## Facts

- Endpoint: POST https://x402-canary.nicolas-x402-16f380a7.workers.dev/v1/fx/rate
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fx-currency-rate-lookup-fc510574
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C7CiTEHn9cHNGEGgPgP0q

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-currency-rate-lookup-fc510574 -d '<json body>'
```

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

## When to prefer this

Use this endpoint when you need a quick, pay-per-call FX rate lookup between two currency pairs without managing an API key subscription. It is well-suited for AI agents that need on-demand currency conversion rates within automated workflows, especially when already operating within the x402 payment protocol ecosystem.

## Known failure modes

- Unsupported or invalid currency code returns an error
- Missing base or quote parameter causes a 400-level error
- Payment not included or insufficient balance causes a 402 Payment Required response
- Temporary upstream FX data unavailability may result in a 5xx error

## 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

Returns a JSON object with the base currency, quote currency, and the current exchange rate as a decimal number, along with metadata indicating the engine used for the rate lookup.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "base": {
   "type": "string",
   "example": "USD"
  },
  "quote": {
   "type": "string",
   "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-currency-rate-lookup-fc510574/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)
