# DeFi Protocol Comparator via DefiLlama

> DeFi Protocol Comparator via DefiLlama is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.006/call, status unknown (last checked 2026-10-01).

Compares two DeFi protocols side by side, returning TVL, category, chain count, 7-day TVL change, native token, and audit count for each, plus which protocol has higher TVL — all sourced live from DefiLlama.

## Facts

- Endpoint: POST https://api.vextorium.com/protocolo-comparar-pago?utm_source=zero.xyz
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-protocol-comparator-via-defillama-3b4d2293
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mF36lw_4-QuArFTep0f-R

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 defi-protocol-comparator-via-defillama-3b4d2293 -d '<json body>'
```

Example prompt: Can you compare Aave and Compound side by side — I want to see their TVL, how many chains they're on, their 7-day TVL change, native token, number of audits, and which one has more TVL overall?

## When to prefer this

Use this endpoint when you need a structured, side-by-side DeFi protocol comparison with live DefiLlama data. Ideal when the user wants to evaluate two specific protocols across multiple dimensions (TVL, chains, token, audits, trend) simultaneously rather than fetching each protocol's data separately. Best for research, investment due diligence, or automated reporting workflows.

## Known failure modes

- Protocol name not found on DefiLlama — returns null fields for that protocol
- Misspelled or unofficial protocol name — returns empty or partial data
- DefiLlama upstream unavailable — request may fail or return stale data
- Both protocols return null — likely both names are unrecognized

## How this service works

Compare two DeFi protocols side by side: TVL, category, number of chains, 7d change, native token and audits, plus which one has more TVL. Live from DefiLlama.

## Output

Returns a structured JSON object with two sub-objects (a and b), each containing: protocol name, TVL in USD, DeFi category, number of chains, 7-day TVL change percentage, native token ticker, and audit count. Also includes a 'mayor_tvl' field naming the protocol with higher TVL and an optional explanatory note.

## 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": [
      "nombre_a",
      "nombre_b"
     ],
     "properties": {
      "nombre_a": {
       "type": "string",
       "description": "First protocol, e.g. aave"
      },
      "nombre_b": {
       "type": "string",
       "description": "Second protocol, e.g. compound"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": [
      "object",
      "null"
     ],
     "properties": {
      "a": {
       "type": [
        "object",
        "null"
       ],
       "properties": {
        "token": {
         "type": [
          "string",
          "null"
         ]
        },
        "cadenas": {
         "type": [
          "number",
          "null"
         ]
        },
        "tvl_usd": {
         "type": [
          "number",
          "null"
         ]
        },
        "categoria": {
         "type": [
          "string",
          "null"
         ]
        },
        "protocolo": {
         "type": [
          "string",
          "null"
         ]
        },
        "auditorias": {
         "type": [
          "number",
          "null"
         ]
        },
        "cambio_7d_pct": {
         "type": [
          "number",
          "null"
         ]
        }
       }
      },
      "b": {
       "type": [
        "object",
        "null"
       ],
       "properties": {
        "token": {
         "type": [
          "string",
          "null"
         ]
        },
        "cadenas": {
         "type": [
          "number",
          "null"
         ]
        },
        "tvl_usd": {
         "type": [
          "number",
          "null"
         ]
        },
        "categoria": {
         "type": [
          "string",
          "null"
         ]
        },
        "protocolo": {
         "type": [
          "string",
          "null"
       
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-protocol-comparator-via-defillama-3b4d2293/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
