# X402 Hub Crypto Exchange Rate Lookup

> X402 Hub Crypto Exchange Rate Lookup is a paid API for AI agents from x402-hub.vercel.app, paid per call via x402, $0.130964/call, status unknown (last checked 2026-09-14).

Returns cryptocurrency exchange rate or market data for a given query, accessed via x402 micropayment on Base

## Facts

- Endpoint: POST https://x402-hub.vercel.app/api/crypto-exchange
- Price: $0.130964/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-hub-crypto-exchange-rate-lookup-f561c11a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T-9n8fCkMP2NuduutO8g1

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-crypto-exchange-rate-lookup-f561c11a -d '<json body>'
```

Example prompt: What is the current exchange rate for Bitcoin to USDC right now?

## When to prefer this

Choose this endpoint when you need real-time or near-real-time cryptocurrency exchange rate data and are operating in an x402 micropayment-enabled environment on Base. It is well-suited for agents that need to fetch spot prices or conversion rates for crypto assets without managing a full exchange API integration. At ~$0.13 per call, it is appropriate for occasional lookups rather than high-frequency trading data feeds.

## Known failure modes

- Invalid or unrecognized cryptocurrency query string returns an error or empty data
- Upstream API unavailable results in failed response
- Payment not fulfilled via x402 protocol returns 402 Payment Required
- Malformed query parameter returns validation error
- Rate limits on upstream provider may cause intermittent failures

## How this service works

63 paid API endpoints protected by x402 micropayments on Base

## Output

Returns a data object containing exchange rate or market price information for the queried cryptocurrency, sourced from an upstream crypto market data 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-crypto-exchange-rate-lookup-f561c11a/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)
