# Beggar Bot Protocol TVL History

> Beggar Bot Protocol TVL History 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-25).

Fetches historical Total Value Locked (TVL) data for a DeFi protocol on Base mainnet over a specified time window using DefiLlama slugs

## Facts

- Endpoint: GET https://beggar-bot-demand.beggarbot.workers.dev/v1/prottvlhist?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-25
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-protocol-tvl-history-538b4b9a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ACiFujThMmoEMpHfXIjIE

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-protocol-tvl-history-538b4b9a
```

Example prompt: Can you pull the TVL history for Aave on Base mainnet over the last 90 days so I can see how the protocol's liquidity has trended?

## When to prefer this

Use this endpoint when you need programmatic, pay-per-call access to historical DeFi protocol TVL data on Base mainnet, billed in USDC via x402 micropayments. Prefer this over direct DefiLlama API calls when you need a metered, agent-friendly interface with on-chain payment rails, or when building autonomous agents that need to query TVL history without managing API keys.

## Known failure modes

- Invalid or unrecognized DefiLlama protocol slug returns an error or empty dataset
- Payment of $0.02 USDC not received or insufficient balance causes 402 Payment Required
- Network parameter unsupported or misspelled may fall back to default Base mainnet
- Days parameter outside supported range may return partial or error response
- Cloudflare Workers timeout if upstream DefiLlama data is slow

## 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 time series of historical TVL values for the specified DeFi protocol, indexed by date, covering the requested number of days. Each data point reflects the total value locked in the protocol on Base mainnet as sourced via DefiLlama.

## 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": {
      "days": {
       "type": "string",
       "description": "days (90)"
      },
      "protocol": {
       "type": "string",
       "description": "DefiLlama slug"
      }
     }
    }
   },
   "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-protocol-tvl-history-538b4b9a/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)
