# CoinGecko On-Chain Category Pools

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

Retrieves liquidity pools belonging to a specific on-chain DeFi category, with optional sorting, filtering, and pagination

## Facts

- Endpoint: POST https://stablecrypto.dev/api/coingecko/onchain/category/pools
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coingecko-on-chain-category-pools-6e0242d1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_morJFZQPoSm0KXw2Iz9g9

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-category-pools-6e0242d1 -d '<json body>'
```

Example prompt: Pull the first page of on-chain liquidity pools in the 'decentralized-exchange' category from CoinGecko, sorted by volume, and include base token info.

## When to prefer this

Use this endpoint when you need to enumerate or browse liquidity pools scoped to a specific on-chain DeFi category (e.g. stablecoins, liquid staking, DEXes) rather than scanning all pools or searching by network. Ideal when the user wants to compare pools within a themed category or build a category-specific pool leaderboard.

## Known failure modes

- Missing or invalid category_id returns an error or empty data array
- Unknown category_id returns empty results
- Invalid sort or include parameter may return an error or be ignored
- Pagination beyond available pages returns empty data
- Rate limiting or payment failure returns a 402 or 429 error

## How this service works

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

## Output

An array of pool objects for the specified on-chain category, each containing metadata such as pool address, token pairs, volume, liquidity, and other on-chain pool attributes as provided by CoinGecko's on-chain data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "page": {
   "type": "number"
  },
  "sort": {
   "type": "string"
  },
  "include": {
   "type": "string"
  },
  "category_id": {
   "type": "string",
   "description": "Category ID"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coingecko-on-chain-category-pools-6e0242d1/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)
