# CoinGecko Crypto Spot Price Lookup

> CoinGecko Crypto Spot Price Lookup is a paid API for AI agents from vending-machine-seven.vercel.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Returns live USD spot prices for one or more crypto assets using the CoinGecko simple price API

## Facts

- Endpoint: GET https://vending-machine-seven.vercel.app/api/v/crypto-prices
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coingecko-crypto-spot-price-lookup-e79e38b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jMXAeh_J0yhacKgvfB3G_

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-spot-price-lookup-e79e38b3
```

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

## When to prefer this

Use this endpoint when you need live USD spot prices for one or more crypto assets identified by their CoinGecko IDs (e.g. 'bitcoin', 'ethereum', 'solana'). Prefer this over fiat FX endpoints for crypto-to-USD conversion, and over OHLCV candle endpoints when you only need the current price rather than historical data.

## Known failure modes

- Invalid or unrecognized CoinGecko coin ID returns missing or empty price entry
- CoinGecko API rate limit or upstream outage causes 502/503 response
- Malformed 'ids' query parameter may return empty prices object
- Network timeout from upstream CoinGecko API

## How this service works

Live USD spot prices for crypto assets via CoinGecko simple price API

## Output

Returns a JSON object with a prices map keyed by CoinGecko asset ID (e.g. 'bitcoin', 'ethereum'), each containing the current USD spot price and optionally the 24-hour percentage change. Also includes an 'ok' boolean and a 'service' string identifying the data source.

## 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"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "ids": {
       "type": "string",
       "description": "Comma-separated CoinGecko ids e.g. bitcoin,ethereum"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "prices": {
       "type": "object"
      },
      "service": {
       "type": "string"
      },
      "include_24hr_change": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coingecko-crypto-spot-price-lookup-e79e38b3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vending-machine-seven.vercel.app](https://www.zero.xyz/host/vending-machine-seven.vercel.app/llms.txt)
