{"uid":"cap_O-10bJxH0sq8oyJd5BzjA","slug":"defi-yield-agentdiet-dev-agentdiet-rag-diet-web-distiller-3f597d81","name":"AgentDiet RAG-Diet Web Distiller","description":"Distill a web URL into compact agent-ready tokens (Live x402 v2, IETF MPP & MCP endpoint at https://defi-yield.agentdiet.dev/v1/rag-diet)","url":"https://defi-yield.agentdiet.dev/v1/rag-diet?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","minLength":1,"description":"Target webpage URL to distill (or builtin://stripe-docs)"},"mode":{"enum":["markdown","structured","skeleton","budget"],"type":"string","default":"markdown","description":"Extraction mode: markdown, structured, skeleton, or budget"},"limit":{"type":"integer","default":20,"maximum":100,"minimum":1,"description":"Maximum number of items to return per page (1-100)"},"query":{"type":"string","description":"BM25 focus query when mode=budget"},"cursor":{"type":"string","description":"Opaque pagination cursor for fetching the next page"},"max_tokens":{"type":"integer","minimum":20,"description":"Strict token ceiling when mode=budget"}}},"responseSchema":{"type":"object","required":["status","roi_proof","data"],"properties":{"data":{"type":"object","description":"Distilled Markdown, structured JSON tables/metadata, skeleton outline, or BM25 budget excerpt."},"cache":{"type":"object","properties":{"status":{"enum":["HIT","MISS"],"type":"string"},"cache_key":{"type":"string"},"latency_ms":{"type":"number"}}},"status":{"type":"string","description":"Execution status ('ok')"},"billing":{"type":"object","properties":{"agent_id":{"type":"string"},"payment_method":{"type":"string"},"fee_charged_usd":{"type":"number"}}},"roi_proof":{"type":"object","properties":{"raw_tokens":{"type":"integer"},"tokens_saved":{"type":"integer"},"roi_multiplier":{"type":"number"},"distilled_tokens":{"type":"integer"},"llm_cost_saved_usd":{"type":"number"},"compression_ratio_pct":{"type":"number"}}}}},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0.001","displayCostAsset":"USD","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":"mpp","network":"tempo","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eusX9myOc5l9lOuPOux5j","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"defi-yield.agentdiet.dev","brandSlug":"defi-yield-agentdiet-dev-mpp","brandBaseUrl":"https://defi-yield.agentdiet.dev","brandDocsUrl":null,"whatItDoes":"Fetches a web URL and compresses it into compact, agent-ready tokens using multiple extraction modes (markdown, structured, skeleton, or BM25 budget)","exampleAgentPrompt":"Distill https://stripe.com/docs/payments into compact markdown, using budget mode with a max of 500 tokens and a focus query on 'payment intents', so I can feed it to my agent without blowing my token budget.","exampleUseCases":[{"title":"Token-efficient doc ingestion for RAG","prompt":"Distill https://docs.openai.com/api-reference into structured mode so I can feed it into my RAG pipeline without burning thousands of tokens — give me up to 50 items."},{"title":"Skeleton outline of a competitor landing page","prompt":"Give me a skeleton outline of https://anthropic.com so I can quickly see the page structure and key headings without reading the full content."},{"title":"BM25-focused excerpt for a specific research question","prompt":"Fetch https://arxiv.org/abs/2305.10601 in budget mode with a focus query on 'chain-of-thought prompting' and keep it under 300 tokens so I only get the most relevant passages."}],"resultDescription":"Returns a distilled payload under `data` containing either markdown text, structured JSON tables/metadata, a skeleton outline, or a BM25-scored budget excerpt of the target URL. Also includes `roi_proof` with raw token count, distilled token count, tokens saved, compression ratio percentage, LLM cost saved in USD, and ROI multiplier. Optional `cache` object indicates HIT/MISS and latency. `billing` object confirms agent ID and fee charged ($0.001 USD).","failureModes":["Invalid or unreachable URL returns an error status","URL behind authentication/paywalls cannot be fetched","max_tokens below minimum (20) causes validation error","cursor pagination mismatch returns empty or incorrect page","BM25 query with mode other than budget is ignored silently","Rate limiting or payment failure (x402) blocks the request"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to ingest web content but must stay within a token budget — especially in RAG pipelines, agentic workflows, or multi-step reasoning tasks where raw HTML or full-page markdown would be prohibitively expensive. It is particularly well-suited when you need structured tables, skeleton outlines, or BM25-focused excerpts rather than a full page dump. Prefer it over generic web scrapers when token efficiency and LLM cost reduction are explicit goals, or when you need built-in pagination and ROI metrics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T00:36:14.014Z","isFirstParty":false,"canonicalSlug":"defi-yield-agentdiet-dev-agentdiet-rag-diet-web-distiller-3f597d81"}