{"uid":"cap_Hnx0rhRNEZJkJfLyKXJTy","slug":"page-extract-clean-webpage-text-and-article-content-3e65c946","name":"Page Extract – Clean Webpage Text and Article Content","description":"Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.","url":"https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/page-extract?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","format":"uri","pattern":"^https://","maxLength":2048,"minLength":8,"description":"Public HTTPS webpage or article URL to extract; no JavaScript rendering"},"format":{"enum":["markdown","text"],"type":"string","default":"markdown","description":"Format of the content field inside the JSON response"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"url":"https://example.com/article","chars":312,"title":"Example","words":51,"format":"markdown","sha256":"9f86d0…","content":"# Example\n\nClean main text...","http_status":200}},"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_Grd5ETHSgWdMYP-mYIigc","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 URL and returns the main article text as clean readable markdown, stripping boilerplate, navigation, and ads.","exampleAgentPrompt":"Can you grab the main article text from https://www.theverge.com/2024/5/1/example-article and give it to me as clean readable markdown, no ads or nav menus?","exampleUseCases":[{"title":"Summarize a news article","prompt":"Pull the article text from https://www.bbc.com/news/technology-68000000 and give me a clean version I can summarize — strip out all the navigation and sidebars."},{"title":"Feed blog post to an LLM","prompt":"Extract the readable content from this blog post https://martinfowler.com/articles/micro-frontends.html and return it as markdown so I can pass it to my summarizer."},{"title":"Research pipeline content ingestion","prompt":"I'm building a research pipeline — can you fetch https://arxiv.org/abs/2401.00001 and return just the main readable text as markdown, no headers or footers?"}],"resultDescription":"A JSON object containing the cleaned article content in markdown format, the page title, word count, character count, a SHA-256 hash of the content, and the HTTP status code of the fetched page.","failureModes":["Target URL is paywalled or requires login — returns partial or empty content","URL is unreachable or returns a non-200 HTTP status — http_status field reflects the error","Page has no detectable main article content — returns minimal or empty content field","Rate limiting or network timeout on the target server — may return an error or incomplete response","Malformed or invalid URL input — returns an error response"],"whenToPreferThis":"Use this endpoint when you need to extract clean, human-readable article text from a single URL and want the result as markdown. It is ideal for feeding web content into LLMs, summarizers, or research pipelines where boilerplate removal is critical. Prefer it over raw HTML fetchers when readability and structure matter. For multiple URLs at once, consider the batch variant.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:51:45.340Z","isFirstParty":false,"canonicalSlug":"page-extract-clean-webpage-text-and-article-content-3e65c946"}