# x402 Crypto APIs – Coinbase Realtime Data

> x402 Crypto APIs – Coinbase Realtime Data is a paid API for AI agents from x402-crypto.vercel.app, paid per call via x402, $0.140681/call, status unknown (last checked 2026-09-15).

Fetches real-time cryptocurrency market data for a given trading pair or symbol via Coinbase, paid per-call using x402 micropayments

## Facts

- Endpoint: POST https://x402-crypto.vercel.app/api/coinbase-realtime/%7Bpath%7D
- Price: $0.140681/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-crypto-apis-coinbase-realtime-data-a7797f32
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SCgxzuFCG7Je0kwiniI_u

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 x402-crypto-apis-coinbase-realtime-data-a7797f32 -d '<json body>'
```

Example prompt: Can you fetch the real-time Coinbase market data for BTC-USD right now?

## When to prefer this

Choose this endpoint when you need real-time cryptocurrency price or market data sourced directly from Coinbase, particularly in agentic workflows that support x402 micropayment protocols. It is ideal for trading bots, portfolio trackers, or price alert systems that require fresh, per-call data without long-term subscription overhead. Prefer this over REST-only alternatives when your stack supports automatic x402 payment handling.

## Known failure modes

- Invalid or unsupported trading pair symbol returns an error or empty data payload
- Payment failure or insufficient USDC balance causes a 402 Payment Required response and no data is returned
- Network or upstream Coinbase API unavailability results in a timeout or 5xx error
- Malformed query string (missing or incorrectly formatted symbol) causes a validation error
- Rate limiting or x402 facilitator issues may block repeated rapid requests

## How this service works

Paid cryptocurrency API endpoints via x402 micropayments

## Output

Returns a data object containing the real-time market data payload from the Coinbase API for the requested trading pair, including current price and related market figures. The exact structure varies depending on the specific path queried.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Trading pair or symbol (e.g. BTC-USD)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "description": "Response payload from the upstream API (structure varies by endpoint)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-crypto-apis-coinbase-realtime-data-a7797f32/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-crypto.vercel.app](https://www.zero.xyz/host/x402-crypto.vercel.app/llms.txt)
