# 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 specified token contract addresses on the Base network.

## Facts

- Endpoint: GET https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/base/token_price/0x940181a94a35a4569e4529a3cdfb74e38fd98631,0x311935cd80b76769bf2ecc9d8ab7635b2139cf82,0x4200000000000000000000000000000000000006,0x9b5e262cf9bb04869ab40b19af91d2dc85761722,0x16ee7ecac70d1028e7712751e2ee6ba808a7dd92,0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca,0x5ab3d4c385b400f3abb49e80de2faf6a88a7b691,0xeb466342c4d449bc9f53a865d5cb90586f405215
- 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-2f8f24b9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xvNJaiDygrdTe5PVHjHeT

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-2f8f24b9
```

Example prompt: Can you pull the current onchain DEX prices from CoinGecko for these Base network tokens — AERO (0x940181a94a35a4569e4529a3cdfb74e38fd98631), WETH (0x4200000000000000000000000000000000000006), and USDbC (0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca) — and include their 24-hour volume and price change too?

## When to prefer this

Use this endpoint when you need onchain DEX price and market data for multiple tokens on the Base network simultaneously, especially when you need data sourced directly from DEX liquidity pools rather than centralized exchange data. Prefer this over the single-token endpoint when querying a basket of tokens to reduce API calls and cost.

## Known failure modes

- Invalid or unrecognized contract addresses return missing or empty data for those tokens
- Network not supported returns an error
- Too many contract addresses in a single request may be rate-limited or rejected
- Missing or invalid API key returns 401 unauthorized
- Exceeding API rate limits returns 429 too many requests
- Tokens with no onchain DEX liquidity may return null or zero values

## How this service works

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

## Output

A JSON object keyed by token contract address, each containing the current onchain DEX price (in USD or other supported currencies), and optionally 24hr trading volume, market cap, 24hr price change, and total reserve in USD for each queried Base network token.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "include_24hr_vol": true,
   "include_market_cap": false,
   "include_24hr_price_change": true
  }
 },
 "output": {
  "type": "object",
  "example": {
   "0x4200000000000000000000000000000000000006": {
    "usd": 2450.5,
    "usd_24h_vol": 5000000,
    "usd_24h_change": -1.2
   },
   "0x940181a94a35a4569e4529a3cdfb74e38fd98631": {
    "usd": 0.85,
    "usd_24h_vol": 1250000,
    "usd_24h_change": 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-2f8f24b9/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)
