{"uid":"cap_T7as8AIi5oL6eSz-oPSYA","slug":"scrapling-x402-defi-protocol-lookup-9056b6b5","name":"Scrapling x402 DeFi Protocol Lookup","description":"DeFi protocol TVL and trend: total value locked in USD, 1d/7d TVL % change, category, chains and token market cap (DefiLlama data). Example: q=aave, q=uniswap, q=lido. Refreshed about every 30 min","url":"https://scraplingdata.xyz/v1/lookup/protocol?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","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["q"],"properties":{"q":{"type":"string","description":"DefiLlama slug or protocol name"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"name":"Aave","slug":"aave","tvl_usd":25000000000,"change_7d_pct":3.1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.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_vHzAeLeyR0cvC6EEiwEnX","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":"Looks up a DeFi protocol by DefiLlama slug or name and returns its TVL, name, and recent performance metrics.","exampleAgentPrompt":"What is the current TVL and 7-day change for Aave? Look it up by its DefiLlama slug.","exampleUseCases":[{"title":"DeFi portfolio TVL monitoring","prompt":"Can you pull the current TVL and 7-day percent change for Uniswap using its DefiLlama slug 'uniswap'?"},{"title":"DeFi research comparison","prompt":"I'm researching lending protocols — what is Compound's current total value locked and how has it changed over the past week?"},{"title":"Market health check","prompt":"Quick check — what's the TVL for Lido right now and is it trending up or down over the last 7 days?"}],"resultDescription":"Returns a JSON object with the protocol's canonical name, its DefiLlama slug, current TVL in USD, and the 7-day percentage change in TVL. Example: {name: 'Aave', slug: 'aave', tvl_usd: 25000000000, change_7d_pct: 3.1}.","failureModes":["Unknown or misspelled protocol slug returns empty or error response","Protocol not indexed by DefiLlama returns no results","Missing required 'q' query parameter returns a validation error","Payment not settled correctly via x402 returns HTTP 402 without data","Rate limiting or upstream DefiLlama outage causes failure"],"whenToPreferThis":"Choose this endpoint when you need quick, structured TVL and performance data for a specific DeFi protocol by name or DefiLlama slug, especially in agent workflows that pay per call via x402 micropayments. Prefer over scraping DefiLlama directly when you need a pay-as-you-go, agent-friendly API with structured JSON output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:40:37.911Z","isFirstParty":false,"canonicalSlug":"scrapling-x402-defi-protocol-lookup-9056b6b5"}