{"uid":"cap_lO40V261xrcIzMG6Cx7A0","slug":"gateway-d402-xyz-web-page-to-markdown-converter-d402-gateway-259854aa","name":"Web Page to Markdown Converter (d402 Gateway)","description":"Paid d402 capability alias for web.page_to_markdown@1. The gateway handles worker discovery, validation, settlement, receipts, and evidence.","url":"https://gateway.d402.xyz/v1/web/page-to-markdown?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"Public http(s) URL to fetch and convert to markdown."},"sync":{"type":"boolean","description":"Optional d402 sync flag. Defaults to gateway policy."},"timeoutMs":{"type":"number","maximum":45000,"minimum":1,"description":"Optional per-request timeout, capped by gateway policy."}},"additionalProperties":false},"responseSchema":{"type":"object","required":["taskId","status"],"properties":{"error":{"type":["string","null"]},"links":{"type":"object","properties":{"task":{"type":"string"},"result":{"type":"string"},"receipt":{"type":"string"}}},"result":{"type":"object","required":["markdown","contentHash"],"properties":{"url":{"type":"string"},"site":{"type":"string"},"image":{"type":"string"},"title":{"type":"string"},"author":{"type":"string"},"domain":{"type":"string"},"favicon":{"type":"string"},"language":{"type":"string"},"markdown":{"type":"string"},"metaTags":{"type":"array"},"published":{"type":"string"},"wordCount":{"type":"number"},"contentHash":{"type":"string"},"contentHtml":{"type":"string"},"description":{"type":"string"},"serviceName":{"type":"string"},"snapshotCid":{"type":"string"},"qualityFlags":{"type":"array"},"serviceBuild":{"type":"string"},"blockedReason":{"type":"string"},"extractorType":{"type":"string"},"schemaOrgData":{"type":"array"},"workerRuntime":{"type":"string"},"serviceVersion":{"type":"string"},"converterVersion":{"type":"string"},"extractionEngine":{"type":"string"},"snapshotterVersion":{"type":"string"}}},"status":{"enum":["accepted","rejected","running","error"],"type":"string"},"taskId":{"type":"string"},"settlement":{"type":["object","null"],"additionalProperties":true},"x402Settlement":{"type":["object","null"],"additionalProperties":true},"validationReceipt":{"type":["object","null"],"additionalProperties":true}}},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":1,"rating":{"score":"1.00","successRate":"1.00","reviews":1,"stars":"5.0","state":"rated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Nup7yj_aSBK3ZjZFeCX5O","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null},{"uid":"pm_HWtUcTfBpJz0JzDNfYEkp","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":"gateway.d402.xyz","brandSlug":"gateway-d402-xyz-x402","brandBaseUrl":"https://gateway.d402.xyz","brandDocsUrl":null,"whatItDoes":"Fetches a public web page URL and converts its content to clean markdown, returning metadata such as title, author, word count, and content hash via the d402 paid gateway.","exampleAgentPrompt":"Can you fetch the page at https://en.wikipedia.org/wiki/Markdown and convert it to markdown so I can read the clean text content?","exampleUseCases":[{"title":"Archive blog posts as readable markdown","prompt":"I need to save this blog post as clean markdown for our internal wiki. Can you grab the content from https://example.com/article-2024 and convert it so I can paste it easily?"},{"title":"Extract content from competitor websites","prompt":"Pull the main text content from https://competitor-site.com/pricing and give me it in markdown format so I can compare our offering against theirs."},{"title":"Convert documentation pages to portable format","prompt":"Can you fetch https://docs.framework.io/guide/getting-started and turn it into markdown? I want to bundle it with our local project files for offline reference."}],"resultDescription":"Returns a taskId and status, plus a result object containing the full markdown body, content hash, page title, author, domain, language, word count, published date, favicon URL, meta tags, schema.org data, and optional snapshot CID. Also includes settlement and validation receipt objects from the d402 payment gateway.","failureModes":["URL is not a valid public http/https URI — returns validation error","Page is blocked or inaccessible — blockedReason field populated in result","Timeout exceeded (max 45000ms) — returns error status","Non-public or login-gated page — workers cannot access content, error or empty markdown returned","Gateway payment/settlement failure — task rejected with error status","Transient worker error — status set to error with error field populated"],"whenToPreferThis":"Use this endpoint when you need to convert an arbitrary public web page (not necessarily an article) to markdown with rich metadata including content hash and schema.org data. It is broader than the article-specific extractor and is ideal for any public URL. Prefer over raw HTML fetching when clean, agent-readable markdown output is needed, and when payment via d402/x402 is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":12,"lastUsedAt":"2026-05-20T00:04:22.364Z","lastSuccessfullyRanAt":"2026-05-20T00:04:22.364Z","lastHealthCheckAt":"2026-10-12T22:28:00.175Z","isFirstParty":false,"canonicalSlug":"gateway-d402-xyz-web-page-to-markdown-converter-d402-gateway-259854aa"}