# CoinGecko Onchain DEX Token Price & Market Data (Base Network - Multi-Token)

> CoinGecko Onchain DEX Token Price & Market Data (Base Network - Multi-Token) is a paid API for AI agents from pro-api.coingecko.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns onchain DEX price and market data for a fixed set of token contract addresses on the Base network via CoinGecko's GeckoTerminal data.

## Facts

- Endpoint: GET https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/base/token_price/0x4200000000000000000000000000000000000006,0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b,0x940181a94a35a4569e4529a3cdfb74e38fd98631,0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf,0x95ccfd2b81a9667b0cc979992632f98fc853eba3,0x9b5e262cf9bb04869ab40b19af91d2dc85761722,0xed664536023d8e4b1640c394777d34abaff1df8f,0x9a26f5433671751c3276a065f57e5a02d2817973
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coingecko-9edf9cc9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3maF2LSQb3-Kem-B9yd2h

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-9edf9cc9
```

Example prompt: Can you pull the current onchain DEX prices and 24-hour volume for the tokens at these Base network contract addresses — WETH (0x4200000000000000000000000000000000000006), AERO (0x940181a94a35a4569e4529a3cdfb74e38fd98631), and the others in this batch — and include market cap and 24hr price change too?

## When to prefer this

Use this endpoint when you need onchain DEX-sourced price data for this specific curated set of tokens on the Base network (including WETH, AERO, cbBTC, and others), especially when you need to include market cap, 24hr volume, or reserve data alongside the price. Prefer over CoinGecko's standard coin price endpoint when you need contract-address-level onchain data rather than CoinGecko coin ID-based data.

## Known failure modes

- Invalid or unsupported contract address returns null or missing data for that token
- Network unavailable returns 5xx error
- Payment not provided or insufficient returns 402 Payment Required
- Rate limit exceeded returns 429 Too Many Requests
- Stale or low-liquidity pool data may result in inaccurate prices

## How this service works

Query onchain DEX token price & market data based on the provided token contract addresses on a network.

## Output

Returns a JSON object with onchain price data keyed by token contract address, including USD price sourced from DEX liquidity pools on Base. Optional fields (if requested) include 24hr volume, market cap, 24hr price change percentage, and total reserve in USD.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "include_24hr_vol": true,
   "include_market_cap": true,
   "include_24hr_price_change": true
  }
 },
 "output": {
  "type": "object",
  "example": {
   "data": {
    "0x4200000000000000000000000000000000000006": {
     "price_usd": 2500.5,
     "market_cap_usd": 30000000000,
     "volume_24h_usd": 1500000000,
     "price_change_24h_percent": 2.35
    },
    "0x940181a94a35a4569e4529a3cdfb74e38fd98631": {
     "price_usd": 0.85,
     "market_cap_usd": 500000000,
     "volume_24h_usd": 50000000,
     "price_change_24h_percent": -1.2
    }
   }
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "include_24hr_vol": {
       "type": "boolean"
      },
      "mcap_fdv_fallback": {
       "type": "boolean"
      },
      "include_market_cap": {
       "type": "boolean"
      },
      "include_inactive_source": {
       "type": "boolean"
      },
      "include_24hr_price_change": {
       "type": "boolean"
      },
      "include_total_reserve_in_usd": {
       "type": "boolean"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coingecko-9edf9cc9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pro-api.coingecko.com](https://www.zero.xyz/host/pro-api.coingecko.com/llms.txt)
