# CoinGecko Pro Onchain Token Price — Base Network (0x00c0943f)

> CoinGecko Pro Onchain Token Price — Base Network (0x00c0943f) is a paid API for AI agents from pro-api.coingecko.com, paid per call via x402, $0.010000/call, status unknown (last checked 2026-09-15).

Returns real-time onchain DEX price and market data for a specific token contract (0x00c0943f) on the Coinbase Base network via CoinGecko Pro.

## Facts

- Endpoint: GET https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/base/token_price/0x00c0943f0788cfd0782a893c0eefb42e154f15ae
- Price: $0.010000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pro-api-coingecko-com-d968d172
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hGJ0tj1rYntzE-vh68Y6E

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-d968d172
```

Example prompt: What's the current onchain DEX price for the token at contract address 0x00c0943f0788cfd0782a893c0eefb42e154f15ae on the Base network, and can you also include the 24-hour volume and price change?

## When to prefer this

Use this endpoint when you need real-time onchain DEX price data specifically for the token at 0x00c0943f on the Coinbase Base network. Prefer this over CoinGecko's standard /simple/price endpoint when the token is only traded on DEXes and lacks a CoinGecko coin ID. Best for DeFi apps, portfolio trackers, or bots that need live Base-chain token prices directly from liquidity pool data.

## Known failure modes

- Token contract not found on Base — returns empty or null price data
- Network congestion causing stale or delayed price data
- Invalid contract address format — 400 Bad Request
- Payment not received or insufficient — 402 Payment Required
- Rate limit exceeded — 429 Too Many Requests
- Token has no active liquidity pools on Base — no price available

## How this service works

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

## Output

Returns the current USD price of the specified token as traded on DEXes on the Base network, along with optional metrics: 24-hour trading volume, market capitalization, 24-hour price change percentage, and total reserve in USD. Data is sourced from onchain liquidity pools indexed by CoinGecko's GeckoTerminal.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "include_24hr_vol": true,
   "mcap_fdv_fallback": true,
   "include_market_cap": true,
   "include_inactive_source": true,
   "include_24hr_price_change": true
  }
 },
 "output": {
  "type": "object",
  "example": {
   "0x00c0943f0788cfd0782a893c0eefb42e154f15ae": {
    "usd": 0.00025,
    "usd_24h_vol": 75000,
    "usd_24h_change": 3.2,
    "usd_market_cap": 1500000
   }
  }
 }
}
```

## 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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "data"
 ],
 "properties": {
  "data": {
   "type": "object",
   "required": [
    "id",
    "type",
    "attributes"
   ],
   "properties": {
    "id": {
     "type": "string"
    },
    "type": {
     "type": "string"
    },
    "attributes": {
     "type": "object",
     "required": [
      "token_prices",
      "h24_volume_usd",
      "market_cap_usd",
      "last_trade_timestamp",
      "h24_price_change_percentage"
     ],
     "properties": {
      "token_prices": {
       "type": "object",
       "required": [
        "0x00c0943f0788cfd0782a893c0eefb42e154f15ae"
       ],
       "properties": {
        "0x00c0943f0788cfd0782a893c0eefb42e154f15ae": {
         "type": "string"
        }
       }
      },
      "h24_volume_usd": {
       "type": "object",
       "required": [
        "0x00c0943f0788cfd0782a893c0eefb42e154f15ae"
       ],
       "properties": {
        "0x00c0943f0788cfd0782a893c0eefb42e154f15ae": {
         "type": "string"
        }
       }
      },
      "market_cap_usd": {
       "type": "object",
       "required": [
        "0x00c0943f0788cfd0782a893c0eefb42e154f15ae"
       ],
       "properties": {
        "0x00c0943f0788cfd0782a893c0eefb42e154f15ae": {
         "type": "string"
        }
       }
      },
      "last_trade_timestamp": {
       "type": "object",
       "required": [
        "0x00c0943f0788cfd0782a893c0eefb42e154f15ae"
       ],
       "properties": {
        "0x00c0943f0788cfd0782a893c0eefb42e154f15ae": {
         "type": "null"
        }
       }
      },
      "h24_price_change_percentage": {
       "type": "object",
       "required": [
        "0x00c0943f0788cfd0782a893c0eefb42e154f15ae"
       ],
       "properties": {
        "0x00c0943f0788cfd0782a893c0eefb42e154f15ae": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pro-api-coingecko-com-d968d172/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)
