# 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-10-12).

Returns real-time onchain DEX price, 24h volume, market cap, and price change 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/0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b,0x4200000000000000000000000000000000000006?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pro-api-coingecko-com-c8ff9930
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nRosxoR-jsn0ix3GYzo6_

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 pro-api-coingecko-com-c8ff9930
```

Example prompt: What's the current onchain price, 24h trading volume, market cap, and 24h price change for tokens 0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b and 0x4200000000000000000000000000000000000006 on the Base network?

## When to prefer this

Use this endpoint when you need real-time onchain DEX price data for one or more specific ERC-20 token contract addresses on the Base network, especially when you want volume, market cap, or 24h change alongside the price. Prefer this over CoinGecko's coin-ID-based simple price endpoint when you only have a contract address and not a CoinGecko coin ID, or when you specifically need DEX-sourced onchain data rather than aggregated CEX/DEX prices.

## Known failure modes

- Invalid or unrecognized contract address returns empty or missing data for that address
- Network not supported returns 404 or error response
- Rate limit exceeded returns 429 Too Many Requests
- Payment failure (x402) blocks the request before data is returned
- Inactive or low-liquidity token may return null or incomplete market data fields

## 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 contract address, each containing the current USD price, 24h trading volume in USD, market capitalization in USD, and 24h price change percentage sourced from onchain DEX data on the Base network.

## 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": {
   "0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b": {
    "usd": 1.25,
    "usd_24h_vol": 500000,
    "usd_24h_change": 2.5,
    "usd_market_cap": 1000000
   },
   "0x4200000000000000000000000000000000000006": {
    "usd": 2000,
    "usd_24h_vol": 5000000,
    "usd_24h_change": 1.2,
    "usd_market_cap": 10000000000
   }
  }
 }
}
```

## 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/pro-api-coingecko-com-c8ff9930/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)
