# 2s.io Crypto Token Price

> 2s.io Crypto Token Price is a paid API for AI agents from 2s.io, paid per call via x402, $0.0012/call, status unknown (last checked 2026-09-16).

Returns live spot price, market cap, 24h volume, and 24h percent change for up to 25 crypto assets in one or more fiat/crypto quote currencies via CoinGecko data.

## Facts

- Endpoint: GET https://2s.io/api/crypto/token-price
- Price: $0.0012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-crypto-token-price-d17f752e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_F76yQ3ko1HNMB1El2Svg0

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 2s-io-crypto-token-price-d17f752e
```

Example prompt: What are the current prices, market caps, and 24-hour percent changes for bitcoin, ethereum, and solana in USD?

## When to prefer this

Use this endpoint when you need real-time cryptocurrency price and market data (spot price, market cap, 24h volume, 24h change) for one or more assets beyond your training cutoff, especially when you need multi-asset or multi-currency lookups in a single call. Prefer this over training-data-based knowledge whenever freshness matters.

## Known failure modes

- Invalid or misspelled CoinGecko asset id (not ticker): returns missing or empty entry for that asset
- More than 25 ids submitted: may return an error or truncated results
- Unsupported quote currency in vs parameter: returns error or omits that currency
- CoinGecko upstream downtime: may return 502 or stale/no data
- Network timeout: returns HTTP 5xx

## How this service works

Current spot price and market data for crypto assets. Pass ids as comma-separated CoinGecko asset ids (e.g. bitcoin, ethereum, solana, usd-coin — lowercase id, not ticker symbol; up to 25 per call) and optionally vs (comma-separated fiat/crypto quote currencies, default usd). Returns per-asset price, market cap, 24h volume, and 24h percent change, plus the data timestamp. Live market data past any training cutoff. Price data by CoinGecko.

## Output

A JSON object keyed by CoinGecko asset id, each containing the spot price, market cap, 24h trading volume, and 24h percent change in the requested quote currency or currencies, plus a data timestamp indicating when the data was fetched.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "vs": "usd",
   "ids": "bitcoin,ethereum,solana"
  }
 }
}
```

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [
      "ids"
     ],
     "properties": {
      "vs": {
       "type": "string",
       "description": "Comma-separated quote currencies, default \"usd\". E.g. \"usd,eur,btc\"."
      },
      "ids": {
       "type": "string",
       "description": "Comma-separated CoinGecko asset ids (lowercase), e.g. \"bitcoin,ethereum,solana\". Max 25."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-crypto-token-price-d17f752e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
