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

> CoinGecko Onchain DEX Token Price – 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 via CoinGecko's GeckoTerminal data.

## Facts

- Endpoint: GET https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/base/token_price/0x4200000000000000000000000000000000000006,0x940181a94a35a4569e4529a3cdfb74e38fd98631,0x9b5e262cf9bb04869ab40b19af91d2dc85761722,0xacfe6019ed1a7dc6f7b508c02d1b04ec88cc21bf,0x22af33fe49fd1fa80c7149773dde5890d3c76f3b
- 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-onchain-dex-token-price-base-network-multi-token-75f5dc5b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yB1PVQ6xbaDtV1fmG1j-U

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-onchain-dex-token-price-base-network-multi-token-75f5dc5b
```

Example prompt: What are the current onchain DEX prices, 24-hour volume, market caps, and 24-hour price changes for these Base network tokens: WETH (0x4200000000000000000000000000000000000006), AERO (0x940181a94a35a4569e4529a3cdfb74e38fd98631), and a few others by contract address?

## When to prefer this

Choose this endpoint when you need real-time onchain DEX price data for one or more tokens on the Base network identified by contract address, especially when you want supplementary market metrics like volume, market cap, price change, or reserve data in a single call. Prefer this over CEX-based price endpoints when the token is primarily traded onchain or is a newer DeFi token not listed on centralized exchanges.

## Known failure modes

- Invalid or unrecognized contract address returns missing or null entry for that token
- Unsupported network identifier returns 404 or empty result
- Token with no active DEX pool liquidity may return no price data unless include_inactive_source is set
- Rate limiting or payment failure returns 402 or 429 error
- Malformed contract address format causes 400 bad request

## 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 token's current USD price sourced from onchain DEX pools, and optionally 24-hour volume, market cap, 24-hour price change percentage, total reserve in USD, and FDV depending on the query parameters supplied.

## Example request

```json
{
 "query": "{\"input\": {\"type\": \"http\", \"method\": \"GET\", \"queryParams\": {\"include_24hr_vol\": true, \"include_market_cap\": true, \"include_24hr_price_change\": true, \"mcap_fdv_fallback\": true, \"include_inactive_source\": false, \"include_total_reserve_in_usd\": false}}, \"output\": {\"type\": \"object\", \"example\": {\"data\": {\"0x4200000000000000000000000000000000000006\": {\"price_usd\": 2500.50, \"volume_24h_usd\": 150000000, \"market_cap_usd\": 3000000000, \"price_change_24h_percent\": 2.5}, \"0x940181a94a35a4569e4529a3cdfb74e38fd98631\": {\"price_usd\": 0.85, \"volume_24h_usd\": 50000000, \"market_cap_usd\": 500000000, \"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-onchain-dex-token-price-base-network-multi-token-75f5dc5b/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)
