{
  "x402Version": 2,
  "id": 10980,
  "slug": "10980",
  "resource": "https://agentbit.app/v1/defi/protocol",
  "description": "DeFi protocol fundamentals in one call: current TVL, 1-day and 7-day change, category, chains and website for any protocol — search by name, or screen the whole universe by category and chain ranked by TVL. Open DefiLlama data, refreshed server-side every 15 minutes.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x4395C7e383b7e05665aad7f36ed77c01923Dd965",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "description": "Protocol due diligence for agents interacting with DeFi. Look up any protocol by name or slug fragment ('aave', 'uniswap', 'morpho') and get the fundamentals that size counterparty risk: current TVL in USD, 1-day and 7-day TVL change (a sudden drain is the loudest on-chain alarm), category (Lending, DEX, Bridge...), the chains it is deployed on and its website. Or screen: filter the whole tracked universe by category and/or chain, ranked by TVL — 'top lending protocols on Base' is one call. Protocols under $10k TVL are excluded to keep answers meaningful. Data is DefiLlama's open protocols API, cached server-side and refreshed every 15 minutes. Pairs with defi-yields (which pool) and token-risk (is the protocol's token safe).",
        "errors": [
          {
            "code": "PAYMENT_REQUIRED",
            "description": "Missing or invalid payment — retry with a valid PAYMENT-SIGNATURE header",
            "retryable": true,
            "status": 402
          },
          {
            "code": "VALIDATION_ERROR",
            "description": "Request body does not match the input schema",
            "retryable": false,
            "status": 422
          },
          {
            "code": "RATE_LIMITED",
            "description": "Too many requests from this client",
            "retryable": true,
            "status": 429
          },
          {
            "code": "UPSTREAM_TIMEOUT",
            "description": "Upstream data source unavailable — safe to retry",
            "retryable": true,
            "status": 502
          }
        ],
        "input": {
          "body": {
            "category": "lending",
            "chain": "base",
            "limit": 5
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "networks": [
          "eip155:8453"
        ],
        "output": {
          "example": {
            "protocols": [
              {
                "category": "Lending",
                "chains": [
                  "Ethereum",
                  "Base",
                  "Arbitrum"
                ],
                "change_1d_percent": -0.42,
                "change_7d_percent": 2.13,
                "name": "AAVE V3",
                "slug": "aave-v3",
                "tvl_usd": 21500000000,
                "url": "https://aave.com"
              }
            ],
            "result_count": 1,
            "universe_size": 3900
          },
          "type": "json"
        },
        "pricing": {
          "amount": 0.002,
          "currency": "USDC",
          "firstCallFree": true,
          "model": "per-call",
          "quoteHint": "Send your wallet address in an X-BUYER-WALLET header on the unpaid request to receive your personalized (volume-discounted) quote.",
          "volumeDiscounts": [
            {
              "minCalls30d": 100,
              "percent": 10
            },
            {
              "minCalls30d": 1000,
              "percent": 20
            }
          ]
        },
        "reliability": {
          "measuredAt": "2026-09-06T14:47:23+00:00",
          "p50LatencyMs": 196,
          "p95LatencyMs": 196,
          "sampleSize": 1,
          "successRatePercent": 100,
          "windowDays": 30
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "description": {
            "type": "string"
          },
          "errors": {
            "items": {
              "properties": {
                "code": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                },
                "status": {
                  "type": "integer"
                }
              },
              "required": [
                "status",
                "code"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "description": "Protocol TVL & Fundamentals input. DeFi protocol fundamentals in one call: current TVL, 1-day and 7-day change, category, chains and website for any protocol — search by name, or screen the whole universe by category and chain ranked by TVL. Open DefiLlama data, refreshed server-side every 15 minutes.",
                "properties": {
                  "category": {
                    "description": "Filter by category, e.g. lending, dexes, bridge",
                    "type": "string"
                  },
                  "chain": {
                    "description": "Filter to protocols deployed on this chain, e.g. base",
                    "type": "string"
                  },
                  "limit": {
                    "description": "Max results (1-50, default 10)",
                    "type": "integer"
                  },
                  "protocol": {
                    "description": "Protocol name or slug fragment, e.g. aave",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "queryParams": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "networks": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          },
          "pricing": {
            "properties": {
              "amount": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "currency": {
                "type": "string"
              },
              "firstCallFree": {
                "type": "boolean"
              },
              "maxAmount": {
                "type": "number"
              },
              "model": {
                "type": "string"
              },
              "quoteHint": {
                "type": "string"
              },
              "volumeDiscounts": {
                "items": {
                  "properties": {
                    "minCalls30d": {
                      "type": "integer"
                    },
                    "percent": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "minCalls30d",
                    "percent"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "type": "object"
          },
          "reliability": {
            "properties": {
              "measuredAt": {
                "type": "string"
              },
              "p50LatencyMs": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "p95LatencyMs": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "sampleSize": {
                "type": "integer"
              },
              "successRatePercent": {
                "type": "number"
              },
              "windowDays": {
                "type": "integer"
              }
            },
            "required": [
              "successRatePercent",
              "sampleSize",
              "windowDays"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "agentbit.app",
  "lastUpdated": "2026-09-06T14:47:23.559Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-06T14:47:23.302Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agentbit.app",
    "manifest_name": "agentbit.app",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}