# CoinGecko Onchain DEX Token Price (Polygon PoS)

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

Fetches real-time onchain DEX token price and market data for tokens on the Polygon PoS network by contract address.

## Facts

- Endpoint: GET https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/polygon_pos/token_price/probe
- 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/coingecko-onchain-dex-token-price-polygon-pos-8abc46d5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lt_3xCfTGMolFtnhV90X-

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-polygon-pos-8abc46d5
```

Example prompt: Can you pull the current onchain price, 24-hour volume, and market cap for the Polygon PoS token at contract address 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174 using CoinGecko?

## When to prefer this

Use this endpoint when you need real-time onchain DEX-sourced price data for a specific token on the Polygon PoS network identified by its contract address. Prefer this over CoinGecko's off-chain endpoints when you need DEX liquidity-based pricing rather than CEX-aggregated prices. Best for DeFi tokens that may not be listed on centralized exchanges but trade on Polygon DEXes like QuickSwap or Uniswap v3.

## Known failure modes

- Invalid or unrecognized contract address returns empty or null data
- Token not indexed on Polygon PoS DEX returns no price data
- Missing required contract address parameter causes 400 error
- Rate limit exceeded causes 429 error
- Inactive token with no recent trades may return stale or missing data
- Network identifier mismatch causes no results

## 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 queried Polygon PoS token contract(s), including current price in USD, and optionally 24-hour trading volume, market cap, 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-polygon-pos-8abc46d5/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)
