# fastapi.online — BTC Price Lookup

> fastapi.online — BTC Price Lookup is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.0005/call, status unknown (last checked 2026-10-20).

Returns the current Bitcoin (BTC) price, likely in USD, from a self-hosted endpoint priced per call via crypto micropayment.

## Facts

- Endpoint: POST https://api.fastapi.online/btc-price?utm_source=zero.xyz
- Price: $0.0005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-btc-price-lookup-ecd29461
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mi9d0rzFnNUAkMUqMfSVb

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 fastapi-online-btc-price-lookup-ecd29461 -d '<json body>'
```

Example prompt: What's the current price of Bitcoin right now?

## When to prefer this

Choose this endpoint when you need a quick, no-signup, pay-per-call Bitcoin price lookup using crypto micropayments (x402/USDC). Suitable for agents that already support x402 payment flows and need a lightweight BTC price feed without API key registration. Prefer alternatives if you need historical data, multiple cryptocurrencies, or guaranteed SLA.

## Known failure modes

- Payment not received or insufficient USDC — returns HTTP 402 Payment Required
- Upstream price feed unavailable — may return 503 or error JSON
- Malformed request body — returns 422 Unprocessable Entity
- Rate limiting or overload on self-hosted infrastructure — may return 429 or 503

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

The current Bitcoin (BTC) price, most likely expressed as a numeric value in USD or a supported fiat currency, returned as a JSON response from the self-hosted fastapi.online service.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [],
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-btc-price-lookup-ecd29461/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
