{"slug":"2s-io-api-url-clean-2fdc89","title":"Fetch any URL and return its article content with the clutter stripped — nav, ad","host":"2s.io","method":"GET","resource":"https://2s.io/api/url/clean","category":"image","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 ","price_listed":0.0027,"price_asked":0.0027,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":339,"reported_calls_30d":40,"reported_payers_30d":3,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"format":"markdown","url":"https://example.com"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"properties":{"method":{"const":"GET"},"queryParams":{"additionalProperties":false,"properties":{"format":{"default":"markdown","enum":["markdown","text","both","html","pdf"],"type":"string"},"url":{"maxLength":2048,"type":"string"}},"required":["url"],"type":"object"},"type":{"const":"http"}},"required":["type","method","queryParams"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0027,"price_match":true,"latency_ms":339,"error":null}],"description_full":"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.","last_updated":"2026-09-15T11:42:43.511Z","schemes":["exact"]}