# CoinGecko Onchain DEX Token Price (Base Network, Multi-Address)

> CoinGecko Onchain DEX Token Price (Base Network, Multi-Address) 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 via CoinGecko's pro API.

## Facts

- Endpoint: GET https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/base/token_price/0x4200000000000000000000000000000000000006,0x5f980dcfc4c0fa3911554cf5ab288ed0eb13dba3,0x00000e7efa313f4e11bfff432471ed9423ac6b30,0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf,0x16332535e2c27da578bc2e82beb09ce9d3c8eb07,0x9f86db9fc6f7c9408e8fda3ff8ce4e78ac7a6b07,0xa4a2e2ca3fbfe21aed83471d28b6f65a233c6e00,0x4c433f4ef87fe506a7eed2fd1d822cbed411eba3,0xbf8e8f0e8866a7052f948c16508644347c57aba3,0x797f214a2cd64a4963a91fa21c8c55ec3eba4714,0x09be1692ca16e06f536f0038ff11d1da8524adb1,0xc0634090f2fe6c6d75e61be2b949464abb498973
- 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-63d56966
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8mn3bZ3hNk5dKBOAdBmR2

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-63d56966
```

Example prompt: What are the current onchain DEX prices, 24hr volume, and market caps for the token contracts 0x4200000000000000000000000000000000000006 and 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02916 on the Base network?

## When to prefer this

Use this endpoint when you need onchain DEX price and market data specifically for tokens on the Base network, especially when querying multiple contract addresses in a single call. Prefer this over CoinGecko's standard coin price endpoint when you have contract addresses rather than coin IDs, or when you need onchain liquidity/reserve data rather than aggregated exchange data.

## Known failure modes

- Invalid or unsupported token contract address returns empty or missing data for that address
- Network not supported returns 404 or error response
- Malformed contract address format causes 400 bad request
- Rate limit exceeded returns 429 too many requests
- Payment not provided or invalid causes 402 payment required

## 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 keyed by contract address, each containing the current onchain DEX price (in USD or other currencies), and optionally 24hr trading volume, market cap, 24hr price change percentage, and total reserve in USD for each requested token on Base.

## 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": {
   "0x4200000000000000000000000000000000000006": {
    "usd": 2250.5,
    "usd_24h_vol": 1500000,
    "usd_24h_change": 2.35,
    "usd_market_cap": 850000000
   }
  }
 }
}
```

## 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-63d56966/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)
