# x402 FX Exchange Rate API

> x402 FX Exchange Rate API is a paid API for AI agents from x402-api-production-bd43.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Returns the current foreign exchange (FX) rate between two currencies via a micropayment-gated GET endpoint

## Facts

- Endpoint: GET https://x402-api-production-bd43.up.railway.app/fx?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-fx-exchange-rate-api-14988fc5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2Tkeq3vNw1qnrxzpNQz-w

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-fx-exchange-rate-api-14988fc5
```

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

## When to prefer this

Choose this endpoint when you need a lightweight, real-time FX rate lookup for a specific currency pair and are operating in an x402 micropayment environment. It is well-suited for agents that need to perform currency conversions on-demand without a long-term API subscription, paying only $0.01 USDC per call. Prefer alternatives if you need bulk historical rates, a full currency list, or cannot use the x402 payment protocol.

## Known failure modes

- Invalid or unsupported currency code returns an error or empty result
- Payment failure (402) if USDC micropayment is not completed
- Missing required 'from' or 'to' parameters results in a bad request error
- Network or upstream data provider unavailability may cause timeout or 5xx error

## How this service works

Paid API endpoints for prices, weather, FX, news, gas, dominance, fear/greed, ATH, and more

## Output

Returns the current exchange rate value for the specified currency pair (from → to), enabling currency conversion calculations in real time.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "description": "Target currency (e.g. EUR)"
  },
  "from": {
   "type": "string",
   "description": "Source currency (e.g. USD)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-fx-exchange-rate-api-14988fc5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-api-production-bd43.up.railway.app](https://www.zero.xyz/host/x402-api-production-bd43.up.railway.app/llms.txt)
