{"uid":"cap_re1_pQfq2DuUoLq3OK1De","slug":"payai-agentstools-dev-web-extractor-a2bc39f2","name":"payai.agentstools.dev Web Extractor","description":"Fetch any public web page and return its main readable content as clean Markdown or plain text plus metadata (title), stripping nav/ads/boilerplate (trafilatura). Optional JS rendering via headless browser for SPAs; markdown or text output. Robots-respecting, public content only — the reader/scraper building block for RAG and agent pipelines.","url":"https://payai.agentstools.dev/extract","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"Public http(s) URL to extract"},"format":{"enum":["markdown","text"],"type":"string"},"render":{"type":"boolean","description":"Render JS via headless browser"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yhpADmI66Y29V7jBf9rF6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a public URL and returns its main content as clean markdown or plain text, plus page metadata, using trafilatura.","exampleAgentPrompt":"Can you fetch this article for me and give me the full readable content as clean markdown? The URL is https://example.com/some-article — use JavaScript rendering since it's a dynamic page.","exampleUseCases":[{"title":"Research aggregation for competitive analysis","prompt":"I need you to pull the main content from these three competitor websites and convert them to clean markdown so I can compare their messaging and features. Here are the URLs: [url1], [url2], [url3]. Just give me the readable text without all the nav menus and ads."},{"title":"News monitoring and summarization workflow","prompt":"Can you fetch the latest article from this news site and extract just the main story text as markdown? I want to feed it into my summarization system, so strip out all the headers, sidebars, and ads please. URL is [news-article-url]."},{"title":"Documentation extraction for knowledge base","prompt":"I'm trying to build a knowledge base from some public documentation pages. Can you fetch these URLs and give me the main content as clean text? Remove all the boilerplate and navigation so I just get the actual documentation content. Here are the links: [url1], [url2], [url3]. Enable JavaScript rendering if needed."}],"resultDescription":"Returns the main readable content of the target webpage as clean markdown or plain text (boilerplate, ads, and navigation stripped out), plus metadata about the page such as title and author extracted by trafilatura.","failureModes":["URL is not publicly accessible or requires authentication — extraction fails or returns empty","URL points to a non-HTML resource (PDF, image, binary) — content may be unextractable","JavaScript-heavy SPA content missing if render flag not set","Rate limiting or timeout on the target server — request fails","Invalid or malformed URL in query parameter — bad request error","Page has no extractable main content — returns empty body"],"whenToPreferThis":"Use this endpoint when you need to read the main textual content of a public webpage and want it returned as clean, LLM-ready markdown or plain text without boilerplate. Ideal for article extraction, research, and content summarization tasks. Prefer this over raw HTTP fetches when you want noise removed and structured text returned. For JS-rendered pages (SPAs), enable the render flag. For structured data extraction or academic PDFs, consider sibling endpoints on this service.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T04:29:20.664Z","isFirstParty":false}