{"uid":"cap_i2Eq2rIowlasYM_w3btyo","slug":"defillama-tvl-oracle-cdb2b193","name":"DefiLlama TVL Oracle","description":"Current total value locked (TVL, USD) of one DeFi protocol from DefiLlama, by protocol slug (e.g. aave, uniswap-v3). Returns the single current TVL number only; chain breakdown and history are not included.","url":"https://api.chainmarket-api.workers.dev/api/crypto/defillama-tvl-oracle?utm_source=zero.xyz","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","required":["protocol"],"properties":{"protocol":{"type":"string","description":"DefiLlama protocol slug, lowercase letters, digits and dashes"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"source":"https://api.llama.fi/tvl/aave","tvlUsd":17983507210.47533,"protocol":"aave","checkedAt":"2026-10-23T09:35:53.785Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fnxvbraYDQkXFd_kYtCo2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches the current total value locked (TVL) in USD for a specified DeFi protocol via DefiLlama","exampleAgentPrompt":"What is the current total value locked for Aave? Look it up via the DefiLlama TVL oracle using the protocol slug 'aave'.","exampleUseCases":[{"title":"Monitor Aave TVL in real time","prompt":"What is the current TVL for Aave right now? I want the latest total value locked in USD from DefiLlama."},{"title":"Compare TVL across top DeFi protocols","prompt":"Can you pull the current TVL for Uniswap from DefiLlama so I can compare it against Curve and Lido?"},{"title":"Alert on protocol TVL for risk dashboard","prompt":"Check the DefiLlama TVL for MakerDAO and tell me the current USD amount locked — I'm building a risk dashboard and need fresh data."}],"resultDescription":"Returns a JSON object containing the protocol slug, TVL in USD as a floating-point number, the DefiLlama source URL, and the timestamp when the data was checked (e.g. {protocol: 'aave', tvlUsd: 17983507210.47, source: 'https://api.llama.fi/tvl/aave', checkedAt: '2026-10-23T09:35:53.785Z'}).","failureModes":["Invalid or unknown protocol slug returns an error or empty result","Protocol slug must be lowercase with dashes — incorrect casing or spaces may cause lookup failure","DefiLlama API upstream unavailability may cause request to fail","Misspelled protocol slugs (e.g. 'uni-swap' instead of 'uniswap') will not match"],"whenToPreferThis":"Choose this endpoint when you need current TVL data for a specific DeFi protocol without signing up for an API key. It is ideal for AI agents that need pay-per-call on-chain finance data with no authentication overhead. Prefer it over scraping DefiLlama directly or using a full DeFi data subscription when you only need TVL for one protocol at a time.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T12:35:40.838Z","isFirstParty":false,"canonicalSlug":"defillama-tvl-oracle-cdb2b193"}