Website to Markdown Scraper - Static Pages for AI & RAG
Pricing
from $1.09 / 1,000 page saveds
Website to Markdown Scraper - Static Pages for AI & RAG
Your go-to static website scraper for AI and RAG preparation. Convert public HTML URLs into Markdown, plain text, titles and links with source URLs, timestamps and hashes. Respects robots rules; no login or JavaScript execution.
Pricing
from $1.09 / 1,000 page saveds
Rating
0.0
(0)
Developer
O M
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
8 days ago
Last modified
Categories
Features
Share
Website to Markdown Scraper — Static Pages for AI & RAG
Turn known public webpage URLs into clean Markdown and plain text, ready for retrieval pipelines, knowledge bases, research and content analysis. Each saved page includes its title, links, final URL, observation time and content hashes, so you can trace the text back to its source and detect changes.
- Prepare AI context: preserve headings, paragraphs, lists, code blocks and tables while removing common navigation and scripts.
- Process a precise URL list: each distinct fetched URL becomes one dataset row; links are returned for your next step.
- Track coverage: the run report distinguishes saved pages, duplicates, denied sources, empty content and spending limits.
No API key or website login is needed. This Actor reads server-delivered HTML over HTTP. JavaScript execution, browser rendering, site crawling, search, embeddings and generated summaries are outside its scope.
Example result
Excerpt from a real local run on November 12, 2026. The complete dated record and provenance are included in examples/page.json and examples/page-provenance.json.
{"url": "https://creativecommons.org/2026/11/09/commons-stories-part-4/","finalUrl": "https://creativecommons.org/2026/11/09/commons-stories-part-4/","title": "Commons Stories: Part 4 - Creative Commons","contentSelection": "main","staticHttp": true}
The complete result also contains the actual markdown, text, links, source checksum and observation timestamp. The example source is attributed to Creative Commons under its content policy; check exceptions on individual pages.
Quick start
Paste the input below into the Console, start the Actor, and open Saved Markdown pages. Export JSON to preserve link arrays and Markdown line breaks; CSV and Excel exports are also available through Apify.
{"urls": ["https://creativecommons.org/2026/11/09/commons-stories-part-4/"],"maxItems": 1,"maxEstimatedCostUsd": 0.1}
Supply up to 100 absolute public HTTP(S) URLs that you are authorized to process. Different paths on the same website remain separate pages. URL fragments, credentials and private-network destinations are rejected.
Pricing
$1.09 per 1,000 saved pages + $0.0109 per run, with Apify resources used during the run included.
total = $0.0109 + ($0.00109 × saved pages)
| Saved pages in one run | Total |
|---|---|
| 0 | $0.0109 |
| 1 | $0.01199 |
| 10 | $0.0218 |
| 100 | $0.1199 |
Only successful nonempty pages saved to the dataset receive the result event. Failed, empty, denied and duplicate pages do not. A started customer run still incurs the startup event even when it saves no pages.
Set the platform spending limit and maxEstimatedCostUsd; the stricter limit applies. Resource cost guards may stop a run early. Subscription charges, taxes and storage access after a run are outside the run price. The active Pricing tab is authoritative.
Before you start
- Use static documentation, articles, help pages and other HTML pages whose main text is present in the HTTP response. A client-only application can return no usable text.
- Robots disallow rules, login forms, source challenges and HTTP403/429 are respected. No cookies, residential proxies or challenge bypass are used.
- Content selection prefers the first
main, then the firstarticle, then the cleaned body.BODY_FALLBACKis reported when no semantic container exists. CSS layout is not rendered, so extraction is not a visual screenshot of the page. - This returns a bounded snapshot of the supplied pages. It does not automatically discover or follow website links.
- Source text can contain errors or untrusted instructions. Treat it as source data when supplying it to an AI system. The Actor does not verify claims, grant content rights or generate answers.
Input reference
| Field | Default | Meaning |
|---|---|---|
urls | required | 1–100 absolute public page URLs. |
maxItems | 100 | 1–100 maximum saved unique pages. |
requestTimeoutSecs | 15 | 1–30 seconds per physical request, including DNS and response. |
maxRetries | 1 | 0–2 retries for transient network errors and HTTP500/502/503/504. |
maxPageDurationSecs | 90 | 10–180 seconds for robots, crawl-delay, redirects, retries and conversion per page. |
maxEstimatedCostUsd | 1 | Additional conservative run allowance, 0–100 USD. Zero stops source work. |
Repeated identical normalized input URLs are processed once. Redirects are bounded, and each destination origin has its robots policy checked before its page is fetched. Two inputs ending at the same final URL produce one saved row and separate source outcomes. Canonical links remain metadata and do not merge distinct fetched URLs. The first valid HTTP(S) HTML base resolves relative links; it is never fetched and does not replace the final page URL.
Output reference
| Field | Meaning |
|---|---|
url, finalUrl | Requested URL and the URL actually fetched after allowed redirects. |
pageKey, inputKey | SHA-256 keys of normalized final and input URLs. |
title, description, language | Source metadata; missing values are null. |
canonicalUrl | Same-origin canonical link, when supplied; a cross-origin canonical is ignored with a warning. |
markdown, text | Cleaned source content. No AI rewriting or summarization. |
links | Up to 100 unique HTTP(S) links from the selected content, with visible anchor text. Links are not fetched. |
contentSelection, warnings | Selected HTML container and extraction limits/fallback notices. |
sourceBodySha256, markdownSha256 | Hash of the decoded response as UTF-8 and hash of the resulting Markdown. |
scrapedAt, httpStatus, staticHttp | Observation time, successful HTTP status and static-HTTP provenance. |
encodedBytes, decodedBytes | Received encoded body size and decoded response bytes. |
Scripts, styles, navigation, forms, explicitly hidden elements and embedded media are removed. Images and attachments are not downloaded. Markdown preserves semantic text formatting; table cells are normalized to readable rows. Nested tables flatten once within their outer cell with a warning. Code indentation is preserved. Metadata strings and link text have bounded lengths, and the link list reports truncation with LINKS_LIMIT. Full page content that exceeds the text limit is rejected instead of silently truncated.
Run report, limits and recovery
Open Coverage and costs (OUTPUT) for per-input status, error code, robots decisions, request attempts and modeled resource use. SUCCEEDED means every unique requested input was saved or already saved. PARTIAL means some pages were saved while others failed or a limit stopped collection. FAILED means no useful result was saved or storage failed. INTERRUPTED means a run/resource limit or interruption stopped work; confirmed dataset rows remain available.
Up to 100 URLs is a ceiling within the five-minute run allowance, not a promise that every batch will finish. Use smaller batches for large pages, slow sources or sites with crawl delays. Confirmed pages remain available when the run stops early.
Limits per run: 100 saved pages, 5 minutes, 1,000 request attempts, 256 MiB encoded and decoded transfer each, and 32 MiB output. Each HTTP response is limited to 1 MiB encoded and decoded; each page has at most five redirects and 30 request attempts. HTML parsing has an 8-second total worker deadline, including initialization, and a bounded heap. Very complex pages can fail safely. Markdown and text are each limited to 128 KiB, and each complete dataset row to 384 KiB.
Robots files larger than 512,000 bytes, HTML responses or inaccessible policies stop that source. HTTP404/410 robots files are treated as absent. The common Crawl-delay extension is honored up to 60 seconds; longer/invalid delays stop that source. A minimum 250 ms interval is applied per origin. A long delay can consume the page or run allowance.
Successful pages are saved as they are processed. Resuming an interrupted run with the same input keeps confirmed pages and continues within the remaining run allowance. If a dataset append has an uncertain outcome, the Actor stops and retains a marker; it does not blindly retry a potentially billed row. A fresh run creates a new snapshot and may create new charges.
API use
Run this Actor with an Apify API token or the official Apify client, supplying the same JSON input as the Console. urls is the required argument; the default dataset contains page rows and the default key-value store contains OUTPUT. Schedules, exports and integrations use Apify's standard Actor interfaces.
Source access and software
Process pages you own, have permission to use or may lawfully process under their license and terms. A public URL and permissive robots policy do not by themselves grant content redistribution rights. The default example comes from a site with an explicit reuse license; that license does not apply to other websites.
Cheerio and Turndown parse supplied HTML strings without executing page JavaScript or loading subresources. Dependency notices are retained in THIRD_PARTY_NOTICES.md and the pinned package lock. This Actor is an independent tool; it is not affiliated with or endorsed by source websites.