# CoinGecko Onchain Token Price – Base Network (AERO/0x9401...)

> CoinGecko Onchain Token Price – Base Network (AERO/0x9401...) 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-13).

Returns the current on-chain USD price and market data for the token at contract address 0x940181a94A35A4569E4529A3CDfB74e38FD98631 on the Coinbase Base network.

## Facts

- Endpoint: GET https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/base/token_price/0x940181a94A35A4569E4529A3CDfB74e38FD98631
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pro-api-coingecko-com-49d48cae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9ewrOYs7ddTS3GoFZpN_M

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-49d48cae
```

Example prompt: What's the current on-chain USD price, 24-hour volume, market cap, and 24h price change for the Aerodrome token (contract 0x940181a94A35A4569E4529A3CDfB74e38FD98631) on the Base network using CoinGecko data?

## When to prefer this

Use this endpoint when you need the precise on-chain USD price for the specific token at 0x940181a94A35A4569E4529A3CDfB74e38FD98631 on Base, especially when you need accompanying market data like 24h volume, market cap, or price change from CoinGecko's DEX-based pricing. Prefer over CEX price feeds when on-chain accuracy for Base DeFi tokens matters.

## Known failure modes

- Invalid or unsupported contract address returns empty or error response
- Token not indexed on Base network by CoinGecko returns no price data
- Missing or invalid API key returns 401 Unauthorized
- Rate limit exceeded returns 429 Too Many Requests
- Payment not settled (x402) returns 402 Payment Required

## How this service works

Returns the current price for a specified token on the Base network using CoinGecko onchain pricing data.

## Output

Returns a JSON object keyed by the token contract address containing: current USD price, 24h trading volume in USD, market cap in USD, and 24h price change percentage — all sourced from CoinGecko's on-chain DEX data for the Base network.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "include_24hr_vol": true,
   "mcap_fdv_fallback": true,
   "include_market_cap": true,
   "include_inactive_source": false,
   "include_24hr_price_change": true,
   "include_total_reserve_in_usd": false
  }
 },
 "output": {
  "type": "object",
  "example": {
   "0x940181a94A35A4569E4529A3CDfB74e38FD98631": {
    "usd": 0.85,
    "usd_24h_vol": 1250000,
    "usd_24h_change": 2.5,
    "usd_market_cap": 425000000
   }
  }
 }
}
```

## 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",
      "h24_price_change_percentage"
     ],
     "properties": {
      "token_prices": {
       "type": "object",
       "required": [
        "0x940181a94a35a4569e4529a3cdfb74e38fd98631"
       ],
       "properties": {
        "0x940181a94a35a4569e4529a3cdfb74e38fd98631": {
         "type": "string"
        }
       }
      },
      "h24_volume_usd": {
       "type": "object",
       "required": [
        "0x940181a94a35a4569e4529a3cdfb74e38fd98631"
       ],
       "properties": {
        "0x940181a94a35a4569e4529a3cdfb74e38fd98631": {
         "type": "string"
        }
       }
      },
      "market_cap_usd": {
       "type": "object",
       "required": [
        "0x940181a94a35a4569e4529a3cdfb74e38fd98631"
       ],
       "properties": {
        "0x940181a94a35a4569e4529a3cdfb74e38fd98631": {
         "type": "string"
        }
       }
      },
      "h24_price_change_percentage": {
       "type": "object",
       "required": [
        "0x940181a94a35a4569e4529a3cdfb74e38fd98631"
       ],
       "properties": {
        "0x940181a94a35a4569e4529a3cdfb74e38fd98631": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## More

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