{"uid":"cap_WPxuqp9b9NvVH6OZm_PX6","slug":"apitoll-defi-tvl-lookup-0e1eb69e","name":"ApiToll DeFi TVL Lookup","description":"DeFi Total Value Locked (TVL) by blockchain or by protocol. Default returns the top chains ranked by TVL in USD; pass ?chain=Ethereum for one chain, or ?protocol=aave-v3 for a protocol's current TVL, 24h and 7d change, category, market cap, and the chains it spans. Track capital flows across DeFi. Sourced from DefiLlama.","url":"https://crypto.apitoll.cloud/v1/crypto/tvl","method":"GET","headers":{},"bodySchema":{"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","properties":{"chain":{"type":"string","description":"One chain by name (exact, case-insensitive). Omit for the top-chains ranking."},"limit":{"type":"integer","maximum":100,"minimum":1,"description":"Top-N chains in the default ranking (1–100, default 20)."},"protocol":{"type":"string","description":"A protocol by DefiLlama slug (aave-v3, lido, uniswap-v3). Takes precedence over chain. For a parent slug like \"uniswap\" use the /v1/crypto/protocol route."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"mode":{"type":"string"},"chain":{"type":"object","properties":{"name":{"type":"string"},"tvlUsd":{"type":"number"},"chainId":{"type":"number"},"tokenSymbol":{"type":"string"}}},"source":{"type":"object","properties":{"name":{"type":"string"}}}}}}}}},"responseSchema":{"type":"json","example":{"mode":"chain","chain":{"name":"Ethereum","tvlUsd":38600000000,"chainId":1,"tokenSymbol":"ETH"},"source":{"name":"DefiLlama"}}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"chain":"ethereum","limit":20}}},"response":{"mode":"chain","chain":{"name":"Ethereum","tvlUsd":39480729064,"chainId":1,"tokenSymbol":"ETH"},"source":{"url":"https://defillama.com/chains","name":"DefiLlama"}}},"exampleRequest":{"chain":"ethereum","limit":20},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ne5wTzpHC9GW1Bd3kidoI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns real-time Total Value Locked (TVL) data for a specific blockchain chain or DeFi protocol, sourced from DefiLlama, paid per call via x402.","exampleAgentPrompt":"What's the current total value locked on Ethereum — pull the DefiLlama TVL data for that chain right now?","exampleUseCases":null,"resultDescription":"A JSON object containing the mode ('chain' or 'protocol'), the chain details (name, TVL in USD, chain ID, token symbol), and the data source (DefiLlama). For protocol queries, returns protocol-level TVL. For chain ranking queries, returns top-N chains ordered by TVL.","failureModes":["Unknown or misspelled chain name returns no result or error","Invalid protocol slug (not a valid DefiLlama slug) returns empty or error response","Limit parameter outside 1–100 range rejected with validation error","Payment failure via x402 results in 402 response with no data","Chain and protocol both specified — protocol takes precedence, chain param is ignored","DefiLlama upstream outage may cause stale or unavailable data"],"whenToPreferThis":"Use this endpoint when you need real-time TVL data for a specific blockchain chain or DeFi protocol without a subscription or API key, and you want to pay only per call via USDC on Base or Solana. Prefer this over direct DefiLlama API when you need micropayment-gated, agent-native access. Ideal for agents that need on-demand TVL snapshots rather than continuous streaming.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:54:01.312Z","isFirstParty":false}