# CoinGecko Onchain Solana Token Price

> CoinGecko Onchain Solana Token Price 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-15).

Returns real-time DEX price and market data for a Solana token by its contract address using CoinGecko's on-chain data feed.

## Facts

- Endpoint: GET https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/solana/token_price/:solana_address
- Price: $0.01/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-c6055aec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q5UYNfn5MnF89Z5n_FTBj

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

Example prompt: What's the current on-chain DEX price, 24-hour volume, and market cap for the Solana token at contract address So11111111111111111111111111111111111111112?

## When to prefer this

Use this endpoint when you need real-time on-chain DEX price data specifically for a Solana network token identified by its contract address, rather than a CoinGecko coin ID. Prefer this over the standard CoinGecko simple price endpoint when you need DEX-native pricing (not just exchange aggregates) and have a Solana contract address rather than a named coin slug.

## Known failure modes

- Invalid or non-existent Solana contract address returns empty or error response
- Token not listed on any Solana DEX returns no price data
- Payment failure (402) if x402 USDC payment is not provided or insufficient
- Rate limiting if API key quota is exceeded
- Network or upstream CoinGecko API outage returns 5xx error

## 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 the token's current USD price sourced from on-chain DEX activity on Solana, along with optional fields including 24-hour trading volume, market capitalization, 24-hour price change percentage, and total reserve in USD — keyed by the token contract address.

## 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/pro-api-coingecko-com-c6055aec/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)
