# Crypto Sector Performance by Category (CoinGecko)

> Crypto Sector Performance by Category (CoinGecko) is a paid API for AI agents from x402-data-api.sigrunner.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-20).

Returns market cap, 24h change, and volume for all major crypto sectors/categories, sourced from CoinGecko, to support sector rotation analysis.

## Facts

- Endpoint: GET https://x402-data-api.sigrunner.workers.dev/crypto/categories?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-sector-performance-by-category-coingecko-b5b1d02b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sHMGFyygTLEOWYfXnD-jd

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 crypto-sector-performance-by-category-coingecko-b5b1d02b
```

Example prompt: Show me how all the major crypto sectors are performing right now — I want to see which categories are leading or lagging by market cap change and volume so I can spot rotation opportunities.

## When to prefer this

Use this endpoint when an agent needs a broad, sector-level view of the crypto market rather than individual token data — ideal for sector rotation signals, macro crypto trend analysis, or portfolio rebalancing decisions. Prefer it over individual token endpoints when the goal is comparative category-level analysis. Best combined with global market stats or top exchange data for a full market picture.

## Known failure modes

- CoinGecko upstream API unavailable or rate-limited — may return error or stale data
- Payment of $0.003 USDC not received — returns HTTP 402 Payment Required
- Worker cold start may add slight latency on first call
- No parameters available to filter by specific sector — full list is always returned

## How this service works

Crypto sector performance (CoinGecko categories): market cap, 24h change, volume per sector, top by market cap. No params. Use when an agent needs sector rotation signals.

## Output

A JSON array of crypto sector/category objects, each containing the category name, total market cap, 24h market cap change percentage, and 24h trading volume, sorted or rankable by market cap. Enables identification of top-performing and lagging sectors at a glance.

## 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": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "categories"
     ],
     "properties": {
      "categories": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "name",
         "market_cap_change_24h_pct"
        ],
        "properties": {
         "name": {
          "type": "string"
         },
         "market_cap_change_24h_pct": {
          "type": "number"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "categories": [
   {
    "name": "Smart Contract Platform",
    "market_cap_change_24h_pct": 1.2
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-sector-performance-by-category-coingecko-b5b1d02b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-data-api.sigrunner.workers.dev](https://www.zero.xyz/host/x402-data-api.sigrunner.workers.dev/llms.txt)
