# x402.onchainexpat.com Crypto Price & Market Data

> x402.onchainexpat.com Crypto Price & Market Data is a paid API for AI agents from x402.onchainexpat.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Fetches current cryptocurrency price and market data including market cap, volume, and price changes for a given token

## Facts

- Endpoint: POST https://x402.onchainexpat.com/api/x402-tools/crypto/price
- 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/x402-onchainexpat-com-ca39094c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m_1alexyC5PVAyro_YmQw

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-onchainexpat-com-ca39094c -d '<json body>'
```

Example prompt: What's the current price of Ethereum, including its 24-hour price change and trading volume?

## When to prefer this

Use this endpoint when you need real-time cryptocurrency price and market data (price, market cap, volume, price changes) for a specific token. Prefer it over the fiat currency conversion endpoint (/fiat) when the asset in question is a crypto token rather than a traditional currency. Also prefer this over the token metadata endpoint when you need current market metrics rather than security analysis or on-chain token details.

## Known failure modes

- Unknown or unsupported token symbol returns an error or empty result
- Network timeout if the upstream price feed is unavailable
- Invalid input format results in a 400-level error
- Payment failure (insufficient USDC balance) blocks the request
- Rate limiting if too many requests are made in quick succession

## How this service works

Pay-per-request AI, crypto, proxy, and utility APIs using x402 protocol

## Output

Returns current price, market capitalization, 24-hour trading volume, and price change percentage for the requested cryptocurrency token.

## Example request

```json
{
 "symbol": "BTC"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "symbol"
 ],
 "properties": {
  "symbol": {
   "type": "string",
   "description": "Crypto ticker or name. Aliases: 'coin', 'token'. E.g. 'BTC', 'bitcoin', 'ETH', 'solana'"
  },
  "currency": {
   "type": "string",
   "description": "Quote currency, default 'usd'. Alias: 'quote_currency'"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "name": {
   "type": "string"
  },
  "price": {
   "type": "number"
  },
  "cached": {
   "type": "boolean"
  },
  "symbol": {
   "type": "string"
  },
  "currency": {
   "type": "string"
  },
  "market_cap": {
   "type": "number"
  },
  "volume_24h": {
   "type": "number"
  },
  "change_24h_pct": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-onchainexpat-com-ca39094c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.onchainexpat.com](https://www.zero.xyz/host/x402.onchainexpat.com/llms.txt)
