{"uid":"cap_bA6gpwsl1JJejAGOn-RZp","slug":"x-data-gateway-defillama-tvl-lookup-aac81196","name":"X Data Gateway — DefiLlama TVL Lookup","description":"Current TVL for a protocol slug from DefiLlama free API. e.g. GET /v1/defi/tvl?slug=aave","url":"https://x-data-gateway.annushka1190.workers.dev/v1/defi/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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["slug"],"properties":{"slug":{"type":"string","description":"DefiLlama slug e.g. aave, uniswap"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3hOh9B9TL4HCvwIn8-_kA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches Total Value Locked (TVL) data for a DeFi protocol by its DefiLlama slug via the X Data Gateway.","exampleAgentPrompt":"What's the current total value locked for Aave? Look it up using the slug 'aave' from DefiLlama.","exampleUseCases":[{"title":"DeFi protocol TVL health check","prompt":"Can you pull the current TVL for Uniswap from DefiLlama using slug 'uniswap'? I want to see how much value is locked in the protocol right now."},{"title":"Comparing DeFi protocol size","prompt":"I'm researching DeFi lending protocols — can you get the DefiLlama TVL for 'aave' so I can compare it against other lending platforms?"},{"title":"Monitoring DeFi ecosystem changes","prompt":"Fetch the latest TVL data for Curve Finance using the DefiLlama slug 'curve' so I can track whether liquidity is growing or shrinking."}],"resultDescription":"Returns a JSON object containing TVL data for the specified DeFi protocol as sourced from DefiLlama, including aggregate and possibly chain-specific TVL figures.","failureModes":["Invalid or unknown slug returns empty or error response","DefiLlama upstream unavailability causes failed fetch","Missing required 'slug' query parameter causes validation error","Rate limiting or payment failure (x402) blocks the request"],"whenToPreferThis":"Choose this endpoint when you need real-time TVL data for a specific DeFi protocol by its DefiLlama slug, especially within an agent workflow that also uses X/Twitter data or Base chain intel from the same gateway. Ideal for pay-per-call usage without managing API keys, using USDC micropayments via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:44:04.228Z","isFirstParty":false}