# x402-crypto-data Current Crypto Prices

> x402-crypto-data Current Crypto Prices is a paid API for AI agents from x402-crypto-data.vercel.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Fetches current prices for up to 25 cryptocurrencies by DefiLlama coin ID

## Facts

- Endpoint: POST https://x402-crypto-data.vercel.app/api/price
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-crypto-data-current-crypto-prices-1d412374
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KQ6ZnFhRhoCKkmnL6yS5a

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-data-current-crypto-prices-1d412374 -d '<json body>'
```

Example prompt: What are the current prices of coingecko:ethereum, coingecko:bitcoin, coingecko:solana, and coingecko:usd-coin right now?

## When to prefer this

Use this endpoint when you need real-time spot prices for one or more specific cryptocurrencies identified by DefiLlama coin IDs (e.g. coingecko:ethereum or chain:contractAddress). Ideal for agents that need to price DeFi tokens by contract address on specific chains, not just major exchange-listed coins. Prefer over alternatives when DefiLlama coverage of long-tail DeFi tokens is needed.

## Known failure modes

- Invalid or unrecognized DefiLlama coin ID returns no price for that coin
- More than 25 coins submitted causes a validation error
- DefiLlama API unavailability causes upstream error
- Malformed coin ID format returns empty or error response
- Payment not included or insufficient results in 402 Payment Required

## How this service works

Current crypto prices for up to 25 coins (DefiLlama).

## Output

Returns current price data for each requested coin, keyed by DefiLlama coin ID (e.g. coingecko:ethereum), including the latest price in USD sourced from DefiLlama.

## Example request

```json
{
 "coins": [
  "coingecko:ethereum",
  "coingecko:bitcoin",
  "coingecko:solana",
  "coingecko:usd-coin"
 ]
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "coins": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "maxItems": 25,
   "description": "DefiLlama coin ids, e.g. \"coingecko:ethereum\" or \"base:0x833...\""
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-crypto-data-current-crypto-prices-1d412374/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-crypto-data.vercel.app](https://www.zero.xyz/host/x402-crypto-data.vercel.app/llms.txt)
