Fetch web pages as clean Markdown with citations
fetch_clean_markdownFetch public web pages and return clean Markdown of the main content without menus, ads, cookie banners, or footers, with metadata and a citation for reading, quoting, or summarizing pages.
Instructions
Fetches public web pages and returns their main content as clean Markdown (no menus, ads, cookie banners or footers), plus title, author, published/modified dates, language, canonical URL, a heading outline and a ready-made citation. Tables stay Markdown tables; code blocks keep their language. Use it to read, quote or summarise a page or load documentation; cite citation.url. chunk:true returns heading-aware chunks for long pages; mode "sitemap"/"crawl" (with maxPages, includeGlobs like "/docs/**") reads several pages of one site; rendering "auto" only if a page comes back nearly empty. Respects publishers: obeys robots.txt, never bypasses paywalls, logins, CAPTCHAs or bot protection, honours noai/TDM opt-outs — such pages return status "blocked"/"paywalled" with a reason and NO content; do not retry them by other means. Runs an Apify Actor on the caller's own Apify account (billed by Apify pay-per-event, capped per run).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "urls" fetches the given pages; "sitemap" or "crawl" reads several pages of one site. | urls |
| urls | Yes | Page URLs (or site / sitemap URLs for mode sitemap/crawl). | |
| chunk | No | Return heading-aware chunks for long pages (for RAG). | |
| maxDepth | No | How many links deep to follow in crawl mode. | |
| maxPages | No | Cap for sitemap/crawl modes. | |
| chunkSize | No | Target chunk size in tokens when chunk is true. | |
| rendering | No | "http" is fastest; use "auto" only if a page comes back nearly empty. | http |
| chunkOverlap | No | Tokens of overlap between chunks. | |
| excludeGlobs | No | URL patterns to skip, e.g. "/blog/tag/**". | |
| includeGlobs | No | e.g. ["/docs/**"] | |
| includeLinks | No | Keep hyperlinks in the Markdown (false = fewer tokens). | |
| includeImages | No | Keep image links in the Markdown. | |
| contentSelector | No | Optional CSS selector to force the content region. | |
| maxCharsPerPage | No | Server-side truncation of markdown per page; truncatedForAgent=true when cut. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | Yes | ||
| tool | Yes | ||
| items | Yes | Result records (trimmed for context). Records often carry a recordType discriminator. | |
| notes | Yes | ||
| dryRun | Yes | true = built-in SAMPLE data from this server, NOT a real lookup | |
| status | Yes | "running" = still working; call get_run_results with run.runId later | |
| summary | Yes | ||
| truncated | Yes | true = more records exist than are included here (see datasetUrl) | |
| datasetUrl | No | ||
| disclaimer | No | ||
| itemsTotal | Yes | ||
| sampleData | Yes | true = the Actor returned fictional sample rows (e.g. no credentials configured); never present as real |