# x402-agent-store Crypto Token Prices

> x402-agent-store Crypto Token Prices is a paid API for AI agents from x402-agent-store.rileycraig14.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Returns live USD prices, symbols, and confidence scores for one or more tokens identified by CoinGecko ID, sourced from DefiLlama

## Facts

- Endpoint: GET https://x402-agent-store.rileycraig14.workers.dev/crypto/prices
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-agent-store-crypto-token-prices-091ab877
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eZMmjkgp0kA-Tzza751r5

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-agent-store-crypto-token-prices-091ab877
```

Example prompt: What are the current USD prices for bitcoin, ethereum, and solana right now, with confidence scores?

## When to prefer this

Use this endpoint when you need live USD price data for one or more specific tokens identified by their CoinGecko IDs in a single call, especially when you want confidence scores alongside prices and attribution to DefiLlama. Prefer this over generic price APIs when operating in a DeFi/agent context that supports x402 micropayments.

## Known failure modes

- Invalid or unrecognized CoinGecko ID returns an error or missing entry for that token
- Requesting more than 25 token IDs returns a validation error
- DefiLlama data source unavailable causes a 503 or stale-data response
- Malformed comma-separated ids parameter returns a 400 bad request
- Payment not processed (x402 payment required) results in a 402 error

## How this service works

Current USD prices for one or more tokens by CoinGecko id (e.g. bitcoin, ethereum, solana, usd-coin). Returns price, symbol, and confidence per token in one call. Sourced live from DefiLlama with attribution.

## Output

A JSON object mapping each requested CoinGecko token ID to its current USD price, token symbol, and a confidence score indicating data reliability, plus a source attribution string (DefiLlama).

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "at": {
       "type": "integer",
       "description": "Unix seconds for a historical price snapshot. Omit for current."
      },
      "ids": {
       "type": "string",
       "description": "Legacy alias for coins: comma-separated CoinGecko ids (bitcoin,ethereum)."
      },
      "coins": {
       "type": "string",
       "description": "Comma-separated symbols (BTC,ETH), CoinGecko ids (bitcoin or coingecko:solana), or chain:address (base:0x833…). Up to 50. Preferred param."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": "string"
      },
      "count": {
       "type": "number"
      },
      "prices": {
       "type": "array"
      },
      "source": {
       "type": "object"
      },
      "requested": {
       "type": "number"
      },
      "historical": {
       "type": "boolean"
      },
      "unresolved": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "prices": {
   "bitcoin": {
    "price": 104250.12,
    "symbol": "BTC"
   },
   "ethereum": {
    "price": 3890.4,
    "symbol": "ETH"
   }
  },
  "source": "DefiLlama"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-agent-store-crypto-token-prices-091ab877/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-store.rileycraig14.workers.dev](https://www.zero.xyz/host/x402-agent-store.rileycraig14.workers.dev/llms.txt)
