Website to Markdown Scraper - Clean Text & Chunks avatar

Website to Markdown Scraper - Clean Text & Chunks

Pricing

Pay per event

Go to Apify Store
Website to Markdown Scraper - Clean Text & Chunks

Website to Markdown Scraper - Clean Text & Chunks

Turn a list of URLs or a small website into clean Markdown for search and knowledge bases: main text only, tables, code and links kept, optional heading-aware chunks. Plain HTTP, robots.txt respected.

Pricing

Pay per event

Rating

0.0

(0)

Developer

Josh Zoerner

Josh Zoerner

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Features

Limited permissions

Share

Paste a list of URLs, or one start URL to crawl a small site, and get clean Markdown of each page's main text: headings, lists, tables, code blocks and links kept; menus, footers, cookie banners and scripts removed. Optional heading-aware chunks with token counts, ready for a vector database. One flat price per page: 1,000 pages cost $3.50.

  • Proof: the sample table below comes from a real run on 16 Nov 2026 (UTC). The 3 example pages took about 2 seconds of run time.
  • Guarantee: you pay only for pages that were read and have text. Pages that are blocked, missing (404), closed to crawlers by robots.txt, empty, or not web pages (PDFs, images) are still returned with the reason, free. Hard limits on pages, depth, results and run time mean a crawl can never run away with your budget.
  • Next step: click Try for free. The example input converts 3 real documentation pages in under a minute.

Who it's for

  • Developers loading docs into a search index or knowledge base. Get clean Markdown and ready-made chunks from a list of URLs or a docs site. The price per page is fixed.
  • Teams keeping a knowledge base in sync with their docs, help center or blog. Schedule a weekly run with Only new or changed pages. You pay only for pages whose text changed.
  • Content and SEO teams who want a site's text, outline (headings) and word counts as Markdown or JSON for audits, migrations or content inventories.
  • Analysts and researchers who need the readable text of many articles without the page clutter.

What you get

One row per page:

PageTitleWordsTokens (approx.)HeadingsMarkdown (start)
docs.python.org/3/tutorial/controlflow.html4. More Control Flow Tools - Python 3.15.2 documentation5,66810,19924# 4. More Control Flow Tools / As well as the while statement just introduced...
developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_FetchUsing the Fetch API - Web APIs | MDN2,8726,80619# Using the Fetch API / ## Making a request / To make a request, call fetch()...
en.wikipedia.org/wiki/MarkdownMarkdown - Wikipedia2,7969,07116# Markdown / infobox as a table: | Initial release | March 9, 2004 ... |

Tokens are estimated as characters / 4. Code blocks keep their language (```python3, ```js), tables become GitHub-style Markdown tables, and links are absolute addresses, so every chunk still makes sense on its own.

Full example item (real run, 16 Nov 2026, with Split into chunks and Include page links on):

{
"url": "https://example.com/",
"finalUrl": "https://example.com/",
"status": "ok",
"httpStatus": 200,
"title": "Example Domain",
"description": null,
"lang": "en",
"canonicalUrl": null,
"markdown": "# Example Domain\n\nThis domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.",
"wordCount": 27,
"tokensApprox": 44,
"headings": [{ "level": 1, "text": "Example Domain" }],
"links": [],
"chunks": [
{
"index": 0,
"text": "# Example Domain\n\nThis domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.",
"headingPath": ["Example Domain"],
"tokensApprox": 44
}
],
"contentHash": "a764ee35fca6ac90",
"changeStatus": null,
"depth": 0,
"startUrl": "https://example.com/",
"error": null,
"charged": true,
"fetchedAt": "2026-11-16T05:38:19.944Z"
}

Statuses

statusMeaningCharged?
okThe page was read and convertedYes
emptyThe page was read but has no readable text in its HTML (often a page that builds its content with JavaScript)No
blockedThe site refused access or showed a bot check. The Actor reports it and moves on; it never tries to get around blocksNo
robots_disallowedThe site's robots.txt does not allow crawling the pageNo
http_errorThe page answered with an error, for example 404 Not Found or 500No
not_htmlThe address is a file, not a web page (PDF, image, JSON...)No
too_complexThe page is too large or too deeply nested to convert within 60 seconds and the run's memoryNo
unreachableThe domain does not exist, the server is down or timed out, or the connection dropped (tried twice)No
invalid_urlThe line is not a public web address (for example an internal address or ftp://)No

How to use it

  1. Paste your pages into Web pages or start URLs, one full link per line. To read a whole documentation site or blog, paste its start link and turn on Crawl the whole site.
  2. Optional: turn on Split into chunks and pick the chunk size and overlap in tokens. You can also set limits: pages per start link, link depth, maximum charged pages and a run time limit.
  3. Run it and download the results as JSON, CSV or Excel, or send them to your search index, vector database or Google Sheets through the API and integrations.
  4. Keep a knowledge base in sync: turn on Crawl the whole site and Only new or changed pages, then click Schedule and pick weekly. Each run returns (and charges) only pages whose text changed.

Some text could be read as a formula by a spreadsheet. That is text starting with =, +, - or @. It gets a leading ' in titles, descriptions and headings, and a \ escape in the Markdown. Excel and Google Sheets then show it as plain text.

The pages need no login or API key. You only need your Apify account.

Pricing

Pay per page: one flat charge for each page that was read and converted.

  • 1,000 pages = $3.50 ($0.0035 per page), plus Apify's small standard charge for starting a run. Put many pages in one run rather than one run per page, so you pay that start charge once.
  • The same price for every page, short or long, with or without chunks. No compute-time surprises.
  • Free: blocked, missing, robots.txt-protected, empty, too complex and non-HTML pages, and (with Only new or changed pages) pages whose text has not changed since the last run.
  • Hard limits: maximum charged pages, pages per start link, link depth and a run time limit. Set a maximum cost per run in Apify and the Actor stops cleanly when it is reached; pages it did not get to are listed (not charged) so you can run them later.

Scheduling & integrations

  • Schedules: re-read your docs or help center weekly. With Only new or changed pages on, each run returns (and charges) only pages whose text changed, marked changeStatus: "new" or "changed". If you change the output settings (chunks, links, images, main content), every page comes back once more with the new settings.
  • API: start runs and fetch results with the Apify API or the JavaScript and Python clients. Load chunks straight into Pinecone, Qdrant, Weaviate, pgvector or any other vector store.
  • Make, Zapier, n8n: send new URLs to this Actor and pass the Markdown on to the next step.
  • Google Sheets: export titles, word counts and Markdown to a sheet.
  • MCP: any tool that connects to Apify's MCP server can call this Actor to turn a list of URLs into clean Markdown.

Tested to the Gold Standard

Gold Standard Web built this Actor and tests it with Gold Standard QA, our three-layer quality process.

  • Every change must pass the full test suite before it is saved.
  • We plant bugs in the code on purpose, and the tests must catch at least 90% of them.
  • A reviewer who did not write the code tries to break it before each release.

See every check we run.

FAQ

Is this legal to use? The Actor reads only public pages, the way a visitor would. No login, no forms, no bot-check bypass, no proxies to get around blocks. It names itself honestly (GoldStandardWeb-Apify/1.0). It follows each site's robots.txt, including crawl-delay. What you do with the text is your responsibility. Much web content is copyrighted, so check the site's terms before you republish it or use it to train or feed other products.

How is this different from a full browser crawler? This Actor reads the HTML the server sends, without running a browser. That makes it fast and lets it charge one small flat price per page, which suits documentation sites, blogs, help centers, news and reference pages. Pages that only show their text after JavaScript runs come back as empty (free), so you can send just those to a browser-based tool.

How are chunks made? Each page's Markdown is split along its headings: a new section starts a new chunk, small neighboring sections are merged, and long sections are split at paragraph, then sentence boundaries. Code blocks are never cut in the middle of a line, and every piece keeps its code fence. Each chunk has its heading path (for example ["4. More Control Flow Tools", "4.2. for Statements"]) and an approximate token count. Overlap repeats the end of the previous chunk only inside a long section, never across headings. Tokens are counted as about 4 characters, a common estimate for English text. A page gets at most 2,000 chunks; if a very long page needs more, the row's error field says so and the full text is still in markdown (use a larger chunk size).

What does "main content only" remove? Menus, site headers and footers, sidebars, cookie banners, forms, scripts, styles and "copy" buttons. It keeps the article: headings, paragraphs, lists, tables, code, quotes and links. Turn it off to convert the whole page body instead.

Which pages does a crawl visit? Only pages on the same site as the start link (www. or not), and by default only under the start link's folder: start at https://example.com/docs/intro and the crawl stays inside /docs/. If the start link redirects to another folder on the same site (for example /docs/ to /en/docs/), the crawl also covers the folder it landed in. It follows links up to Max link depth and also reads the site's XML sitemap. Files (PDFs, images, archives) and links matching Skip links containing are not followed. Each page is read once, even when it is linked with tracking parameters or #anchors. A page that is reachable at two addresses (with and without www., or two addresses with the same canonical link) and has the same text is charged once; pages that share a canonical link but have different text (page 2 of a list) are all returned. Max pages per start link counts per start link, so two start links on the same site each get their own cap.

What happens if the run hits my time limit or maximum cost? It stops starting new pages, finishes cleanly, and lists the pages it did not read in the log and in the run's key-value store (record UNPROCESSED). Those were not charged; run them again. If Apify moves the run to another server mid-run, it continues there and no page is charged twice.

Limitations

  • HTML only, no browser: text that appears only after JavaScript runs is not read (those pages are returned as empty, free).
  • Sites behind Cloudflare, Akamai or other bot checks come back as blocked (free). The Actor does not use proxies or other tricks to get around blocks.
  • PDFs, Word files and images are not converted (not_html, free).
  • Up to 10,000 start links per run, 10,000 pages per start link, and 100,000 charged pages per run.
  • Pages over 5 MB are cut at 5 MB. Markdown over 1,000,000 characters is cut there. The row says so.
  • A page that takes longer than 60 seconds to convert, or has more HTML elements than the run's memory allows (about 100,000 at the default 512 MB), comes back as too_complex (free). Normal articles and docs pages have a few thousand.
  • Token counts are estimates (characters / 4), not the exact count of a specific tokenizer.
  • Finding the main text works best on articles and docs. Some pages are mostly short link lists, like home pages and category pages. On those it uses the whole page body.

Input reference

FieldTypeDefaultDescription
startUrlsarray(required)Pages to convert, or start links to crawl, one per line (up to 10,000). [{ "url": "..." }] is accepted too
crawlbooleanfalseFollow each start link's same-site links and sitemap
maxPagesPerSiteinteger50Crawl: pages per start link (1-10,000)
maxCrawlDepthinteger2Crawl: clicks away from the start link (0-20)
stayWithinPathbooleantrueCrawl: stay inside the start link's folder
useSitemapbooleantrueCrawl: also read the site's XML sitemap
excludeUrlPatternsarray[]Crawl: skip links containing any of these texts
mainContentOnlybooleantrueKeep the main text only
chunkbooleanfalseAdd heading-aware chunks
chunkSizeinteger500Chunk size in tokens (100-8,000)
chunkOverlapinteger50Overlap in tokens (0 to half the chunk size)
includeLinksbooleanfalseAdd every link on the page
includeImagesbooleanfalseKeep images as Markdown image links
skipUnchangedbooleanfalseOnly return (and charge) new or changed pages since the last run (changing the output settings returns every page once more)
historyNamestringdefaultSeparate change history per project (letters, digits, dashes)
maxResultsinteger1000Stop after this many charged pages (up to 100,000)
maxRunMinutesinteger30Hard run time limit (1-600)

Output fields

  • Page: url, finalUrl, status, httpStatus, canonicalUrl
  • About: title, description, lang
  • Text: markdown, wordCount, tokensApprox, headings, links, chunks
  • Changes: contentHash, changeStatus
  • Crawl: depth, startUrl, fetchedAt
  • Run info: error, charged

Each address you list gets one row. The one exception is a page that turns out to be the same as another you listed. That means the same address after redirects or canonical link, and the same text. That one is counted in the log, not returned or charged.

How it works

For each page, the Actor:

  1. Reads the site's robots.txt, once per site.
  2. Fetches the page over plain HTTP. It follows up to 5 redirects and checks each one again.
  3. Finds the main content with Mozilla Readability.
  4. Writes Markdown with Turndown, plus rules for code languages, tables and full links.

Each page is converted in a separate worker with a 60-second limit, so one hostile page cannot stall the run. A dropped connection or a 500/502/503/504 answer is tried again once after 3 seconds. At most 2 requests run at the same time per site. Or one at a time, spaced by the site's robots.txt crawl-delay. Up to 10 pages from different sites are read at once. A site's crawl-delay may run past your run time limit. If so, that site's remaining pages are listed as not read (free), and the other sites carry on. Internal and private network addresses are refused. That holds for input and after redirects and DNS lookups.