{"uid":"cap_M864qoQTLa9IXRnhFZkan","slug":"shopify-intel-agentdiet-dev-agentdiet-web-url-distiller-5bf1e6b7","name":"AgentDiet Web URL Distiller","description":"Distill a web URL into compact agent-ready tokens (Live x402 v2, IETF MPP & MCP endpoint at https://shopify-intel.agentdiet.dev/api/diet)","url":"https://shopify-intel.agentdiet.dev/api/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"},"query":{"type":"string","description":"BM25 focus query when mode=budget"},"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_YLnX2H_ifpERa7qeARvBk","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"shopify-intel.agentdiet.dev","brandSlug":"shopify-intel-agentdiet-dev-mpp","brandBaseUrl":"https://shopify-intel.agentdiet.dev","brandDocsUrl":null,"whatItDoes":"Fetches a web URL and compresses its content into compact, agent-ready tokens using configurable extraction modes (markdown, structured, skeleton, or budget)","exampleAgentPrompt":"Distill https://stripe.com/docs/payments into compact markdown tokens using structured mode so I can read it without blowing my token budget.","exampleUseCases":[{"title":"Compress docs page for LLM context","prompt":"Fetch https://docs.stripe.com/api and distill it into compact markdown so I can fit the whole thing into my context window without wasting tokens."},{"title":"Budget-extract relevant section of article","prompt":"I only want the pricing-related parts of https://vercel.com/pricing — distill it in budget mode with the query 'serverless function pricing' and keep it under 500 tokens."},{"title":"Skeleton outline of long blog post","prompt":"Give me a skeleton outline of https://martinfowler.com/articles/microservices.html so I can quickly scan the structure without reading the whole thing."}],"resultDescription":"Returns a data object containing the distilled content (markdown text, structured JSON tables/metadata, skeleton outline, or BM25-filtered excerpt depending on mode), plus an roi_proof object showing raw vs. distilled token counts, compression ratio, tokens saved, and estimated LLM cost saved in USD. Also includes optional cache hit/miss status and billing details.","failureModes":["Invalid or unreachable URL returns an error status","URL behind authentication wall cannot be fetched","max_tokens set below 20 is rejected","query parameter ignored if mode is not budget","Payment required (HTTP 402) if x402 credentials not provided","Rate limiting or timeout on slow-loading pages"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to read web content but wants to minimize LLM token consumption. Especially valuable for long documentation pages, news articles, or reference pages where only a fraction of the content is relevant. The budget+query mode is ideal when you have a specific focus question; skeleton mode works well for navigation and structure scanning; structured mode suits pages with tables or metadata. Prefer over raw web fetching whenever token cost or context length is a concern.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:25:58.415Z","isFirstParty":false,"canonicalSlug":"shopify-intel-agentdiet-dev-agentdiet-web-url-distiller-5bf1e6b7"}