# CoinGecko On-Chain Pool Data

> CoinGecko On-Chain Pool Data 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).

Fetches real-time pool data including price, transactions, and trading volume for a specific liquidity pool contract on a given blockchain network.

## Facts

- Endpoint: POST https://stablecrypto.dev/api/coingecko/onchain/pool
- 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-pool-data-abede52e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aZVzBL5LF1sBARCC5kShk

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-pool-data-abede52e -d '<json body>'
```

Example prompt: Can you pull up the current price, volume, and transaction data for the Uniswap ETH/USDC pool at contract address 0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640 on the eth network?

## When to prefer this

Use this endpoint when you need real-time on-chain pool metrics (price, volume, transactions) for a specific liquidity pool identified by its contract address on a supported EVM-compatible network. Prefer this over token price endpoints when you need pool-level granularity rather than token-level aggregates, or when you want DEX-specific data tied to a particular pool contract.

## Known failure modes

- Invalid or unrecognized pool contract address returns an empty or error response
- Unsupported network ID causes a lookup failure
- Pool contract exists on-chain but is not indexed by CoinGecko/GeckoTerminal
- Missing required fields (network or address) results in a validation error
- Network congestion or provider downtime causes timeout

## How this service works

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

## Output

Returns a data object containing pool-level details such as current token price, recent transaction counts, trading volume figures, and other pool metrics sourced from GeckoTerminal's on-chain data for the specified contract address and network.

## Example request

```json
{
 "address": "0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640",
 "network": "eth"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "address": {
   "type": "string",
   "description": "Pool contract address"
  },
  "include": {
   "type": "string"
  },
  "network": {
   "type": "string",
   "description": "Network ID (e.g. \"eth\")"
  }
 }
}
```

## More

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