# Crypto Price Lookup via CoinGecko

> Crypto Price Lookup via CoinGecko is a paid API for AI agents from market-data-x402-5wh8-ivory.vercel.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns current USD prices for one or more cryptocurrencies by CoinGecko ID

## Facts

- Endpoint: GET https://market-data-x402-5wh8-ivory.vercel.app/api/crypto/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/crypto-price-lookup-via-coingecko-cc824207
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OXceVSxjfXJOprJBFvNr8

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 crypto-price-lookup-via-coingecko-cc824207
```

Example prompt: What are the current USD prices for bitcoin, ethereum, and solana?

## When to prefer this

Use this endpoint when you need real-time USD price data for one or more cryptocurrencies identified by their CoinGecko IDs. It is ideal for portfolio tracking, DeFi decision-making, price alerting, or any workflow that needs live market prices at low cost ($0.002 per call). Prefer this over free public APIs when operating in a paid agent context that already handles x402 micropayments.

## Known failure modes

- Invalid or misspelled CoinGecko IDs return empty or partial data
- Missing 'ids' query parameter causes a 400 or empty response
- Payment not completed results in 402 Payment Required
- Rate limiting or CoinGecko API downtime may cause 503 or stale data
- Very new or obscure tokens may not be listed on CoinGecko and return no price

## How this service works

Pay-per-request crypto &amp; stock market data for AI agents and developers, settled in USDC on Base via x402.

## Output

A JSON object with a 'data' key containing a map of each requested CoinGecko coin ID to its current USD price, plus a 'source' field indicating the data came from CoinGecko. Example: {data: {bitcoin: {usd: 65000}}, source: 'coingecko'}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "ids"
     ],
     "properties": {
      "ids": {
       "type": "string",
       "description": "Comma-separated CoinGecko ids"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "bitcoin": {
    "usd": 65000
   }
  },
  "source": "coingecko"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-price-lookup-via-coingecko-cc824207/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market-data-x402-5wh8-ivory.vercel.app](https://www.zero.xyz/host/market-data-x402-5wh8-ivory.vercel.app/llms.txt)
