# agent402.tools Crypto Market Cap Rankings

> agent402.tools Crypto Market Cap Rankings is a paid API for AI agents from agent402.tools, paid per call via x402, $0.015/call, status unknown (last checked 2026-09-15).

Returns the top N cryptocurrencies ranked by market cap, with full market data per coin including price, 24h/7d change, volume, market cap, supply, and ATH

## Facts

- Endpoint: GET https://agent402.tools/api/crypto-market
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-crypto-market-cap-rankings-61bcb1ae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W-wJEkDTAZkM6gW-PeWry

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-market-cap-rankings-61bcb1ae
```

Example prompt: Show me the top 20 cryptocurrencies ranked by market cap in USD, including their price, 24-hour and 7-day changes, volume, and all-time highs.

## When to prefer this

Use this endpoint when you need a ranked market-cap leaderboard with comprehensive per-coin metrics (price, changes, volume, supply, ATH) for up to 100 coins in a single call. Prefer it over a global market snapshot endpoint when you need per-coin breakdown rather than aggregate totals, and over a historical data endpoint when you need current real-time standings.

## Known failure modes

- limit out of range (must be 1–100) — returns validation error
- unsupported currency string — may return empty or error from CoinGecko upstream
- CoinGecko upstream unavailable — results in 502 or timeout
- payment not included or insufficient — returns 402 Payment Required

## How this service works

Top N coins by market capitalization with full market snapshot per coin: rank, price, 24h change, 7d change, 24h volume, market cap, circulating supply, and all-time high. Default 10, max 100 per call. Backed by CoinGecko's public API.

## Output

An ordered list of up to 100 coins (default 10), each with rank, current price, 24h % change, 7d % change, 24h trading volume, market cap, circulating supply, and all-time high — all denominated in the requested currency (default USD), sourced live from 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "number",
       "description": "Number of coins to return (1-100, default 10)"
      },
      "currency": {
       "type": "string",
       "description": "vs_currency (default: usd)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "currency",
      "count",
      "coins"
     ],
     "properties": {
      "coins": {
       "type": "array",
       "items": {
        "type": "object"
       }
      },
      "count": {
       "type": "integer"
      },
      "currency": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "coins": [
   {
    "id": "bitcoin",
    "ath": 73750,
    "name": "Bitcoin",
    "rank": 1,
    "price": 67234.12,
    "symbol": "btc",
    "athDate": "2024-03-14T07:10:36Z",
    "marketCap": 1320000000000,
    "volume24h": 28100000000,
    "change7dPct": 4.81,
    "change24hPct": 1.42,
    "circulatingSupply": 19700000
   },
   {
    "id": "ethereum",
    "ath": 4878.26,
    "name": "Ethereum",
    "rank": 2,
    "price": 3520.45,
    "symbol": "eth",
    "athDate": "2021-11-10T14:24:11Z",
    "marketCap": 423000000000,
    "volume24h": 14200000000,
    "change7dPct": 1.92,
    "change24hPct": 2.18,
    "circulatingSupply": 120300000
   }
  ],
  "count": 2,
  "currency": "usd"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-crypto-market-cap-rankings-61bcb1ae/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)
