# Script Master Labs — Crypto Price API (x402)

> Script Master Labs — Crypto Price API (x402) is a paid API for AI agents from mcp-x402.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns real-time cryptocurrency prices and market data (market cap, 24hr volume, 24hr change) for one or more coin IDs, paid per-call in USDC via x402.

## Facts

- Endpoint: GET https://mcp-x402.onrender.com/x402/crypto-price
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/script-master-labs-crypto-price-api-x402-cecc0062
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Hda_hY3MOvnoNCyviYfl4

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 script-master-labs-crypto-price-api-x402-cecc0062
```

Example prompt: What's the current price of bitcoin and ethereum in USD, including their 24-hour price change and market cap?

## When to prefer this

Choose this endpoint when you need real-time cryptocurrency price data with optional market metrics (market cap, volume, 24hr change) in a pay-per-call model settled in USDC on Base via the x402 protocol — ideal for AI agents that need on-demand spot pricing without a long-term API subscription.

## Known failure modes

- Invalid or unrecognized coin ID returns an empty object or error
- Missing required 'ids' query parameter causes a 400 or schema validation error
- Payment failure or insufficient USDC balance results in x402 payment-required error
- vs_currencies not supported returns empty or error response
- Rate limiting or upstream provider downtime causes 5xx or timeout

## How this service works

Pay-per-call crypto, RWA, federal, SEC, Section 8/HUD housing, and compliance APIs via x402. Primary: USDC on Base (eip155:8453). Also accepts Global Dollar (USDG) on Robinhood Chain (eip155:4663) via sovereign X-PAYMENT-TX. Hyphen routes only (e.g. /x402/gas-tracker, /x402/pha-lookup, /x402/sec-8k). MARKETPLACE REVIEW: use free /x402/playground/* (no key, no payment). Production /x402/* returns 402 unless paid via x402 or X-Api-Market-Key / X-API-Key from seller dashboard.

## Output

A JSON object keyed by coin ID, containing the current price in the requested fiat/crypto currency, and optionally the 24-hour trading volume, market capitalization, and 24-hour price change percentage — all as numeric values.

## 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": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "ids"
     ],
     "properties": {
      "ids": {
       "type": "string",
       "description": "Comma-separated CoinGecko coin IDs, e.g. bitcoin,ethereum"
      },
      "vs_currencies": {
       "type": "string"
      },
      "include_24hr_vol": {
       "type": "boolean"
      },
      "include_market_cap": {
       "type": "boolean"
      },
      "include_24hr_change": {
       "type": "boolean"
      }
     }
    }
   }
  },
  "output": {
   "properties": {
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "example": {}
}
```

## More

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