{"uid":"cap_m1zW3hHstuEsJ0GG8n6wq","slug":"agentdiet-dev-agentdiet-web-url-distiller-92130b22","name":"AgentDiet Web URL Distiller","description":"Distill a web URL into compact agent-ready tokens (Live x402 v2, IETF MPP & MCP endpoint at https://agentdiet.dev/)","url":"https://agentdiet.dev/?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.001000","displayCostAsset":"USD","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.001000/call","primary":{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.001000","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.001000","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pEZg1w2y131exHiGcWffW","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.001000","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":"agentdiet.dev","brandSlug":"agentdiet-dev-mpp","brandBaseUrl":"https://agentdiet.dev","brandDocsUrl":null,"whatItDoes":"Fetches a web URL and compresses its content into compact, agent-ready tokens using markdown, structured, skeleton, or BM25 budget extraction modes","exampleAgentPrompt":"Distill https://stripe.com/docs/payments/accept-a-payment into compact markdown and tell me how many tokens you saved compared to the raw page.","exampleUseCases":[{"title":"Token-budget research on a news article","prompt":"Fetch https://www.reuters.com/technology/artificial-intelligence/openai-latest-news and distill it in budget mode with a max of 500 tokens, focusing the BM25 query on 'OpenAI funding'."},{"title":"Structured table extraction from a pricing page","prompt":"Distill https://aws.amazon.com/ec2/pricing/on-demand/ in structured mode so I can see the pricing tables as clean JSON without all the surrounding page clutter."},{"title":"Skeleton outline of a long documentation page","prompt":"Give me a skeleton outline of https://docs.python.org/3/library/asyncio.html — just the headings and structure, nothing else, so I can decide which section to read in full."}],"resultDescription":"Returns a 'data' object containing the distilled content in the requested format (markdown text, structured JSON tables/metadata, skeleton heading outline, or BM25-focused budget excerpt), along with an roi_proof object showing raw_tokens, distilled_tokens, tokens_saved, compression_ratio_pct, roi_multiplier, and llm_cost_saved_usd. Also includes optional cache status (HIT/MISS) and billing details.","failureModes":["Invalid or unreachable URL returns an error status","Paywalled or bot-blocked pages may return empty or partial content","max_tokens below 20 is rejected with a validation error","mode=budget without a query may return less focused results","Cursor expiry or invalid cursor string causes pagination failure","Rate limiting or payment failure returns HTTP 402"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to read a web page but must minimize token consumption — particularly for long documentation pages, news articles, or structured data pages. It is distinctly better than raw HTML fetch when token budget is a constraint, when you need BM25-focused excerpts rather than full text, or when you want structured JSON tables extracted from HTML. Prefer over generic scrapers when ROI proof (compression ratio, cost savings) is useful for billing or reporting.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-28T00:44:56.337Z","isFirstParty":false,"canonicalSlug":"agentdiet-dev-agentdiet-web-url-distiller-47b37abc"}