# Beggar Bot Token Price

> Beggar Bot Token Price 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-02).

Returns on-chain spot USD price for up to 4 ERC-20 tokens using Uniswap v3 slot0 and Aerodrome reserve data on Base or Ethereum, with liquidity confidence flags.

## Facts

- Endpoint: GET https://beggar-bot-demand.beggarbot.workers.dev/v1/tokenprice?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-token-price-94a03097
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uHm8o7t-ekp98d_uoxM2K

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-token-price-94a03097
```

Example prompt: What's the current on-chain USD spot price for WETH and USDC on Base — and flag if either has thin liquidity or a big cross-pool spread?

## When to prefer this

Choose this endpoint when you need trustless, on-chain token prices without relying on centralized price oracles, CoinGecko, or API keys. Ideal for DeFi agents that need real-time Uniswap v3 and Aerodrome prices with liquidity quality signals on Base or Ethereum. Prefer it over off-chain price APIs when you need cross-pool spread awareness and thin-liquidity flags for safe trade execution.

## Known failure modes

- Invalid or non-existent token address returns error or null price
- More than 4 tokens requested in a single call exceeds limit
- Unsupported chain identifier returns validation error
- Token with no Uniswap v3 or Aerodrome pool returns no price data
- Network RPC failure causes timeout or empty response
- Extremely low liquidity token may return price with low confidence flag

## 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 response containing the spot USD price for each requested token, the deepest pool identified by quote-side liquidity, cross-pool spread between DEX sources, boolean flags for thin liquidity and price divergence, and an overall confidence score. Pools are derived via CREATE2 — no external indexer or API key required.

## 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",
     "required": [
      "tokens"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "base (default) or ethereum"
      },
      "tokens": {
       "type": "string",
       "description": "comma list of token addresses (≤4)"
      }
     }
    }
   },
   "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-token-price-94a03097/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)
