{"uid":"cap_pL9IhIhbgbWeXmnNeuQGu","slug":"agentdiet-spa-markdown-reader-e0bc92ed","name":"AgentDiet SPA Markdown Reader","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://mcp-gateway.agentdiet.dev settling in USDC on Base.","url":"https://mcp-gateway.agentdiet.dev/v1/spa-markdown-reader?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"url":{"type":"string"},"mode":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","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":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UtpyKk3kPsZv_ccRO1zhR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a Single Page Application (SPA) URL and returns its rendered content as compressed, clean Markdown via an x402 micropayment gateway.","exampleAgentPrompt":"Can you fetch the content of https://example-spa.com/dashboard and return it as clean markdown so I can read what's on that page?","exampleUseCases":[{"title":"Extract docs from SPA documentation site","prompt":"Go to https://docs.someproject.io/getting-started and pull out the content as markdown — I want to read through the getting started guide without opening a browser."},{"title":"Read dynamic news or blog content","prompt":"Fetch the article at https://medium.com/@author/some-article-slug and convert it to clean markdown so I can summarize it."},{"title":"Scrape SPA product page for agent research","prompt":"Can you read the content of https://app.somestore.com/product/widget-pro and return it as markdown? I want to compare pricing and features with other products."}],"resultDescription":"Returns a JSON object with a 'data' field containing the rendered page content as Markdown, a 'status' field indicating success, and an 'roi_proof' object showing the compression ratio percentage (e.g. 91.4% compression), confirming how much the raw HTML was compressed into clean Markdown.","failureModes":["URL is unreachable or returns a non-200 HTTP status, resulting in an error response","SPA requires authentication or login to render content, returning empty or partial markdown","JavaScript rendering timeout if the SPA takes too long to hydrate","Invalid or malformed URL input causes a 400-level error","Payment failure via x402 protocol blocks the request before execution","Mode parameter not recognized, falling back to default behavior"],"whenToPreferThis":"Choose this endpoint when you need to extract readable content from JavaScript-heavy Single Page Applications (SPAs) that plain HTTP scrapers cannot render, and when you need the output in clean Markdown format suitable for LLM consumption. It is especially useful when HTML compression matters (91%+ compression ratio reported) and when the x402 micropayment model ($0.001 USDC per call) fits your cost profile. Prefer this over general HTML scrapers when the target page requires client-side JS rendering.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:48.752Z","isFirstParty":false,"canonicalSlug":"agentdiet-spa-markdown-reader-e0bc92ed"}