{"uid":"cap_SNI6FR4M6eu-ksfYj6uVR","slug":"x402-web-extract-fetch-web-page-to-markdown-9e89a743","name":"x402-web-extract /fetch — Web Page to Markdown","description":"Fetch any public URL and return a clean, readable markdown or JSON extract for AI agents. Pass the target as ?url=<encoded>. Ideal when you need to read webpages, docs, or articles without a browser. Blocks script/style tags, normalizes links and images, strips HTML.","url":"https://x402-web-extract.senpi-agent.workers.dev/fetch?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"],"type":"string"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"The URL to fetch (http/https). Returned as clean markdown."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"url":"https://example.com/article","status":200,"markdown":"# Title\n\nClean extracted text..."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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"}]},"paymentMethods":[{"uid":"pm_Li--hFd5YtMJLgoSeBoaS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches any public URL and returns its content as clean, readable markdown, paid per-call via x402 USDC micropayment on Base mainnet","exampleAgentPrompt":"Fetch the article at https://techcrunch.com/2024/01/15/openai-news/ and give me the clean readable text from it.","exampleUseCases":[{"title":"Research article summarization","prompt":"Go grab the content from https://arxiv.org/abs/2401.00123 and pull out the clean text so I can summarize it."},{"title":"Competitor pricing page monitoring","prompt":"Fetch https://www.competitor.com/pricing and extract all the readable text so I can see what plans they currently offer."},{"title":"News headline extraction for daily brief","prompt":"Pull the clean markdown from https://news.ycombinator.com so I can see what the top stories are right now."}],"resultDescription":"A JSON object containing the original URL, the HTTP status code of the fetched page, and the page's main content rendered as clean markdown with headings, paragraphs, and links preserved — HTML boilerplate, ads, and navigation stripped away.","failureModes":["Non-200 HTTP status from target URL (e.g. 404, 403, 500) — returned in status field with empty or partial markdown","Target URL is behind authentication or a paywall — returns 200 but markdown will contain login-wall content rather than article body","HTTP 402 returned before content if payment not yet made — agent must complete x402 USDC micropayment flow first","Malformed or missing `url` query parameter — likely returns 4xx error","JavaScript-rendered single-page apps may return incomplete content if JS is not executed","Rate limiting or bot-blocking by the target site may result in empty or error markdown"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to read and process the text content of any public URL on-the-fly without setting up API keys or managing scraping infrastructure. It is ideal for agentic workflows that need ad-hoc web content access paid via USDC micropayments on Base, especially when the agent already participates in the x402 payment protocol. Prefer it over general-purpose browser automation when you just need clean readable text rather than screenshots or DOM interaction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:31:50.290Z","isFirstParty":false,"canonicalSlug":"x402-web-extract-fetch-web-page-to-markdown-9e89a743"}