# TokenGuard Lending Analytics API

> TokenGuard Lending Analytics API is a paid API for AI agents from eltociear-tokenguard.hf.space, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns DeFi lending protocol analytics and on-chain data for AI agents, covering rates, positions, and market conditions across lending platforms.

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/lending
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokenguard-lending-analytics-api-3b664ed2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CPdqYag-BFAypGHxeWSOk

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 tokenguard-lending-analytics-api-3b664ed2 -d '<json body>'
```

Example prompt: Pull the current lending and borrow rates for USDC and ETH across major DeFi lending protocols like Aave and Compound so I can figure out the best place to put my stablecoins to work right now.

## When to prefer this

Choose this endpoint when you need real-time or near-real-time DeFi lending protocol data including supply/borrow rates, collateral parameters, and protocol liquidity. Prefer it over generic crypto price APIs when the specific need is lending market analytics rather than spot prices or token safety scoring.

## Known failure modes

- Invalid or unsupported token address returns empty or error response
- Unsupported blockchain network yields no data
- Protocol not indexed returns null data
- Rate limiting or micropayment failure returns 402 or 429 error
- Stale or delayed on-chain data may cause slightly outdated rate figures

## How this service works

lending data for AI agents.

## Output

Returns a JSON object containing DeFi lending protocol data such as supply APY, borrow APY, collateral factors, TVL, liquidity depth, and protocol-level metrics for the queried lending market or token.

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokenguard-lending-analytics-api-3b664ed2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from eltociear-tokenguard.hf.space](https://www.zero.xyz/host/eltociear-tokenguard.hf.space/llms.txt)
