# x402 Crypto Price API

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

Returns real-time USD price, 24h change, and market cap for a specified cryptocurrency using CoinGecko data, billed per-call via x402 micropayment protocol.

## Facts

- Endpoint: GET https://x402-crypto-apis.onrender.com/api/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-crypto-price-api-cbf34b64
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R4MTJr4MHHaDyNVcS9Kil

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-crypto-price-api-cbf34b64
```

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

## When to prefer this

Use this endpoint when you need a single coin's real-time price, 24h change, and market cap in one lightweight call, especially in agent workflows that can handle micropayment via x402. Prefer over free-tier scrapers when reliability and freshness are required, and over heavier market-data APIs when you only need per-coin spot data rather than full order books or OHLCV history.

## Known failure modes

- Invalid or unrecognized CoinGecko coin ID returns an error
- Payment not processed (x402 protocol failure) results in 402 response
- CoinGecko upstream outage causes stale or missing data
- Missing required 'coin' parameter returns a validation error

## How this service works

AI Agent cryptocurrency data APIs with x402 v2 payment protocol. Real-time prices, market data, trading signals, and market overview powered by CoinGecko.

## Output

A JSON object containing the coin's CoinGecko ID, current price in USD, 24-hour percentage change, total market capitalization, and an ISO timestamp of when the data was fetched.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "coin": {
   "type": "string",
   "description": "CoinGecko coin ID (e.g. bitcoin, ethereum, solana)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "coin": {
   "type": "string"
  },
  "price_usd": {
   "type": "number"
  },
  "timestamp": {
   "type": "string"
  },
  "change_24h": {
   "type": "number"
  },
  "market_cap": {
   "type": "number"
  }
 }
}
```

## More

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