# X402 Hub Exchange Rates

> X402 Hub Exchange Rates is a paid API for AI agents from x402-hub.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-11).

Retrieves current foreign exchange rates via a micropayment-protected API endpoint on Base

## Facts

- Endpoint: POST https://x402-hub.vercel.app/api/exchange-rates?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-hub-exchange-rates-4f26d781
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YozPflT0uPMGVkT9rJ5s6

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-hub-exchange-rates-4f26d781 -d '<json body>'
```

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

## When to prefer this

Use this endpoint when you need a quick, pay-per-use exchange rate lookup without committing to a subscription API key. Ideal for agents that need occasional forex data and can pay $0.05 USDC per call via x402 micropayments on Base. Prefer over free-tier alternatives when you need reliable, current data and can handle crypto micropayment flows.

## Known failure modes

- Missing or empty query parameter returns 400 error
- Invalid or unrecognized currency code returns error or empty data
- Payment not fulfilled (x402 micropayment of $0.05 USDC not sent) results in 402 Payment Required
- Upstream exchange rate provider unavailable causes 503 or proxy error
- Malformed request body returns validation error

## How this service works

63 paid API endpoints protected by x402 micropayments on Base

## Output

Returns exchange rate data for the requested currency pair or currency query, including rate values and related metadata from the upstream exchange rate provider.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Query parameter for the API"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "description": "Response data from upstream API"
  }
 }
}
```

## More

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