# CoinGecko Onchain DEX Token Price (Ethereum)

> CoinGecko Onchain DEX Token Price (Ethereum) 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-14).

Returns real-time onchain DEX price and market data for one or more ERC-20 tokens on Ethereum by contract address

## Facts

- Endpoint: GET https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/eth/token_price/:address
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pro-api-coingecko-com-29febcc9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pW0fadgFQzvBSvLaX1mqi

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-29febcc9
```

Example prompt: What's the current onchain DEX price and 24-hour volume for the Ethereum token at contract address 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984? Include market cap and 24hr price change too.

## When to prefer this

Use this endpoint when you need live onchain DEX-sourced pricing for a specific ERC-20 token on Ethereum by contract address, especially for newer or long-tail tokens not yet listed on centralized exchanges. Prefer over CoinGecko's coin ID-based price endpoint when you have a contract address but not a CoinGecko coin ID. Prefer over Base network endpoints when the token is specifically on Ethereum mainnet.

## Known failure modes

- Token contract address not found on Ethereum — returns empty or null price data
- Invalid contract address format — returns 400 bad request
- Token has insufficient DEX liquidity — price may be missing or unreliable
- API key missing or invalid — returns 401 unauthorized
- Rate limit exceeded — returns 429 too many requests
- Network identifier mismatch — if contract exists on another chain, no data returned for ETH

## How this service works

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

## Output

Returns current USD price and optional market data (market cap, 24hr volume, 24hr price change, total reserve in USD) for the specified ERC-20 token contract on the Ethereum network, sourced from onchain DEX liquidity pools via CoinGecko's GeckoTerminal data.

## 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-29febcc9/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)
