# Beggar Bot Price-at Historical Oracle

> Beggar Bot Price-at Historical Oracle is a paid API for AI agents from beggar-bot-demand.beggarbot.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-23).

Returns historical on-chain price data for crypto/fiat pairs (ETH/USD, BTC/USD, USDC/USD, etc.) at specified block numbers or latest, optionally using a custom 0x aggregator feed.

## Facts

- Endpoint: GET https://beggar-bot-demand.beggarbot.workers.dev/v1/priceat?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-price-at-historical-oracle-2b11dc39
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EG8VNyRFQVSdWS3-thb9w

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 beggar-bot-price-at-historical-oracle-2b11dc39
```

Example prompt: What was the ETH/USD price on Base at blocks 12000000 and 12000500? Use the latest on-chain data.

## When to prefer this

Choose this endpoint when you need verifiable, on-chain historical price data for major crypto pairs at specific block heights on Ethereum or Base, particularly for DeFi workflows, audit trails, or backtesting scenarios requiring block-precise prices. Prefer this over off-chain price APIs when immutability and block-level precision matter.

## Known failure modes

- Unsupported trading pair returns an error (only ETH/USD, BTC/USD, USDC/USD, USDT/USD, LINK/USD are supported)
- Invalid or non-existent block number returns an error
- Unsupported chain value (only 'ethereum' and 'base' accepted)
- Payment not received or insufficient USDC results in 402 response
- Invalid aggregator feed address returns error or fallback behavior

## How this service works

Paid: /v1/verify, /v1/risk, /v1/receipt cost $0.01 USDC per call on Base mainnet via x402 (payTo 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7); utilities analyze Base mainnet (USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) by default, network=base-sepolia optional; /v1/receipt/verify and discovery files are free. Operator: Beggar Bot.

## Output

A JSON object containing the price value(s) for the requested trading pair at the specified block(s) on the given chain, along with block references and pair metadata.

## 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": {
      "feed": {
       "type": "string",
       "description": "optional 0x aggregator"
      },
      "pair": {
       "type": "string",
       "description": "ETH/USD|BTC/USD|USDC/USD|USDT/USD|LINK/USD"
      },
      "chain": {
       "type": "string",
       "description": "ethereum|base"
      },
      "blocks": {
       "type": "string",
       "description": "csv or latest"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/beggar-bot-price-at-historical-oracle-2b11dc39/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from beggar-bot-demand.beggarbot.workers.dev](https://www.zero.xyz/host/beggar-bot-demand.beggarbot.workers.dev/llms.txt)
