# x402.onchainexpat.com Crypto Price Feed

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

Returns current price, market cap, 24h volume, ATH/ATL, and multi-timeframe price changes for a given cryptocurrency token

## Facts

- Endpoint: POST https://x402.onchainexpat.com/api/x402-crypto/price-feed
- Price: $0.02/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-8e392fd0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v6Z6PFJIfKlUPQwfLWxOO

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-8e392fd0 -d '<json body>'
```

Example prompt: What's the current price of ETH right now, including its 24-hour price change, market cap, and trading volume?

## When to prefer this

Use this endpoint when you need rich, multi-dimensional market data for a single cryptocurrency token in one call — including price, market cap, volume, supply, rank, ATH/ATL, and multi-timeframe changes. Prefer this over a simple price-only endpoint when downstream decisions depend on market context. It is distinct from the sibling /crypto/price endpoint and from fiat currency conversion.

## Known failure modes

- Unknown or unsupported token symbol returns error
- Payment failure or insufficient USDC balance blocks the request
- Rate limiting if too many calls in quick succession
- Stale/cached data if the market data provider is delayed
- Malformed request body returns validation error

## How this service works

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

## Output

Returns a structured JSON object with: current price in USD (and optionally BTC/ETH), formatted price string, all-time high and low with dates and percent-from-ATH/ATL, market data (market cap, volume, supply figures, rank), price change direction and percentage for 1h/24h/7d/30d timeframes, token metadata (name, image, symbol, CoinGecko ID), and a timestamp indicating whether the result was cached.

## Example request

```json
{
 "token": "BTC",
 "include_history": false
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "token"
 ],
 "properties": {
  "token": {
   "type": "string",
   "description": "Token symbol (ETH, BTC), name (ethereum), or contract address"
  },
  "include_history": {
   "type": "boolean",
   "description": "Include 7-day price history (default: false)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "properties": {
    "ath": {
     "type": "object",
     "description": "All-time high price and date"
    },
    "atl": {
     "type": "object",
     "description": "All-time low price and date"
    },
    "price": {
     "type": "object",
     "description": "Current price in USD"
    },
    "token": {
     "type": "object",
     "description": "Token id, symbol, name, image"
    },
    "market": {
     "type": "object",
     "description": "Market cap, volume, supply data"
    },
    "changes": {
     "type": "object",
     "description": "Price changes for 1h, 24h, 7d, 30d"
    }
   }
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-onchainexpat-com-8e392fd0/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)
