# 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-13).

Returns onchain DEX price and market data for multiple token contract addresses on the Base network using CoinGecko's GeckoTerminal data.

## Facts

- Endpoint: GET https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/base/token_price/0x4200000000000000000000000000000000000006,0xff8104251e7761163fac3211ef5583fb3f8583d6,0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf,0xa4a2e2ca3fbfe21aed83471d28b6f65a233c6e00,0x5f980dcfc4c0fa3911554cf5ab288ed0eb13dba3,0xc0634090f2fe6c6d75e61be2b949464abb498973,0x9a26f5433671751c3276a065f57e5a02d2817973,0x9f86db9fc6f7c9408e8fda3ff8ce4e78ac7a6b07,0x22af33fe49fd1fa80c7149773dde5890d3c76f3b,0x940181a94a35a4569e4529a3cdfb74e38fd98631,0x1bc0c42215582d5a085795f4badbac3ff36d1bcb,0xbaa5cc21fd487b8fcc2f632f3f4e8d37262a0842
- 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-99054a01
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XJdn0lFyi1IjzfBSX6rFk

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-99054a01
```

Example prompt: What are the current onchain DEX prices and 24-hour volume for these Base network token contracts: 0x4200000000000000000000000000000000000006, 0xff8104251e7761163fac3211ef5583fb3f8583d6, and 0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf? Also include market cap and 24hr price change.

## When to prefer this

Use this endpoint when you need onchain DEX-sourced prices for multiple tokens simultaneously on the Base network, especially when you have contract addresses rather than coin IDs or tickers. Prefer this over CoinGecko's standard /simple/price endpoint when dealing with newly listed or long-tail tokens that may only have DEX liquidity, or when you specifically need Base network onchain data including reserve and pool-level metrics.

## Known failure modes

- Invalid or unknown contract address returns null or missing entry for that token
- Network not supported or mismatched returns 404 or empty response
- Too many contract addresses in one request may result in truncation or 400 error
- Rate limit exceeded returns 429 Too Many Requests
- Token has no DEX liquidity and thus no price data available
- Malformed query parameters return 422 Unprocessable Entity

## 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 mapping each queried token contract address to its current onchain DEX price (in USD), and optionally 24hr trading volume, market cap, fully diluted valuation, 24hr price change percentage, and total reserve in USD — all sourced from DEX liquidity pool data on Base.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "include_24hr_vol": true,
   "mcap_fdv_fallback": false,
   "include_market_cap": true,
   "include_inactive_source": false,
   "include_24hr_price_change": true,
   "include_total_reserve_in_usd": false
  }
 },
 "output": {
  "type": "object",
  "example": {
   "data": {
    "0x4200000000000000000000000000000000000006": {
     "price_usd": 2500.5,
     "market_cap_usd": 1000000000,
     "volume_24h_usd": 50000000,
     "price_change_24h_percent": 2.5
    }
   }
  }
 }
}
```

## 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-99054a01/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)
