# CoinGecko On-Chain Categories

> CoinGecko On-Chain Categories is a paid API for AI agents from stablecrypto.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Retrieves a paginated list of on-chain token categories from CoinGecko's on-chain data, providing category metadata for DeFi and crypto market analysis.

## Facts

- Endpoint: POST https://stablecrypto.dev/api/coingecko/onchain/categories
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coingecko-on-chain-categories-3870409d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IlzSrnR1diIoSO-WYR9u6

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-on-chain-categories-3870409d -d '<json body>'
```

Example prompt: Can you fetch the first page of on-chain token categories from CoinGecko so I can see how coins are classified on-chain?

## When to prefer this

Use this endpoint when you need a structured list of CoinGecko on-chain categories to classify, filter, or analyze tokens by their on-chain sector. Prefer this over off-chain category endpoints when working specifically with on-chain data taxonomy, DeFi protocols, or building dashboards that segment tokens by on-chain market segments.

## Known failure modes

- Invalid page number type returns a validation error
- Page number beyond available results returns empty data array
- Upstream CoinGecko API unavailability causes a 502 or timeout
- Missing or malformed request body may result in a 400 error

## How this service works

Pay-per-request access to CoinGecko, DefiLlama, Alchemy, and Etherscan APIs. No auth, no subscriptions.

## Output

Returns an array of on-chain category objects from CoinGecko, each containing category-level metadata such as name, identifiers, and related attributes used to group tokens by on-chain characteristics.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "page": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coingecko-on-chain-categories-3870409d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stablecrypto.dev](https://www.zero.xyz/host/stablecrypto.dev/llms.txt)
