# Currency Conversion API (x402-canary)

> Currency Conversion API (x402-canary) 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).

Converts a monetary amount from one currency to another and returns the converted value using an FX engine.

## Facts

- Endpoint: POST https://x402-canary.nicolas-x402-16f380a7.workers.dev/v1/currency-convert
- 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/currency-conversion-api-x402-canary-912be83e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_F9IsSnGUkkDE9HCMRESv2

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 currency-conversion-api-x402-canary-912be83e -d '<json body>'
```

Example prompt: Convert 100 USD to EUR for me — I need to know how much that is in euros right now.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call currency conversion without a subscription, especially within a coding-agent or x402-payment-enabled workflow where micropayments via USDC are already supported.

## Known failure modes

- Unsupported or invalid currency codes return an error
- Missing required fields (base, quote, amount) cause a 400-level response
- Payment failure or insufficient USDC balance blocks the call at $0.01 per request
- Network or worker-side errors may return 5xx responses

## 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 containing the original amount, the converted amount in the target currency, and metadata about the FX engine used for the calculation.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "amount": 100,
   "converted": 91
  },
  "meta": {
   "engine": "fx"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/currency-conversion-api-x402-canary-912be83e/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)
