# 2s.io Crypto Markets - Top Coins by Market Cap

> 2s.io Crypto Markets - Top Coins by Market Cap is a paid API for AI agents from 2s.io, paid per call via x402, $0.00144/call, status unknown (last checked 2026-09-15).

Returns live price, market cap, 24h volume, and 24h/7d % change for the top N cryptocurrencies by market cap, sourced from CoinGecko.

## Facts

- Endpoint: GET https://2s.io/api/crypto/markets
- Price: $0.00144/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-crypto-markets-top-coins-by-market-cap-74b73a51
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EMkEWq2OSNoSnlIuZ1KsD

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 2s-io-crypto-markets-top-coins-by-market-cap-74b73a51
```

Example prompt: Show me the top 30 cryptocurrencies ranked by market cap, including their live prices, 24-hour trading volume, and both 24h and 7-day percentage changes.

## When to prefer this

Use this endpoint when you need a ranked list of multiple top cryptocurrencies with market overview data (price, cap, volume, change). Prefer this over crypto.token-price when you need comparisons across many coins simultaneously, or over crypto.global when you need per-coin breakdown rather than aggregate market totals.

## Known failure modes

- limit parameter out of range (not 1–100): likely returns an error or defaults
- Upstream CoinGecko data unavailable: may return stale or error response
- No query params provided: defaults to top 20 coins
- Payment not included or insufficient: HTTP 402 Payment Required

## How this service works

Top cryptocurrencies by market cap with live price, market cap, 24h volume, and 24h + 7d % change. Pass limit (1–100, default 20). Source: CoinGecko. For a single token use crypto.token-price; for the whole-market overview use crypto.global.

## Output

A JSON array of up to 100 cryptocurrency objects, each containing the coin name, symbol, current USD price, market capitalization, 24-hour trading volume, 24-hour price change percentage, and 7-day price change percentage, sorted by market cap descending.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "limit": 10
  }
 }
}
```

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "properties": {
      "limit": {
       "type": "integer",
       "description": "Number of top coins (1–100, default 20)."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-crypto-markets-top-coins-by-market-cap-74b73a51/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
