# CoinGecko Crypto Price Lookup via x402

> CoinGecko Crypto Price Lookup via x402 is a paid API for AI agents from currency.payapi.market, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-30).

Returns the current price, market cap, and 24-hour change of a cryptocurrency in a specified quote currency, sourced from CoinGecko.

## Facts

- Endpoint: POST https://currency.payapi.market/crypto/price?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coingecko-crypto-price-lookup-via-x402-6af6ab94
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RiqvE8vgaewepWCgwa99k

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-crypto-price-lookup-via-x402-6af6ab94 -d '<json body>'
```

Example prompt: What's the current price of Bitcoin in USD, including its market cap and 24-hour change — pull it from CoinGecko?

## When to prefer this

Choose this endpoint when you need real-time or near-real-time cryptocurrency price data including market cap and 24-hour change, billed per-call via x402 micropayments. Prefer it over free public CoinGecko endpoints when you need a metered, pay-per-use model suitable for agent workflows, or when you also need fiat exchange rates from the same host.

## Known failure modes

- Unknown coin symbol or name returns an error or empty result
- Unsupported vs_currency code may default to USD or return an error
- CoinGecko rate limits or downtime may cause failures
- Payment failure via x402 will block the request
- Stale cache may return slightly outdated prices

## How this service works

Fiat exchange rates (ECB via Frankfurter) and crypto prices (CoinGecko) with x402 payments.

## Output

A JSON object containing the current price of the requested cryptocurrency (e.g. 67250 for BTC/USD), market cap, 24-hour percentage change, the resolved coin ID, the quote currency, whether the result was served from cache, and the data source (CoinGecko).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "coin": {
   "type": "string",
   "description": "Cryptocurrency symbol or name, e.g. 'bitcoin', 'btc', or 'ethereum'."
  },
  "vs_currency": {
   "type": "string",
   "description": "Quote currency code, e.g. 'usd'. Defaults to usd if omitted."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "price": 67250,
  "query": "bitcoin",
  "cached": false,
  "source": "CoinGecko",
  "coin_id": "bitcoin",
  "market_cap": 1327000000000,
  "vs_currency": "usd",
  "change_24h_pct": 1.85
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coingecko-crypto-price-lookup-via-x402-6af6ab94/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from currency.payapi.market](https://www.zero.xyz/host/currency.payapi.market/llms.txt)
