{"uid":"cap_L08obBEZtKEx7WL0rM90_","slug":"2s-io-5b08a433","name":"2s.io Article Cleaner","description":"Fetch any URL and return its article content with the clutter stripped — nav, ads, sidebars, footers, scripts, styles, comments removed via heuristic extraction (<article> / <main> / role=main / densest block). Choose the output with `format`: markdown (default), text, both (JSON envelope), html (a self-contained readable reader-view page, raw text/html), or pdf (a clean typeset reading document, raw application/pdf). html/pdf are built from the same cleaned content, so they carry no live page, no third-party assets, no trackers. SSRF-guarded, 512KB body cap, 8s timeout, 5 redirects max. JSON formats return { url, finalUrl, title, markdown?, text?, wordCount, sourceBytes }. This uses a raw HTTP fetch (no JavaScript) — for client-rendered / SPA pages whose content only appears after JS runs, use /api/url/render (same formats, headless-rendered). For a pixel-perfect image of the live page use /api/ai/screenshot; to enumerate a page or sitemap into its links use /api/url/map.","url":"https://2s.io/api/url/clean","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string","maxLength":2048},"format":{"enum":["markdown","text","both","html","pdf"],"type":"string","default":"markdown"}},"additionalProperties":false}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"url":"https://en.wikipedia.org/wiki/Artificial_intelligence","format":"markdown"}}},"response":{"data":{"url":"https://en.wikipedia.org/wiki/Artificial_intelligence","title":"Artificial intelligence - Wikipedia","finalUrl":"https://en.wikipedia.org/wiki/Artificial_intelligence","markdown":"- Deepfake pornography Taylor Swift deepfake pornography controversy\n\n- Grok sexual deepfake scandal\n\n- Google Gemini image generation controversy\n\n- It's the Most Terrible Time of the Year\n\n- Pause Giant AI Experiments\n\n- Removal of Sam Altman from OpenAI\n\n- Statement on AI Risk\n\n- Tay (chatbot)\n\n- Théâtre D'opéra Spatial\n\n- Voiceverse NFT plagiarism scandal","truncated":true,"wordCount":47,"sourceBytes":518790},"meta":{"cost":{"usd":0.00108,"tier":0},"caller":"x402","version":null,"endpoint":"url.clean","settlement":{"txHash":"0x72a7c3c1a92fec145b72cac25b4cb30097898bad859a10f6c06ba390855c17e2","network":"eip155:8453","success":true}}}},"exampleRequest":{"url":"https://en.wikipedia.org/wiki/Artificial_intelligence","format":"markdown"},"tags":["x402"],"displayCostAmount":"0.00108","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":1,"rating":{"score":"1.00","successRate":"0.92","reviews":1,"stars":"5.0","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.00108/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0027","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0027","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_veexozHsmANGm8HJ5uvbm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0027","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 its article content as clean markdown (or plain text), stripping navigation, ads, sidebars, scripts, and other non-article elements.","exampleAgentPrompt":"Can you grab the full article from https://www.nytimes.com/2024/01/15/technology/ai-agents.html and give it to me as clean markdown so I can summarize it?","exampleUseCases":null,"resultDescription":"Returns a JSON object with: url (original), finalUrl (after redirects), title, markdown (clean article as markdown), text (plain text, if requested), wordCount, and sourceBytes. Non-article page elements like nav, footer, ads, scripts, and comments are stripped out.","failureModes":["URL is unreachable or returns non-200 status — extraction fails with error","Response body exceeds 512KB cap — truncated or rejected","Request times out after 8 seconds — timeout error","URL resolves to a private/internal IP (SSRF guard) — blocked with error","Too many redirects (>5) — redirect limit error","Page has no identifiable article content — returns empty or minimal markdown"],"whenToPreferThis":"Use this endpoint when you need the full article body of a web page for LLM consumption, summarization, or analysis — not just metadata or a preview. Prefer over /api/url/unfurl when you need the complete article text rather than just a 500-character preview and metadata. Best suited for news articles, blog posts, and documentation pages where the main content is clearly delimited from surrounding boilerplate.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":15,"lastUsedAt":"2026-07-24T04:36:27.436Z","lastSuccessfullyRanAt":"2026-07-23T01:59:24.629Z","lastHealthCheckAt":"2026-09-13T18:54:20.113Z","isFirstParty":false}