# CoinGecko Multi-Token Spot Price API (x-402)

> CoinGecko Multi-Token Spot Price API (x-402) is a paid API for AI agents from api.x-402.online, paid per call via x402, $0.003/call, status down (last checked 2026-09-08).

Returns real-time spot prices and 24-hour percentage change for one or more CoinGecko-listed tokens across multiple fiat or crypto currencies.

## Facts

- Endpoint: POST https://api.x-402.online/v1/crypto/price
- Price: $0.003/call
- Payment: x402
- Status: down
- Last checked: 2026-09-08
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coingecko-multi-token-spot-price-api-x-402-febb4706
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RRoHyrlwDF_xkUgJ-vm3B

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 coingecko-multi-token-spot-price-api-x-402-febb4706 -d '<json body>'
```

Example prompt: What are the current prices of Bitcoin and Ethereum in both USD and EUR, and how much have they moved in the last 24 hours?

## When to prefer this

Choose this endpoint when you need real-time spot prices and 24h change data for multiple tokens simultaneously across multiple currencies in a single call. Prefer this over scraping CoinGecko directly (which may be blocked) or using general market data APIs when you need multi-token, multi-currency responses with minimal latency and no API key management — the x402 micropayment handles auth automatically.

## Known failure modes

- Invalid or misspelled CoinGecko token ID returns empty or error response
- Unsupported vs-currency silently omitted or returns error
- Rate limiting or payment failure returns 402 or 429 status
- Token not listed on CoinGecko returns no data for that ID
- Network timeout under high load

## Output

Returns a JSON object keyed by token ID (e.g. 'bitcoin', 'ethereum'), each containing the current spot price in each requested vs-currency and the 24-hour percentage change, sourced from CoinGecko data.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coingecko-multi-token-spot-price-api-x-402-febb4706/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x-402.online](https://www.zero.xyz/host/api.x-402.online/llms.txt)
