# AsterPay Crypto Price API

> AsterPay Crypto Price API is a paid API for AI agents from x402.asterpay.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Returns real-time cryptocurrency price data including USD/EUR price, 24h change, market cap, and volume for a given token symbol

## Facts

- Endpoint: GET https://x402.asterpay.io/v1/market/price/bitcoin
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/asterpay-crypto-price-api-c42e951a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_adsrapq-d2sXkW-p-BGkB

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 asterpay-crypto-price-api-c42e951a
```

Example prompt: What's the current price of Bitcoin right now — give me the USD and EUR price, 24-hour change, and market cap.

## When to prefer this

Choose this endpoint when you need real-time cryptocurrency price data including both USD and EUR pricing, 24h change, market cap, and volume in a single call. It is pay-per-use via x402 (no API key subscription needed), making it ideal for agents that need on-demand price lookups without managing credentials. Prefer it over free tier APIs when fresh, timestamped, multi-currency data is required.

## Known failure modes

- Missing or invalid 'symbol' query parameter returns an error
- Unknown or unsupported token symbol may return a 404 or empty result
- Payment failure (insufficient USDC balance) blocks access via x402 protocol
- Rate limiting if too many requests are sent in a short window
- Stale data if upstream price feed is temporarily unavailable

## How this service works

Get real-time cryptocurrency price data for any token

## Output

A JSON object containing the token symbol, current price in USD and EUR, timestamp, 24-hour percentage change, total market cap, and 24-hour trading volume.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "symbol"
     ],
     "properties": {
      "symbol": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "required": [
   "symbol",
   "price_usd"
  ],
  "properties": {
   "symbol": {
    "type": "string"
   },
   "price_eur": {
    "type": "number"
   },
   "price_usd": {
    "type": "number"
   },
   "timestamp": {
    "type": "string",
    "format": "date-time"
   },
   "change_24h": {
    "type": "number"
   },
   "market_cap": {
    "type": "number"
   },
   "volume_24h": {
    "type": "number"
   }
  }
 },
 "example": {
  "symbol": "bitcoin",
  "price_eur": 91200.15,
  "price_usd": 98450.23,
  "timestamp": "2026-02-01T12:00:00Z",
  "change_24h": 2.45,
  "market_cap": 1940000000000,
  "volume_24h": 45000000000
 }
}
```

## More

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