# ScriptMasterLabs Crypto Price API (x402)

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

Fetches current cryptocurrency prices (e.g. Bitcoin, Ethereum) in a specified fiat currency, paid per-call in USDC on Base via x402.

## Facts

- Endpoint: GET https://acp-x402-discovery.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/scriptmasterlabs-crypto-price-api-x402-cdb29f2c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hlWEbzBAQiDIM8ZU6Fu35

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 scriptmasterlabs-crypto-price-api-x402-cdb29f2c
```

Example prompt: What's the current price of bitcoin and ethereum in USD? Use the pay-per-call crypto price feed.

## When to prefer this

Choose this endpoint when you need a pay-per-call, microtransaction-priced crypto price lookup settled in USDC on Base via x402, and you want to avoid API key management. It's ideal for autonomous agents that pay per query rather than subscribing to a plan. Prefer this over free public APIs when operating within an x402-enabled payment flow.

## Known failure modes

- Invalid or misspelled CoinGecko coin ID returns empty or missing data for that coin
- Missing 'ids' query param may return an empty response or error
- Payment failure (402) if USDC balance is insufficient or x402 header is not properly set
- Service may be slow or unavailable due to Render.com free-tier cold starts
- Rate limits or upstream CoinGecko outages can cause stale or failed responses

## How this service works

Pay-per-call crypto, RWA, federal, SEC, and compliance APIs. Settled in USDC on Base via x402. Hyphen routes only (e.g. /x402/rwa-aggregates, /x402/gas-tracker).

## Output

A JSON object mapping each requested CoinGecko coin ID to its current price in the specified vs-currency (e.g. {"bitcoin":{"usd":67000},"ethereum":{"usd":3500}}). Response schema is loosely typed and follows CoinGecko's simple price format.

## 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",
     "properties": {
      "vs": {
       "type": "string",
       "default": "usd",
       "example": "usd"
      },
      "ids": {
       "type": "string",
       "example": "bitcoin,ethereum",
       "description": "CoinGecko ids csv"
      }
     }
    }
   }
  },
  "output": {
   "properties": {
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

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