# x402 Crypto Price API

> x402 Crypto Price API is a paid API for AI agents from x402.167-172-95-184.nip.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns current BTC and ETH USD prices, 24h percentage change, and market caps in a single pay-per-call request via x402/USDC

## Facts

- Endpoint: GET https://x402.167-172-95-184.nip.io/price
- Price: $0.01/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-price-api-96f62893
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MBv2LbZailQ_BPxIgmwnS

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-price-api-96f62893
```

Example prompt: What are the current prices of Bitcoin and Ethereum in USD, along with their 24-hour percentage changes and market caps?

## When to prefer this

Choose this endpoint when you need a lightweight, agent-native, pay-as-you-go crypto price feed for BTC and ETH without a subscription. Ideal for AI agents that handle microtransactions via x402/USDC on Base and need real-time price snapshots with market cap and 24h change included in a single call.

## Known failure modes

- Payment not included or insufficient USDC triggers HTTP 402 Payment Required
- Invalid or missing x402 payment header returns 402 with payment details
- Network issues with Base blockchain may delay payment settlement
- Rate limiting if payment is not confirmed in time
- Stale price data if upstream price oracle is delayed

## How this service works

Agent-commerce trust/audit API for x402 challenge correctness, receipts, replay/context binding, failed payout triage, mandate readiness, and MCP/A2A discoverability.

## Output

A JSON object containing current USD prices, market capitalizations, and 24-hour percentage change for BTC and ETH, plus the network (Base) and a Unix timestamp for the data snapshot.

## 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": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "prices": {
   "BTC": {
    "usd": 100000,
    "market_cap": 1980000000000,
    "change_24h_pct": 1.23
   },
   "ETH": {
    "usd": 3500,
    "market_cap": 420000000000,
    "change_24h_pct": -0.42
   }
  },
  "network": "base",
  "timestamp": 1780000000
 },
 "description": "Current BTC and ETH USD prices with 24h change and market caps."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-crypto-price-api-96f62893/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.167-172-95-184.nip.io](https://www.zero.xyz/host/x402.167-172-95-184.nip.io/llms.txt)
