{"uid":"cap_Aj8Lz03wxevlK7r3I2NAw","slug":"domain-osint-agentdiet-dev-web-url-dom-stripper-token-distiller-a76910be","name":"Web URL DOM Stripper & Token Distiller","description":"Distill a URL or raw HTML payload with BM25 budget control (Live x402 v2, IETF MPP & MCP endpoint at https://domain-osint.agentdiet.dev/v1/dom-stripper)","url":"https://domain-osint.agentdiet.dev/v1/dom-stripper?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","minLength":1,"description":"Target webpage URL to fetch and distill (or builtin://stripe-docs)"},"html":{"type":"string","description":"Optional raw HTML string to distill directly without fetching"},"mode":{"enum":["markdown","structured","skeleton","budget"],"type":"string","default":"markdown","description":"Distillation mode"},"query":{"type":"string","description":"BM25 focus query when mode=budget"},"max_tokens":{"type":"integer","minimum":20,"description":"Strict token budget 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_YI_Ubl9NBfHyrJAgjzmFF","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"domain-osint.agentdiet.dev","brandSlug":"domain-osint-agentdiet-dev-mpp","brandBaseUrl":"https://domain-osint.agentdiet.dev","brandDocsUrl":null,"whatItDoes":"Fetches a webpage (or accepts raw HTML) and distills it into compact, agent-ready tokens using BM25 budget control and multiple extraction modes","exampleAgentPrompt":"Fetch the Stripe pricing page at https://stripe.com/pricing and distill it into compact markdown, keeping it under 500 tokens and focusing on the query 'payment fees'.","exampleUseCases":[{"title":"Documentation page to agent context","prompt":"Pull the content from https://docs.openai.com/api-reference and distill it into structured markdown so I can pass it to my agent without blowing the context window."},{"title":"Focused research snippet from live page","prompt":"Fetch https://en.wikipedia.org/wiki/Bitcoin and extract only the sections most relevant to 'mining rewards halving' in budget mode, capped at 300 tokens."},{"title":"Skeleton outline of a landing page","prompt":"Give me a skeleton outline of https://linear.app — just the headings and navigation structure, nothing else."}],"resultDescription":"Returns a data object containing the distilled content (Markdown text, structured JSON, skeleton outline, or BM25-focused excerpt depending on mode), along with ROI proof metrics (raw token count, distilled token count, tokens saved, compression ratio, estimated LLM cost saved), optional cache hit/miss status, and billing details.","failureModes":["URL is unreachable or returns a non-200 status — distillation fails with an error status","Raw HTML input is malformed or empty — may produce empty or low-quality output","max_tokens set too low (below 20) — request rejected with validation error","BM25 query provided without mode=budget — query parameter ignored silently","Payment not included or insufficient — HTTP 402 response blocking the call","Target URL requires JavaScript rendering — static fetch may miss dynamic content"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to read a webpage but must stay within a strict token budget, reduce LLM inference costs, or convert messy HTML into clean structured content. It is especially valuable when processing documentation pages, landing pages, or research articles where only the essential textual content is needed. Prefer it over generic web scrapers when you need built-in token compression metrics and BM25-driven relevance filtering.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:24:29.822Z","isFirstParty":false,"canonicalSlug":"domain-osint-agentdiet-dev-web-url-dom-stripper-token-distiller-a76910be"}