{"uid":"cap_wvOzdGO24DQIys8Tdv9kI","slug":"aiworker-data-defi-protocol-snapshot-2555f645","name":"aiworker-data DeFi Protocol Snapshot","description":"Snapshot of one DeFi protocol by DefiLlama slug: TVL by chain, category, 1d/7d change, audits, refreshed every 5 minutes from DefiLlama's protocol summary.","url":"https://aiworker.duckdns.org/v1/defi/protocol/:slug","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"},"pathParams":{"type":"object","required":["slug"],"properties":{"slug":{"type":"string","pattern":"^[a-z0-9-]{1,64}$"}}},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"stale":{"type":"boolean"},"source":{"type":"string"},"protocol":{"type":"object","properties":{"url":{"type":["string","null"]},"name":{"type":"string"},"slug":{"type":"string"},"audits":{"type":["string","null"]},"chains":{"type":"array","items":{"type":"string"}},"tvl_usd":{"type":"number"},"category":{"type":["string","null"]},"change_1d":{"type":["number","null"]},"change_7d":{"type":["number","null"]},"source_url":{"type":"string"},"updated_at":{"type":"string"},"tvl_by_chain":{"type":"object","additionalProperties":{"type":"number"}}}},"cache_hit":{"type":"boolean"},"fetched_at":{"type":"string"},"source_url":{"type":"string"},"attribution":{"type":"string"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VQF1VfSDKf35QXDiUN0El","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a real-time snapshot of a single DeFi protocol by DefiLlama slug, including TVL by chain, category, 1d/7d change, and audit info, refreshed every 5 minutes.","exampleAgentPrompt":"Pull up the current DefiLlama snapshot for Uniswap — I want to see its total TVL, how it's broken down by chain, and whether it's changed much over the past week.","exampleUseCases":[{"title":"Portfolio TVL monitoring for DeFi analyst","prompt":"Check the latest TVL stats for Aave on DefiLlama — give me the total TVL, the 1-day and 7-day changes, and which chains it's deployed on."},{"title":"Audit status check before protocol integration","prompt":"I'm evaluating Compound for a partnership — can you pull its DefiLlama protocol snapshot and tell me if it's been audited and what category it falls under?"},{"title":"Comparing chain distribution for a protocol","prompt":"Get me the TVL-by-chain breakdown for Lido from DefiLlama so I can see how its liquidity is distributed across Ethereum, Polygon, and other networks."}],"resultDescription":"Returns a JSON object with the protocol's name, slug, DefiLlama URL, category, list of chains, total TVL in USD, TVL broken down by chain, 1-day and 7-day percentage changes, audit status, last updated timestamp, and cache/staleness metadata.","failureModes":["Invalid or unknown slug returns an error or empty response","Slug with uppercase letters or special characters rejected by pattern validation","Protocol data may be stale if DefiLlama upstream is delayed beyond 5-minute refresh window","Rate limiting or payment failure (x402) if USDC payment is not attached or insufficient"],"whenToPreferThis":"Use this endpoint when you need fast, structured, per-protocol DeFi data (TVL, chain breakdown, category, audits) sourced from DefiLlama without scraping or parsing HTML. Prefer it over general web scraping when you need machine-readable TVL figures and change metrics for a specific protocol by its canonical DefiLlama slug.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:34:51.606Z","isFirstParty":false}