# CoinGecko Onchain DEX Token Price - Ethereum Network

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

Fetches real-time DEX token price and market data for ERC-20 tokens on the Ethereum network using contract addresses via CoinGecko's onchain API.

## Facts

- Endpoint: GET https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/eth/token_price/EVM%20wallet%20address%20(0x-prefixed%2C%2040%20hex%20characters)?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/coingecko-onchain-dex-token-price-ethereum-network-95317ec2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q3geW7OeVT3v_mxoj4CLc

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-ethereum-network-95317ec2
```

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

## When to prefer this

Use this endpoint when you need real-time onchain DEX price data for ERC-20 tokens on the Ethereum network and have the token contract address available. Prefer this over CoinGecko's standard simple/price endpoint when you need DEX-sourced pricing (not CEX aggregated), reserve data, or when the token is only traded onchain and may not have a CoinGecko coin ID. Ideal for DeFi applications, portfolio trackers, and arbitrage monitors that work with contract addresses directly.

## Known failure modes

- Invalid or malformed contract address (not 0x-prefixed or not 40 hex characters) returns 400 error
- Token contract not found on Ethereum network returns empty data or 404
- Contract address is for an inactive or delisted token with no DEX data
- Rate limit exceeded on the pro API tier returns 429
- Network connectivity issues or CoinGecko API downtime returns 5xx errors
- Token has no onchain DEX liquidity resulting in null price fields

## 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 containing onchain DEX market data for the specified token contract address(es) on Ethereum, including current price in USD, optionally 24-hour volume, market capitalization, 24-hour price change percentage, and total reserve in USD sourced from DEX liquidity pools.

## 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-ethereum-network-95317ec2/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)
