# X402 Hub – Coinbase API Gateway

> X402 Hub – Coinbase API Gateway is a paid API for AI agents from x402-hub.vercel.app, paid per call via x402, $0.107667/call, status unknown (last checked 2026-09-15).

Proxies a query to one of 63 paid Coinbase-related API endpoints gated by x402 micropayments on Base

## Facts

- Endpoint: POST https://x402-hub.vercel.app/api/coinbase
- Price: $0.107667/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-hub-coinbase-api-gateway-63a068c5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rSdu_N9MWJdVKoe1kTF8A

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-hub-coinbase-api-gateway-63a068c5 -d '<json body>'
```

Example prompt: Query the Coinbase x402 Hub for the current BTC/USD price — pay the micropayment automatically and give me the result.

## When to prefer this

Choose this endpoint when you need pay-per-call access to Coinbase data without a long-term API subscription, when your agent wallet supports x402 micropayments on Base, and when you want to query any of the 63 Coinbase API surfaces (market data, account info, asset lists, etc.) through a single unified gateway. Prefer alternatives if you have a native Coinbase API key, need bulk/batch queries cheaply, or require a specific Coinbase endpoint with a richer schema.

## Known failure modes

- Payment failure: insufficient USDC balance causes 402 Payment Required response
- Invalid query: unrecognized query parameter returns error or empty data object
- Rate limiting: too many rapid calls may result in throttling from the upstream Coinbase API
- Network error: Vercel cold start or upstream Coinbase API downtime causes timeout or 5xx
- Malformed input: missing required 'query' field returns validation error

## How this service works

63 paid API endpoints protected by x402 micropayments on Base

## Output

A JSON object containing a 'data' field with the upstream Coinbase API response, which varies depending on the query submitted. The shape of the data object is determined by which of the 63 underlying Coinbase endpoints is invoked.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Query parameter for the API"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "description": "Response data from upstream API"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-hub-coinbase-api-gateway-63a068c5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-hub.vercel.app](https://www.zero.xyz/host/x402-hub.vercel.app/llms.txt)
