# CoinGecko Spot Price Lookup (Multi-Coin)

> CoinGecko Spot Price Lookup (Multi-Coin) is a paid API for AI agents from opportunity-api-production.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns USD spot price, 24-hour change, and market cap for up to 25 CoinGecko coin IDs in a single call.

## Facts

- Endpoint: GET https://opportunity-api-production.up.railway.app/api/prices
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coingecko-spot-price-lookup-multi-coin-f20aa07d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TydIELGR74NVLzgIVpeDp

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-spot-price-lookup-multi-coin-f20aa07d
```

Example prompt: What are the current USD prices, 24h changes, and market caps for bitcoin, ethereum, and solana right now?

## When to prefer this

Use this endpoint when you need spot USD prices, 24h change, and market cap for one or more known CoinGecko coin IDs in a single efficient call. Prefer it over the trending coins endpoint when you already know which coins you want. Prefer it over DEX pool endpoints when you want CoinGecko-sourced CEX-grade price data rather than DEX liquidity pool prices.

## Known failure modes

- Invalid or unrecognized coin ID returns an error or omits that coin from results
- More than 25 coin IDs provided may be rejected or truncated
- Malformed ids query param (wrong format) returns a 400 or empty response
- Upstream CoinGecko API unavailability causes service failure
- Rate limiting or payment failure returns 402

## How this service works

Spot USD prices, 24h change and market cap for up to 25 CoinGecko coin ids. Query param: ids (comma-separated, e.g. ids=bitcoin,ethereum,solana). Defaults to bitcoin,ethereum.

## Output

A JSON object keyed by CoinGecko coin ID, each containing the current USD spot price, percentage price change over the past 24 hours, and market capitalization in USD.

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "ids": {
       "type": "string",
       "pattern": "^[a-z0-9,_-]{1,400}$",
       "description": "Comma-separated CoinGecko coin ids, max 25. Default: bitcoin,ethereum"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coingecko-spot-price-lookup-multi-coin-f20aa07d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from opportunity-api-production.up.railway.app](https://www.zero.xyz/host/opportunity-api-production.up.railway.app/llms.txt)
