# CoinGecko Onchain BSC Token Price API

> CoinGecko Onchain BSC Token Price API 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-16).

Fetches real-time DEX token price and market data for tokens on the BNB Smart Chain (BSC) by contract address.

## Facts

- Endpoint: GET https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/bsc/token_price/i%20Af8E=&I%7Df]*'!Z$
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coingecko-onchain-bsc-token-price-api-06234d3c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Kzgi8MQI4sBNZqLb1YFn8

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-bsc-token-price-api-06234d3c
```

Example prompt: What's the current on-chain price, 24-hour volume, and market cap for the BSC token at contract address 0x55d398326f99059fF775485246999027B3197955 on CoinGecko?

## When to prefer this

Use this endpoint when you need real-time on-chain DEX price and market data specifically for tokens on the BNB Smart Chain (BSC/BSC network). Prefer this over CoinGecko's traditional API when the token is only traded on DEXes and not listed on centralized exchanges, or when you need the raw on-chain price rather than an aggregated price. Choose network-specific endpoints (BSC) over generic ones when you already know the chain.

## Known failure modes

- Invalid or unrecognized token contract address returns empty or null price data
- Token not listed on any BSC DEX returns no results
- Malformed contract address causes 400 bad request
- Rate limit exceeded returns 429 error
- Network or CoinGecko API downtime returns 503 or timeout
- Inactive token with no recent trades may return stale or missing data

## 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 on-chain DEX price data for the specified BSC token contract(s), optionally including 24hr volume, market cap, 24hr price change percentage, and total reserve in USD — all sourced from live DEX pool data on the BNB Smart Chain.

## 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-bsc-token-price-api-06234d3c/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)
