# BTC Price Feed (Base Network, x402)

> BTC Price Feed (Base Network, x402) is a paid API for AI agents from agentkit-x402-buy.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-27).

Returns the current Bitcoin price in USD with 24-hour change, payable per-call via x402 micropayment on Base network.

## Facts

- Endpoint: GET https://agentkit-x402-buy.vercel.app/api/btc-price?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/btc-price-feed-base-network-x402-dfb3d77f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WT2C1LvlZk4HouUsHdwGM

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 btc-price-feed-base-network-x402-dfb3d77f
```

Example prompt: What's the current Bitcoin price in USD and how much has it moved in the last 24 hours?

## When to prefer this

Choose this endpoint when you need a real-time Bitcoin USD price with 24-hour change data and want to pay per-call with USDC on Base without creating an account or managing API keys. Ideal for AI agents operating on Base network that can natively handle x402 micropayments.

## Known failure modes

- Payment not included or insufficient USDC — returns 402 Payment Required
- Malformed query parameters — returns 400 Bad Request
- Network or provider outage — returns 503 or timeout
- Price data temporarily unavailable from upstream source

## How this service works

Instant Base wallet health brief. Pay $0.50 USDC via x402. No account.

## Output

A JSON object containing the BTC/USD price (e.g. 64000), the 24-hour percentage change (e.g. 0.5), the network identifier (eip155:8453 for Base), and the seller wallet address. The response is returned immediately after the x402 micropayment is processed.

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "seller": "0xEb76f3442EAF192EBdDbc1F7EeBD59CdE5e00D35",
  "btc_usd": 64000,
  "network": "eip155:8453",
  "change_24h": 0.5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/btc-price-feed-base-network-x402-dfb3d77f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentkit-x402-buy.vercel.app](https://www.zero.xyz/host/agentkit-x402-buy.vercel.app/llms.txt)
