# x402 tools – Token Price (Symbol/CoinGecko ID)

> x402 tools – Token Price (Symbol/CoinGecko ID) is a paid API for AI agents from x402-tools-production-2755.up.railway.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Fetches real-time market data (price, changes, volume, market cap, supply, ATH/ATL distance, optional sparkline) for up to 50 ticker symbols or 250 CoinGecko IDs in a single call.

## Facts

- Endpoint: GET https://x402-tools-production-2755.up.railway.app/tools/token-price?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-tools-token-price-symbol-coingecko-id-62e00641
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iNgvhr5otlL43aeesPW4u

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 x402-tools-token-price-symbol-coingecko-id-62e00641
```

Example prompt: Can you pull the current prices, 24h and 7d changes, market caps, and volume for BTC, ETH, SOL, and AVAX — and also include the 7-day sparkline so I can see the trend?

## When to prefer this

Prefer this endpoint when you need to price a portfolio or watchlist of well-known tokens by ticker symbol or CoinGecko ID, especially when you want rich metadata (ATH/ATL distance, FDV, supply, multi-period changes) in a single call. It is the right choice for batch pricing of up to 50 symbols or 250 CoinGecko IDs. If you need to price long-tail or newly listed tokens by contract address that may not have a CoinGecko listing, use the contract-address pricing sibling endpoint instead.

## Known failure modes

- Symbol not found or ambiguous ticker resolves to wrong coin — no result returned, no charge
- CoinGecko ID misspelled or invalid — token silently omitted from response
- Exceeding 50 symbols or 250 CoinGecko IDs — request may be truncated or rejected
- Upstream CoinGecko rate limit or outage — may return stale or empty data
- Quote currency not supported — defaults to USD or returns error

## How this service works

Use to price a crypto portfolio or watchlist in one call. Market data for up to 50 symbols or 250 CoinGecko ids: price, 1h/24h/7d/30d change, 24h high/low, volume, market cap, rank, FDV, supply, and distance from all-time high/low; optional 7-day sparkline. One flat price per call; not charged if nothing is found.

## Output

Returns a list of market data objects, one per requested token, each containing: current price in the requested quote currency, percentage changes over 1h/24h/7d/30d, 24h high and low, 24h trading volume, market capitalization, market cap rank, fully diluted valuation, circulating and total supply, distance from all-time high and all-time low, and optionally a 7-day array of hourly prices (sparkline). If a single symbol or id is queried, returns a single object instead of a list. Nothing is returned (and the call is not charged) if no matching tokens are found.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "id": {
       "type": "string",
       "description": "One CoinGecko id; returns a single object instead of a list"
      },
      "vs": {
       "type": "string",
       "description": "Quote currency, default usd"
      },
      "ids": {
       "type": "string",
       "description": "Comma-separated CoinGecko ids, up to 250, e.g. bitcoin,ethereum"
      },
      "symbol": {
       "type": "string",
       "description": "One ticker; returns a single object instead of a list"
      },
      "symbols": {
       "type": "string",
       "description": "Comma-separated tickers, up to 50, e.g. BTC,ETH,SOL. Each resolves to the largest coin with that ticker"
      },
      "sparkline": {
       "enum": [
        "true",
        "false"
       ],
       "type": "string",
       "description": "Include 7 days of hourly prices per token"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-tools-token-price-symbol-coingecko-id-62e00641/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-tools-production-2755.up.railway.app](https://www.zero.xyz/host/x402-tools-production-2755.up.railway.app/llms.txt)
