# OnchainExpat Crypto Prices API

> OnchainExpat Crypto Prices API 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 data via a pay-per-request x402 micropayment endpoint

## Facts

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

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 onchainexpat-crypto-prices-api-b74ab70b -d '<json body>'
```

Example prompt: What's the current price of Bitcoin? Use the OnchainExpat crypto prices API to look it up.

## When to prefer this

Choose this endpoint when you need real-time crypto price lookups and are operating in an x402 micropayment-enabled environment, particularly when integrating with Coinbase or Base ecosystem tooling. Suitable for pay-per-use agents that want to avoid subscription-based pricing.

## Known failure modes

- Unknown or misspelled cryptocurrency name returns empty or error response
- Payment failure via x402 protocol results in 402 Payment Required response
- Network timeout if upstream price data source is unavailable
- Empty response if the cryptocurrency is not supported

## How this service works

Returns live crypto price data for a given token address and chain, including price, 24h change, market cap, and volume. Accepts symbol and currency parameters for normalized quotes.

## Output

Returns JSON with current price data for the requested cryptocurrency, including pricing information sourced via the x402 pay-per-request protocol.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "symbols"
 ],
 "properties": {
  "symbols": {
   "type": "array",
   "description": "List of tickers or names. Aliases: 'tokens', 'assets'"
  },
  "currency": {
   "type": "string",
   "description": "Quote currency, default 'usd'"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "cached": {
   "type": "boolean"
  },
  "prices": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onchainexpat-crypto-prices-api-b74ab70b/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)
