Catalog/defi-top-protocols

DeFi

Top protocols ranked by TVL API

Protocols ranked by TVL, optionally filtered by category and/or chain, with 1d/7d change and market cap. Sourced from DefiLlama /protocols. Answers 'top lending protocols by TVL','which protocols are biggest on Base'.

Price$0.01per request
MethodPOST
Route/v1/defi/top-protocols
StatusLive
MIME typeapplication/json
Rate limit60/minute
Cache3600s public
defiprotocolstvlrankingleaderboardcategorydefillamachain
API URLhttps://x402.hexl.dev/v1/defi/top-protocols
Integration docs
Example request
{
  "category": "Lending",
  "limit": 2
}
Example response
{
  "count": 564,
  "filters": {
    "category": "Lending",
    "chain": null
  },
  "protocols": [
    {
      "name": "Aave V3",
      "category": "Lending",
      "tvlUsd": 12291375412,
      "change1dPct": -2.7,
      "change7dPct": 1.2,
      "mcapUsd": null,
      "chains": [
        "Ethereum",
        "Base"
      ]
    }
  ]
}
Input schema
{
  "type": "object",
  "properties": {
    "category": {
      "type": "string",
      "examples": [
        "Lending",
        "Dexes",
        "Liquid Staking"
      ]
    },
    "chain": {
      "type": "string",
      "examples": [
        "Ethereum",
        "Base",
        "Arbitrum"
      ]
    },
    "limit": {
      "type": "number",
      "minimum": 1,
      "maximum": 100,
      "default": 20
    }
  }
}
Output schema
{
  "type": "object",
  "required": [
    "count",
    "protocols"
  ],
  "properties": {
    "count": {
      "type": "number"
    },
    "filters": {
      "type": "object",
      "additionalProperties": true
    },
    "protocols": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    }
  }
}