# CoinGecko Onchain DEX Token Price & Market Data (Base Network)

> CoinGecko Onchain DEX Token Price & Market Data (Base Network) 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 DEX price and market data for one or more token contract addresses on the Base network using CoinGecko's onchain data feed.

## Facts

- Endpoint: GET https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/base/token_price/0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b,0x22af33fe49fd1fa80c7149773dde5890d3c76f3b,0xc0634090f2fe6c6d75e61be2b949464abb498973,0x9b5e262cf9bb04869ab40b19af91d2dc85761722
- 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-market-data-base-network-5c16bff3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9lew1tUj34U7aVUBMbwQo

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-market-data-base-network-5c16bff3
```

Example prompt: What are the current onchain prices and 24-hour price changes for these four Base network tokens: 0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b, 0x22af33fe49fd1fa80c7149773dde5890d3c76f3b, 0xc0634090f2fe6c6d75e61be2b949464abb498973, and 0x9b5e262cf9bb04869ab40b19af91d2dc85761722?

## When to prefer this

Use this endpoint when you need real-time onchain DEX prices for tokens on the Base network by contract address, especially for tokens that may not appear in CoinGecko's centralized exchange listings. Ideal for DeFi agents needing fresh price data without relying on CEX feeds. Supports batch lookups for multiple contracts in one call.

## Known failure modes

- Invalid or unrecognized contract address returns empty or null data for that token
- Unsupported network returns 404 or empty response
- Too many contract addresses in one request may result in truncated or error response
- Rate limit exceeded returns 429 error
- Token with no DEX liquidity returns null price

## How this service works

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

## Output

Returns a JSON object mapping each token contract address to its current USD price, and optionally 24hr trading volume, market cap, 24hr price change percentage, and total reserve in USD as observed from onchain DEX data 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": {
   "0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b": {
    "usd": 0
   },
   "0x22af33fe49fd1fa80c7149773dde5890d3c76f3b": {
    "usd": 0
   },
   "0x9b5e262cf9bb04869ab40b19af91d2dc85761722": {
    "usd": 0
   },
   "0xc0634090f2fe6c6d75e61be2b949464abb498973": {
    "usd": 0
   }
  }
 }
}
```

## 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-market-data-base-network-5c16bff3/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)
