{"uid":"cap_2e2vIqryvlMQ6G8UZWBez","slug":"serp-extract-agentdiet-dev-agentdiet-rag-diet-web-url-distiller-abf9cc71","name":"AgentDiet RAG-Diet Web URL Distiller","description":"Distill a web URL into compact agent-ready tokens (Live x402 v2, IETF MPP & MCP endpoint at https://serp-extract.agentdiet.dev/v1/rag-diet)","url":"https://serp-extract.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_vmQr9Ll3XUhKzcHoP5IQc","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"serp-extract.agentdiet.dev","brandSlug":"serp-extract-agentdiet-dev-mpp","brandBaseUrl":"https://serp-extract.agentdiet.dev","brandDocsUrl":null,"whatItDoes":"Fetches a webpage URL and distills it into compact, token-efficient agent-ready content (markdown, structured JSON, skeleton outline, or BM25-focused budget excerpt)","exampleAgentPrompt":"Pull the Stripe pricing page at https://stripe.com/pricing and distill it into compact markdown, keeping it under 500 tokens so I can drop it straight into my context window.","exampleUseCases":[{"title":"Documentation grounding for agent context","prompt":"Fetch https://docs.openai.com/api-reference/chat and distill it into structured mode so my agent can reference the Chat API schema without blowing my token budget."},{"title":"Competitive research with token budget","prompt":"Grab https://www.anthropic.com/pricing and distill it in budget mode with my focus query set to 'enterprise pricing tiers', capping the output at 300 tokens."},{"title":"Webpage outline for quick navigation","prompt":"Distill https://en.wikipedia.org/wiki/Transformer_(machine_learning_model) into skeleton mode so I can see the outline of the article and decide which sections to read in full."}],"resultDescription":"Returns a JSON object with a 'data' field containing the distilled page content in the requested format (markdown text, structured JSON tables/metadata, skeleton outline, or BM25-focused excerpt), along with 'roi_proof' metrics showing raw vs distilled token counts, compression ratio percentage, tokens saved, estimated LLM cost saved in USD, and ROI multiplier. Also includes cache hit/miss status with latency, billing details, and overall execution status.","failureModes":["Invalid or unreachable URL returns an error status","URL behind a paywall or bot protection may return empty or partial content","max_tokens too low to represent meaningful content","Invalid mode enum value returns a validation error","Pagination cursor mismatch or expiry causes cursor errors","Network timeouts for slow or large pages"],"whenToPreferThis":"Choose this endpoint when you need to fetch and compress a specific webpage into token-efficient content for LLM context windows or RAG pipelines, especially when you want multiple output format options (markdown, structured, skeleton, budget) and built-in ROI/compression metrics. Prefer it over raw web scrapers when token budget management and compression ratio reporting matter. The budget+query mode is ideal when you only need BM25-relevant excerpts from a page. Use over general search endpoints when you already know the target URL and want clean, distilled content rather than search results.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T06:30:35.451Z","isFirstParty":false,"canonicalSlug":"serp-extract-agentdiet-dev-agentdiet-rag-diet-web-url-distiller-abf9cc71"}