# BTC/USD Price Feed (DefiLlama via x402)

> BTC/USD Price Feed (DefiLlama via x402) is a paid API for AI agents from x402-seller-0ay3.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns the current Bitcoin price in USD, sourced from DefiLlama, with no input parameters required.

## Facts

- Endpoint: GET https://x402-seller-0ay3.onrender.com/api/price/btc-usd
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/btc-usd-price-feed-defillama-via-x402-2aba6694
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Dwo3iNwpPqL4rkRsNdsnk

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-usd-price-feed-defillama-via-x402-2aba6694
```

Example prompt: What's the current Bitcoin price in USD? Pull it from DefiLlama and give me the confidence score too.

## When to prefer this

Choose this endpoint when you need a no-parameter, instant BTC/USD price lookup with a built-in confidence score sourced from DefiLlama — ideal for DeFi-oriented workflows where DefiLlama data provenance matters. Prefer this over general crypto APIs when you want a lightweight, single-call solution with no query construction required.

## Known failure modes

- DefiLlama upstream unavailable — stale or missing price data returned
- Network timeout from the Render-hosted service causing delayed response
- Payment not processed (x402) — 402 response if USDC payment fails
- Confidence score lower than expected if DefiLlama data is lagging

## How this service works

Current BTC (Bitcoin) price in USD, source DefiLlama. No parameters.

## Output

Returns a JSON object containing the BTC symbol, current price in USD (e.g. 65000.12), the DefiLlama source URL, a confidence score (0–1), and an ISO 8601 timestamp of when the price was fetched.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "source": "https://coins.llama.fi",
  "symbol": "BTC",
  "price_usd": 65000.12,
  "confidence": 0.99,
  "fetched_at": "2026-09-01T12:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/btc-usd-price-feed-defillama-via-x402-2aba6694/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-seller-0ay3.onrender.com](https://www.zero.xyz/host/x402-seller-0ay3.onrender.com/llms.txt)
