# agent402.tools Crypto Price Lookup

> agent402.tools Crypto Price Lookup is a paid API for AI agents from agent402.tools, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Returns live price, 24h change %, 24h volume, and market cap for up to 25 cryptocurrencies in any fiat or crypto quote currency, backed by CoinGecko.

## Facts

- Endpoint: GET https://agent402.tools/api/crypto-price?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-crypto-price-lookup-6b67129d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_504MvlcICYNseu38Yqpsj

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 agent402-tools-crypto-price-lookup-6b67129d
```

Example prompt: What are the current prices of BTC, ETH, and SOL in USD, including their 24h change and market cap?

## When to prefer this

Use this endpoint when you need live spot prices for one or many cryptocurrencies simultaneously, especially when you want to batch up to 25 coins in a single call. Prefer it over scraping or other sources when you need CoinGecko-grade coverage of ~15k coins including long-tail tokens accessible via canonical CoinGecko IDs. It is keyless and pay-per-call at $0.005 USDC, making it ideal for lightweight agents that don't want to manage API keys.

## Known failure modes

- Unrecognized ticker symbol or CoinGecko ID returns an error or omits that coin from results
- More than 25 coins requested returns a validation error
- Invalid vs_currency value returns an error
- CoinGecko upstream outage causes 502 or stale data
- Payment of 0.005 USDC not provided returns 402 Payment Required

## How this service works

Live spot price for one or many coins in any quote currency: last price, 24h change, 24h volume and market cap per coin, from a maintained market feed and answered in under a second. Use it when an agent needs a current crypto price to size, compare or display, or a cheap read to poll on a schedule.

## Output

A JSON object keyed by coin identifier with fields for current price, 24h percentage change, 24h trading volume, and market cap — all denominated in the requested vs_currency (default USD). Covers up to 25 coins per call.

## 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": [
      "coins"
     ],
     "properties": {
      "coins": {
       "type": "string",
       "description": "Comma-separated symbols or ids (e.g. \"BTC,ETH\" or \"bitcoin,ethereum\"). Max 25."
      },
      "currency": {
       "type": "string",
       "description": "vs_currency (default: usd). Accepts fiat (usd, eur, gbp, jpy) or crypto (btc, eth)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "currency",
      "count",
      "coins"
     ],
     "properties": {
      "coins": {
       "type": "object",
       "properties": {
        "solana": {
         "type": "object"
        },
        "bitcoin": {
         "type": "object"
        },
        "ethereum": {
         "type": "object"
        }
       }
      },
      "count": {
       "type": "integer"
      },
      "currency": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "coins": {
   "solana": {
    "price": 148.2,
    "marketCap": 68000000000,
    "volume24h": 2400000000,
    "lastUpdated": "2026-06-20T00:30:00Z",
    "change24hPct": -0.65
   },
   "bitcoin": {
    "price": 67234.12,
    "marketCap": 1320000000000,
    "volume24h": 28100000000,
    "lastUpdated": "2026-06-20T00:30:00Z",
    "change24hPct": 1.42
   },
   "ethereum": {
    "price": 3520.45,
    "marketCap": 423000000000,
    "volume24h": 14200000000,
    "lastUpdated": "2026-06-20T00:30:00Z",
    "change24hPct": 2.18
   }
  },
  "count": 3,
  "currency": "usd"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-crypto-price-lookup-6b67129d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
