# x402 Alert Exchange Rates API

> x402 Alert Exchange Rates API is a paid API for AI agents from x402-alert.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Fetches current foreign exchange rates for currency pairs, paid via USDC on Base using the x402 protocol

## Facts

- Endpoint: POST https://x402-alert.vercel.app/api/exchange-rates
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-alert-exchange-rates-api-e892fb2d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uWAIDjRiN_uEmjo_alEH5

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-alert-exchange-rates-api-e892fb2d -d '<json body>'
```

Example prompt: What is the current exchange rate from USD to EUR? I need real-time FX data and I'm happy to pay per call via USDC.

## When to prefer this

Choose this endpoint when you need real-time exchange rate data and are operating in an x402-compatible payment environment using USDC on Base. Ideal for agents that are already integrated with crypto micropayments and need per-call FX lookups without a subscription. Best when you want pay-as-you-go access ($0.05 per call) rather than a traditional API key subscription.

## Known failure modes

- Payment failure if USDC balance is insufficient or x402 protocol handshake fails
- Invalid or unsupported currency pair returns an error
- Stale or unavailable rate data if upstream provider is down
- Malformed request body results in a 400 error
- Network timeout if the underlying FX data source is slow

## How this service works

14 paid financial API endpoints. Pay with USDC on Base using x402 protocol.

## Output

Returns an object containing exchange rate data for the requested currency pair(s), including the current rate and associated metadata such as timestamp or source, wrapped in a result object.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "example": {
  "result": {
   "data": "example response"
  }
 },
 "properties": {
  "result": {
   "type": "object",
   "description": "API response data"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-alert-exchange-rates-api-e892fb2d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-alert.vercel.app](https://www.zero.xyz/host/x402-alert.vercel.app/llms.txt)
