# Crypto Spot Price API (Coinbase-sourced, Edge-cached)

> Crypto Spot Price API (Coinbase-sourced, Edge-cached) is a paid API for AI agents from mr-river8.makar52nn2016.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-16).

Returns the live USD spot price for a given crypto trading pair (e.g. BTC-USD) sourced from Coinbase, edge-cached up to 30 seconds

## Facts

- Endpoint: GET https://mr-river8.makar52nn2016.workers.dev/api/crypto-price?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-spot-price-api-coinbase-sourced-edge-cached-74e79794
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8-j8qw1HHFElJO8woPs5o

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-spot-price-api-coinbase-sourced-edge-cached-74e79794
```

Example prompt: What's the current spot price of BTC-USD right now? Pull it from the Coinbase-sourced feed.

## When to prefer this

Choose this endpoint when you need a quick, low-cost ($0.001 per call) live USD spot price for a crypto asset sourced directly from Coinbase, with edge-caching ensuring low latency. Ideal for agents that need real-time price lookups without managing Coinbase API credentials. Prefer over raw Coinbase API when you want a pay-per-call micro-payment model via x402 and don't want to maintain API keys.

## Known failure modes

- Invalid or unsupported trading pair symbol returns an error or empty result
- Network or edge cache unavailability may cause timeout
- Coinbase upstream outage could result in stale or failed price data
- Missing 'symbol' query parameter returns a bad request error
- Payment failure (insufficient USDC) blocks the request with a 402 response

## How this service works

Live crypto spot price in USD — Coinbase public source, edge-cached up to 30s

## Output

A JSON object containing the base asset (e.g. 'BTC'), quote currency ('USD'), the numeric spot price (e.g. 112345.67), the trading symbol (e.g. 'BTC-USD'), the source identifier ('coinbase-spot'), and the currency label. Price is edge-cached and up to 30 seconds old.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "properties": {
      "symbol": {
       "type": "string",
       "example": "BTC-USD",
       "description": "Trading pair BASE-QUOTE"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "base": "BTC",
     "price": 112345.67,
     "quote": "USD",
     "source": "coinbase-spot",
     "symbol": "BTC-USD",
     "currency": "USD"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "BTC",
  "price": 112345.67,
  "quote": "USD",
  "source": "coinbase-spot",
  "symbol": "BTC-USD",
  "currency": "USD"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-spot-price-api-coinbase-sourced-edge-cached-74e79794/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mr-river8.makar52nn2016.workers.dev](https://www.zero.xyz/host/mr-river8.makar52nn2016.workers.dev/llms.txt)
