Fast Website & Sitemap Markdown Crawler for AI/RAG avatar

Fast Website & Sitemap Markdown Crawler for AI/RAG

Pricing

from $1.05 / 1,000 markdown pages

Go to Apify Store
Fast Website & Sitemap Markdown Crawler for AI/RAG

Fast Website & Sitemap Markdown Crawler for AI/RAG

Crawl docs, blogs, sitemaps, and /llms.txt files over direct HTTP into clean GitHub-Flavored Markdown. Strips site chrome, tracks headings and link graphs, and outputs word and LLM token estimates without Chrome.

Pricing

from $1.05 / 1,000 markdown pages

Rating

0.0

(0)

Developer

tsun tsun

tsun tsun

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

an hour ago

Last modified

Features

Limited permissions

Share

Turn documentation portals, technical blogs, XML sitemaps, and /llms.txt endpoints into clean GitHub-Flavored Markdown over direct HTTP with no headless browser. For every crawled page, the crawler pulls robots.txt and nested /sitemap.xml trees (up to 20 child sitemaps per origin), locates the main document landmark (main, article, [role="main"], .markdown-body, .docs-content, or body), strips navbars, sidebars, footers, breadcrumbs, and cookie banners, and emits Markdown with word counts, token estimates, heading outlines, and deduplicated link arrays.

Use cases

  • Index documentation sites built on Docusaurus, Mintlify, GitBook, ReadTheDocs, or Next.js SSR into Qdrant, Pinecone, or pgvector with optional maxMarkdownChars caps per page.
  • Pull pre-rendered /llms-full.txt or /llms.txt files on developer portals in one HTTP round-trip via preferLlmsTxt: true.
  • Give Claude Code or Cursor on-demand access to scoped product docs via Apify MCP without spinning up Chrome containers.
  • Audit site structure across multiple domains by exporting canonicalUrl, headings, internalLinks, externalLinks, and wordCount.

Crawl scope & /llms.txt fast path

Each Start URL sets an origin and path scope automatically, and adapts when a depth-0 Start URL permanently redirects to another non-root path on the same host (for instance /platform/actors to /actors). Scope narrows further with includePathPrefix, segment-aware includePathPatterns, and excludePathPatterns (a leading / enforces whole-segment matching so /cart blocks /cart/items without blocking /cartoon).

Enabling preferLlmsTxt probes /llms-full.txt and /llms.txt on each origin before any HTML crawl begins. Soft-200 HTML fallback pages are rejected automatically, converging origins (such as apex and www) deduplicate prior to billing, and Markdown links parse through a linear O(N) scanner that handles balanced parentheses like Python_(programming_language). Headings inside <article><header><h1>, nested lists, GFM tables, blockquotes, and language-tagged code fences remain intact during HTML cleanup.

Inputs & crawl filters

ParameterTypeDefaultDescription
startUrlsstring[](required)One or more public HTTP(S) root URLs across one or multiple domains.
useSitemapbooleantrueSeed scoped internal URLs from robots.txt and /sitemap.xml.
preferLlmsTxtbooleanfalseCheck /llms-full.txt and /llms.txt on each origin before HTML crawling.
includePathPrefixstring""Exact path-segment prefix (e.g. "/actors" skips "/actors-v2").
includePathPatternsstring[][]Allowlist of path segments (leading /) or URL substrings.
excludePathPatternsstring[](5 auth/cart paths)Path segments or substrings to skip.
maxPagesinteger25Max valid Markdown pages pushed (1-2000).
maxDepthinteger2Max internal link hops from Start URLs (0-5).
maxMarkdownCharsinteger0Optional character cap per page at clean boundaries (0-200000; 0 = unlimited).
concurrencyinteger5Parallel HTTP fetches (1-15).
includeLinksbooleantrueInclude deduplicated internalLinks and externalLinks arrays.

Default excludePathPatterns skips ["/login", "/signup", "/cart", "/checkout", "/wp-admin"].

Example input

{
"startUrls": ["https://docs.apify.com/actors"],
"useSitemap": true,
"preferLlmsTxt": false,
"includePathPrefix": "/actors",
"includePathPatterns": [],
"maxPages": 25,
"maxDepth": 2,
"maxMarkdownChars": 0,
"concurrency": 5,
"includeLinks": true
}

Sample Markdown record

{
"url": "https://docs.apify.com/actors",
"canonicalUrl": "https://docs.apify.com/actors",
"httpStatus": 200,
"depth": 0,
"title": "Actors | Apify Documentation",
"metaDescription": "Actors are serverless cloud programs for web scraping and web automation.",
"language": "en",
"headings": ["Actors", "Development", "Running Actors", "Publishing"],
"wordCount": 684,
"estimatedTokens": 910,
"markdown": "# Actors\n\nActors are serverless cloud programs for web scraping and web automation...",
"internalLinks": ["https://docs.apify.com/actors/running"],
"externalLinks": ["https://github.com/apify/apify-sdk-js"],
"scrapedAt": "2026-11-24T17:42:19.412Z"
}

Field definitions

FieldTypeDescription
urlstringNormalized final URL after redirects and tracking-param stripping.
canonicalUrlstring | nullResolved <link rel="canonical"> URL if present.
httpStatusnumberHTTP status code returned by the page.
depthnumberLink hop depth (0 for Start URLs, sitemaps, and llms.txt files).
titlestring | nullDocument <title>, fallback <h1>, or llms.txt heading.
metaDescriptionstring | nullMeta description, og:description, or llms.txt lead quote.
languagestring | nullHTML lang attribute.
headingsstring[]Ordered h1-h6 headings (up to 50).
wordCountnumberWord count of the delivered markdown.
estimatedTokensnumberApproximate LLM tokens (Math.ceil(wordCount * 1.33)).
markdownstringClean GitHub-Flavored Markdown body.
internalLinksstring[]Deduplicated same-host links ([] when includeLinks: false).
externalLinksstring[]Deduplicated external links ([] when includeLinks: false).
scrapedAtstringISO 8601 UTC extraction timestamp.

Pay-Per-Event pricing

Pay-Per-Event billing on page-crawled with $0 actor-start fee and $0 proxy fees. Dead links, soft-404s, binaries, thin hub pages (< 10 words), and canonical duplicates are never charged.

Event (Apify Store Label)Free / 1kBronze (-10%)Silver (-20%)Gold+ (-30%)
Markdown page$1.50$1.35$1.20$1.05

Gold+ includes Gold, Platinum, and Diamond plans (all -30%, or $0.00105 per page). Apify's $5 monthly free credit covers 3,333 Markdown pages/month on the Free plan.

MCP, SDK & HTTP usage

Claude Code (MCP)

claude mcp add --transport http apify-markdown \
"https://mcp.apify.com/?tools=tsun_tsun/fast-website-markdown-crawler" \
--header "Authorization: Bearer $APIFY_TOKEN"

Claude Desktop, Cursor & Windsurf (MCP)

{
"mcpServers": {
"apify-markdown": {
"url": "https://mcp.apify.com/?tools=tsun_tsun/fast-website-markdown-crawler",
"headers": {
"Authorization": "Bearer YOUR_APIFY_TOKEN"
}
}
}
}

JavaScript / TypeScript (apify-client)

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('tsun_tsun/fast-website-markdown-crawler').call({
startUrls: ['https://docs.apify.com/actors'],
includePathPrefix: '/actors',
maxPages: 25,
maxMarkdownChars: 16000,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0].title, items[0].estimatedTokens);

Python (apify-client)

import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("tsun_tsun/fast-website-markdown-crawler").call(
run_input={
"startUrls": ["https://docs.apify.com/actors"],
"includePathPrefix": "/actors",
"maxPages": 25,
"preferLlmsTxt": False,
}
)
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(len(items), items[0]["url"])

cURL

curl -X POST "https://api.apify.com/v2/acts/tsun_tsun~fast-website-markdown-crawler/run-sync-get-dataset-items" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"startUrls": ["https://docs.apify.com/actors"],
"includePathPrefix": "/actors",
"maxPages": 10
}'

Benchmarks & constraints

Measured on Apify Cloud at default 256 MB memory, a 3-page crawl completed in 2.15 s at 52.0 MB peak RAM (128 MB minimum memory). Requests enforce a 15-second page timeout, 5 MB HTML cap, 10 MB sitemap cap, UTF-16 surrogate-safe maxMarkdownChars boundary truncation, Retry-After backoff on 429/5xx, DNS-level SSRF protection across inputs, redirects, and sitemaps (blocking private IPv4/IPv6, metadata hosts, NAT64/Teredo/6to4, and .local/.internal), and clean OUTPUT flushing on abort.

Skip this crawler if your target is a pure client-side SPA serving an empty <div id="root"></div> without server rendering (use a Playwright or Puppeteer crawler instead), sits behind Cloudflare Turnstile, logins, or residential proxy walls, or requires binary extraction from PDF, DOCX, or image assets.

Frequently asked questions

What happens when preferLlmsTxt: true is set on a site without /llms-full.txt?

The crawler tries /llms-full.txt first and /llms.txt second, discarding any HTML fallback page returned with status 200. If /llms-full.txt is valid Markdown/text, it emits that single document and skips HTML crawling for that origin. If only /llms.txt is valid, it emits the index and queues its scoped internal links. If neither exists, normal sitemap + HTML crawling runs unchanged.

Why did a start page with fewer than 10 words not appear in the dataset?

Thin navigation hub pages (wordCount < 10) are still crawled so their internalLinks seed depth-1 pages, but they are excluded from Actor.pushData so you are not billed for empty directory pages.

How does maxMarkdownChars avoid corrupting Markdown or emoji characters?

Truncation cuts cleanly at a paragraph (\n\n), line (\n), or word boundary within the limit, strips any lone trailing UTF-16 high surrogate so astral-plane characters never split mid-pair, and recalculates wordCount and estimatedTokens from the truncated text.

Does this crawler respect canonical duplicates across redirects?

Yes. Tracking query parameters (utm_*, fbclid, gclid) are stripped, <base href> and <link rel="canonical"> are resolved, and pages matching an already-pushed final URL or canonical URL are dropped at $0.

Companion lightweight API Actors and free workflow templates in the Apify Automation Toolkit:

ActorBest paired for
Google News & Universal RSS/Atom Feed ScraperDiscover fresh news URLs and feed articles to crawl into full Markdown.
Substack Newsletter & Archive Scraper (Markdown)Extract Substack archives, engagement counts, and clean Markdown posts.
Wikipedia Knowledge & RAG Markdown Scraper (API)Pull clean Wikipedia Markdown, infobox JSON, and Wikidata Q-IDs via Wikimedia APIs.
Apple Podcasts & RSS Scraper (Host Emails & Shows)Extract podcast host emails, show profiles, audio links, and episode show notes.
Apple App Store & Reviews Scraper (iOS Apps & Ratings)Monitor iOS app metadata and filtered customer reviews across storefronts.
Website Contact, Email MX/DMARC & Tech Stack EnricherEnrich crawled domains with contact info, DNS/MX/DMARC records, and detected tech stacks.