# Crypto Price API (x402)

> Crypto Price API (x402) is a paid API for AI agents from x402-data-api-x6da.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-19).

Returns real-time USD prices, market cap, volume, and percent changes for up to 10 cryptocurrencies by symbol or slug, paid per-call via USDC on Base.

## Facts

- Endpoint: GET https://x402-data-api-x6da.onrender.com/v1/crypto/price?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-price-api-x402-676db96e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qycVuI8IPOPkiVhMEQe6A

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 crypto-price-api-x402-676db96e
```

Example prompt: What are the current USD prices, 24-hour change, and market caps for BTC, ETH, and SOL right now?

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-call crypto price lookups without API key sign-up, especially in agentic workflows already using x402/USDC micropayments on Base. It covers up to 10 coins per call with market cap, volume, and multi-timeframe change data. Prefer alternatives if you need order book depth, historical OHLCV data, or exchange-specific pricing.

## Known failure modes

- Unrecognized symbols returned in 'not_found' array rather than throwing an error
- Payment failure if USDC balance on Base is insufficient (x402 protocol error)
- Stale data if alternative.me upstream is delayed — check last_updated timestamp
- More than 10 symbols in one request may be rejected or truncated
- Network timeout if Render.com cold-start is triggered on an idle instance

## How this service works

Pay-per-call data and web utilities for AI agents: web page to Markdown, SEO audit, email check, domain RDAP/DNS and mail security, ECB FX rates, time zones and business days, SEC EDGAR search and fundamentals, Federal Register, USAspending, weather and NWS alerts, VIN, NPI, ATS jobs. USDC on Base via x402, no sign-up.

## Output

A JSON object with a 'prices' array where each entry contains the coin's name, symbol, rank, USD price, market cap, 24h trading volume, and percentage changes over 1h/24h/7d windows, plus a 'not_found' array for unrecognized symbols and an attribution string crediting alternative.me.

## 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"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "symbols": {
       "type": "string",
       "description": "comma-separated symbols or slugs, max 10"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "prices": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "name": {
          "type": "string"
         },
         "rank": {
          "type": "number"
         },
         "input": {
          "type": "string"
         },
         "symbol": {
          "type": "string"
         },
         "price_usd": {
          "type": "number"
         },
         "last_updated": {
          "type": "string"
         },
         "change_1h_pct": {
          "type": "number"
         },
         "change_7d_pct": {
          "type": "number"
         },
         "change_24h_pct": {
          "type": "number"
         },
         "market_cap_usd": {
          "type": "number"
         },
         "volume_24h_usd": {
          "type": "number"
         }
        }
       }
      },
      "currency": {
       "type": "string"
      },
      "not_found": {
       "type": "array",
       "items": {}
      },
      "attribution": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "prices": [
   {
    "name": "Bitcoin",
    "rank": 1,
    "input": "BTC",
    "symbol": "BTC",
    "price_usd": 79759,
    "last_updated": "2026-10-26T14:37:51Z",
    "change_1h_pct": -0.9393,
    "change_7d_pct": -3.666,
    "change_24h_pct": -0.65316,
    "market_cap_usd": 1603442293070,
    "volume_24h_usd": 24555016420
   },
   {
    "name": "Ethereum",
    "rank": 2,
    "input": "ETH",
    "symbol": "ETH",
    "price_usd": 2311.82,
    "last_updated": "2026-10-26T14:37:51Z",
    "change_1h_pct": -1.0722,
    "change_7d_pct": -5.1256,
    "change_24h_pct": -0.84103,
    "market_cap_usd": 282417040236,
    "volume_24h_usd": 9521547750
   }
  ],
  "currency": "USD",
  "not_found": [],
  "attribution": "Data from alternative.me (https://alternative.me/crypto/api/)"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-price-api-x402-676db96e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-data-api-x6da.onrender.com](https://www.zero.xyz/host/x402-data-api-x6da.onrender.com/llms.txt)
