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

Returns real-time onchain DEX price and market data for multiple token contract addresses on the Base network.

## Facts

- Endpoint: GET https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/base/token_price/0x4200000000000000000000000000000000000006,0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf,0x940181a94a35a4569e4529a3cdfb74e38fd98631,0x9b5e262cf9bb04869ab40b19af91d2dc85761722,0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf,0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca,0x0000000000000000000000000000000000000000,0x16ee7ecac70d1028e7712751e2ee6ba808a7dd92,0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b,0x5ab3d4c385b400f3abb49e80de2faf6a88a7b691,0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452,0xeb466342c4d449bc9f53a865d5cb90586f405215
- 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-0898c36c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_K8PI_PsTcBZh-gN9kuYAF

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-0898c36c
```

Example prompt: What are the current onchain DEX prices and 24-hour volume for WETH (0x4200000000000000000000000000000000000006) and USDC (0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca) on the Base network? Include market cap and 24hr price change too.

## When to prefer this

Choose this endpoint when you need real-time onchain DEX prices for multiple tokens simultaneously on the Base network using their contract addresses, especially when you want supplemental market data like volume, market cap, or price change. Prefer this over CoinGecko's standard coin price endpoint when you have contract addresses rather than coin IDs, and specifically need Base network onchain data sourced from DEX pools rather than aggregated CEX pricing.

## Known failure modes

- Invalid or unsupported contract address returns empty or null data for that token
- Network not supported returns 404 or error response
- Malformed query parameters return 400 Bad Request
- Rate limit exceeded returns 429 Too Many Requests
- Token with insufficient liquidity may return incomplete price data
- Payment not provided or invalid returns 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

A JSON object mapping each queried token contract address to its current onchain DEX price (in USD or supported currency), and optionally 24hr volume, market cap, 24hr price change percentage, and total reserve in USD — sourced from DEX liquidity pools 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": 2500.5,
    "usd_24h_vol": 1500000,
    "usd_24h_change": 2.5,
    "usd_market_cap": 50000000000
   },
   "0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca": {
    "usd": 1,
    "usd_24h_vol": 500000000,
    "usd_24h_change": 0.1,
    "usd_market_cap": 25000000000
   }
  }
 }
}
```

## 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-0898c36c/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)
