# agentsvc.io Crypto Prices

> agentsvc.io Crypto Prices is a paid API for AI agents from agentsvc.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-10).

Fetches current or historical USD (and other fiat) prices, market cap, and 24h change for up to 25 cryptocurrencies by coin ID, ticker, or on-chain token address.

## Facts

- Endpoint: POST https://agentsvc.io/api/v1/proxy/crypto-prices?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentsvc-io-crypto-prices-4bdae80f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ICLt7l67n89IK7WD-Z4YD

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 agentsvc-io-crypto-prices-4bdae80f -d '<json body>'
```

Example prompt: What are the current prices of Bitcoin, Ethereum, and Solana in USD, and how much have they changed in the last 24 hours?

## When to prefer this

Choose this endpoint when you need live or historical crypto prices for multiple coins in a single call without managing API keys. It supports both major tickers (BTC, ETH) and CoinGecko IDs, plus on-chain token addresses on Base — making it ideal for portfolio valuation, DeFi analytics, or tax-reporting workflows. Prefer this over rolling your own CoinGecko integration when operating in an agent context that supports x402 micropayments.

## Known failure modes

- Unrecognized coin ID or ticker returns entry in 'not_found' array
- More than 25 coins in a single request may be rejected
- Invalid ISO date or unix timestamp for historical queries causes error
- Unsupported fiat currency code returns error
- Historical data may not be available for very old dates or obscure tokens
- Payment failure (insufficient USDC) blocks the request entirely

## How this service works

86 APIs for AI agents: web scraping and crawling to Markdown, AI summaries, data extraction and cited answers, screenshots and PDF, PDF, OCR and document conversion, news, paper and developer search and more, paid per call with USDC on Base, Solana, Polygon or Arbitrum via x402. No account, no API key, free sample on every service.

## Output

Returns a JSON object with a 'prices' map keyed by coin identifier, each containing the price in requested fiat currencies, 24h percentage change, market cap, full coin name, and symbol. Also includes the data source (CoinGecko), fetch timestamp, and a 'not_found' array for any unrecognized coins.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "at": {
   "type": "string",
   "description": "Past ISO date or unix seconds for historical USD prices"
  },
  "coins": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "examples": [
    [
     "bitcoin",
     "ethereum"
    ],
    [
     "BTC",
     "ETH",
     "SOL"
    ],
    [
     "bitcoin",
     "BNB",
     "cardano"
    ]
   ],
   "description": "List of coin IDs or ticker symbols. Accepts CoinGecko IDs (e.g. 'bitcoin', 'ethereum') or common tickers (e.g. 'BTC', 'ETH', 'SOL'). Max 25 coins per call."
  },
  "tokens": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Tokens as chain:address, e.g. base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
  },
  "currencies": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "default": [
    "usd"
   ],
   "description": "Target currencies. Default: ['usd']. Supported: usd, btc, eth and every ECB currency (eur, gbp, jpy, chf, aud, cad, ...)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "prices": {
    "bitcoin": {
     "usd": 71923,
     "symbol": "BTC",
     "price_time": "2026-04-10T13:59:41.000Z",
     "usd_24h_change": 1.42
    },
    "ethereum": {
     "usd": 2188,
     "symbol": "ETH",
     "price_time": "2026-04-10T13:59:38.000Z",
     "usd_24h_change": 0.41
    }
   },
   "source": "DefiLlama coins API",
   "not_found": [],
   "fetched_at": "2026-04-10T14:00:00.000Z"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentsvc-io-crypto-prices-4bdae80f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentsvc.io](https://www.zero.xyz/host/agentsvc.io/llms.txt)
