# Aayat AI DeFi Protocol Safety & TVL Lookup

> Aayat AI DeFi Protocol Safety & TVL Lookup is a paid API for AI agents from aayatai.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-02).

Returns safety verdict, TVL, audit status, hacks history, and on-chain metrics for a named DeFi protocol using DefiLlama data

## Facts

- Endpoint: GET https://aayatai.com/defi/protocol?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aayat-ai-defi-protocol-safety-tvl-lookup-cc713684
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XgOPVaFhMj04zD9aEidyV

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 aayat-ai-defi-protocol-safety-tvl-lookup-cc713684
```

Example prompt: Can you check if Aave V3 is safe — I want to know its TVL, whether it's been hacked before, how many audits it has, and what chains it runs on?

## When to prefer this

Use this endpoint when an AI agent needs structured, pre-scored DeFi protocol safety data without building a custom DefiLlama integration. It is ideal for DeFi due-diligence flows, risk dashboards, or agent-driven investment tools that need a single call returning safety verdict, TVL, audit info, and hack history together. Prefer this over raw DefiLlama API calls when you need a normalized safety score and flags already computed. Not suitable for token-level price feeds or wallet balance lookups (use sibling endpoints for those).

## Known failure modes

- Protocol name not found — returns empty suggestions array or 404-equivalent if slug cannot be resolved
- Ambiguous name matches multiple protocols — response includes a suggestions array with alternatives instead of a single result
- DefiLlama data unavailable or stale — checkedAt timestamp may be outdated
- Very new or obscure protocols may have null TVL or null ageDays
- Payment failure (x402) if USDC balance is insufficient — request not processed

## How this service works

DeFi protocol safety check: TVL and its 1h/1d/7d change, chains, category, audits and audit links, oracles, age, forks, market cap/TVL, and every past hack from DefiLlama's database, rolled into flags, a 0-100 score and a verdict. Pass ?name=aave-v3 (slug or name).

## Output

A JSON object containing the protocol's canonical name, DefiLlama slug, current TVL in USD, safety verdict (high-risk/caution/low-risk), safety score 0–100, safety flags, number of audits, audit links, list of past hacks, supported chains, oracle list, TVL percentage changes over 1h/1d/7d, protocol category, age in days, parent protocol, market cap to TVL ratio, and any alternative protocol suggestions if the name is ambiguous.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "maxLength": 80,
       "minLength": 2,
       "description": "Protocol name or DefiLlama slug, e.g. Aave V3 or aave-v3."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "name",
      "slug",
      "tvlUsd",
      "safety"
     ],
     "properties": {
      "name": {
       "type": "string"
      },
      "slug": {
       "type": "string"
      },
      "hacks": {
       "type": "array",
       "description": "Past hacks of this protocol (DefiLlama)."
      },
      "trust": {
       "type": "object",
       "description": "Third-party text, cleaned: read trust.notice; removed = what we stripped."
      },
      "audits": {
       "type": [
        "number",
        "null"
       ]
      },
      "chains": {
       "type": "array"
      },
      "change": {
       "type": "object",
       "description": "TVL % change over 1h, 1d, 7d."
      },
      "events": {
       "type": "array",
       "description": "Notable events on DefiLlama's timeline."
      },
      "safety": {
       "type": "object",
       "description": "verdict (high-risk, caution, low-risk), 0-100 score, flags."
      },
      "tvlUsd": {
       "type": [
        "number",
        "null"
       ]
      },
      "ageDays": {
       "type": [
        "integer",
        "null"
       ]
      },
      "oracles": {
       "type": "array"
      },
      "category": {
       "type": [
        "string",
        "null"
       ]
      },
      "auditLinks": {
       "type": "array"
      },
      "suggestions": {
       "type": "array",
       "description": "Other protocols matching the name."
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://aave.com",
  "name": "Aave V3",
  "slug": "aave-v3",
  "hacks": [],
  "audits": 2,
  "chains": [
   "Ethereum",
   "Base",
   "Arbitrum"
  ],
  "change": {
   "d1": -1.1,
   "d7": -1.6,
   "h1": -0.9
  },
  "events": [
   {
    "date": "2026-04-18",
    "event": "KelpDAO hack"
   }
  ],
  "parent": "aave",
  "safety": {
   "flags": [
    {
     "code": "audited",
     "level": "info",
     "message": "Multiple audits listed (1 link)."
    }
   ],
   "score": 100,
   "verdict": "low-risk"
  },
  "source": "DefiLlama",
  "tvlUsd": 18061335722,
  "ageDays": 1641,
  "mcapUsd": null,
  "oracles": [
   "Chainlink"
  ],
  "twitter": "aave",
  "category": "Lending",
  "listedAt": "2022-04-01",
  "checkedAt": "2026-09-28T12:00:00.000Z",
  "mcapToTvl": null,
  "auditLinks": [
   "https://aave.com/security"
  ],
  "forkedFrom": [],
  "suggestions": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aayat-ai-defi-protocol-safety-tvl-lookup-cc713684/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aayatai.com](https://www.zero.xyz/host/aayatai.com/llms.txt)
