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

> CoinGecko Onchain DEX Token Price (Base Network, Multi-Contract) 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 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,0x884b59ac68b03d86d9a339ce7a4b6ea4d86b074f,0xff8104251e7761163fac3211ef5583fb3f8583d6,0xac1bd2486aaf3b5c0fc3fd868558b082a531b2b4,0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf,0xa4a2e2ca3fbfe21aed83471d28b6f65a233c6e00,0x5f980dcfc4c0fa3911554cf5ab288ed0eb13dba3,0x9a26f5433671751c3276a065f57e5a02d2817973,0x9f86db9fc6f7c9408e8fda3ff8ce4e78ac7a6b07,0xc0634090f2fe6c6d75e61be2b949464abb498973,0x22af33fe49fd1fa80c7149773dde5890d3c76f3b,0x940181a94a35a4569e4529a3cdfb74e38fd98631
- 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-58db2e42
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yhQjCXrXSS79pc0VOPQYh

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-58db2e42
```

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

## When to prefer this

Use this endpoint when you need real-time onchain DEX prices for one or more specific ERC-20 token contract addresses on the Coinbase Base network, especially when the tokens may not be listed on centralized exchanges. Prefer this over CoinGecko's standard /simple/price endpoint when dealing with newly launched or DEX-only tokens identified by contract address rather than coin ID. Ideal for DeFi dashboards, portfolio trackers, or agents monitoring Base network token values.

## Known failure modes

- Invalid or unsupported contract address returns missing or null price data for that token
- Network not supported returns 404 or empty response
- Malformed contract address format causes 400 Bad Request
- Rate limiting or missing API key returns 401/429 error
- Token with no DEX liquidity on Base returns null price
- Truncated or overly long contract address list may cause request URI too large error

## 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 contract address to its current onchain price in USD, along with optional fields such as 24-hour trading volume, market cap, 24-hour price change percentage, and total reserve in USD — all sourced from DEX liquidity pools on the Base network.

## 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": 2450.5,
     "market_cap_usd": 29401200000,
     "volume_24h_usd": 1250000000,
     "price_change_24h_percent": 2.35
    },
    "0x884b59ac68b03d86d9a339ce7a4b6ea4d86b074f": {
     "price_usd": 0.98,
     "market_cap_usd": 98000000,
     "volume_24h_usd": 5000000,
     "price_change_24h_percent": -1.2
    }
   }
  }
 }
}
```

## 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-58db2e42/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)
