Website Content Crawler – RAG Chunks for Vector DBs
Pricing
from $0.80 / 1,000 results
Website Content Crawler – RAG Chunks for Vector DBs
Website content crawler for RAG: turn any site into token-counted, heading-aware chunks with chunk ID, overlap, heading path, offsets, content hash and source URL. Export JSON, CSV or Excel. From $0.80 per 1,000 chunks.
Pricing
from $0.80 / 1,000 results
Rating
0.0
(0)
Developer
Alexandre Manguis
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a month ago
Last modified
Categories
Features
Share
Website Content Crawler RAG Chunks for Vector DBs
This website content crawler RAG chunks Actor outputs embedding-ready chunks, not raw pages: give it one or more start URLs and it crawls the site, extracts the main content, and splits it with a token-aware, heading-aware splitter into one dataset row per chunk — each with a stable chunkId, tokenCount, overlapTokensWithPrevious, headingPath, character offsets, a contentHash and the exact source URL. Push the dataset straight into Pinecone, Qdrant, pgvector or Chroma, or feed an MCP/agent retrieval tool — no manual chunking step.
Who it's for
AI/RAG engineers, AI agencies and indie builders who ingest documentation sites, help centers, changelogs or blogs into a vector database or an agent/MCP tool.
Use cases:
- Crawl a documentation site and embed the chunks directly, using
chunkIdas the upsert key. - Re-crawl the same site on a schedule and use
contentHash+chunkIdto re-embed only the chunks whose text actually changed. - Feed an MCP server or agent retrieval tool with pre-chunked, source-attributed content — every chunk keeps its URL and heading path for citations.
- Build an evaluation or fine-tuning corpus from a public knowledge base with token counts already measured per chunk.
What it does not do
- No JavaScript rendering — plain HTTP + HTML parsing only. Pages that render content client-side yield a
skippedrow (skipReason: "empty_content"); use a browser-based crawler for those sites. - No login, paywall or access-control bypass, and no CAPTCHA solving.
- No embeddings are generated and no third-party LLM/embedding API is called — only chunking and tokenization.
robots.txtis honoured by default (respectRobotsTxt: true).
Features
- One dataset row per chunk, not per page, with a stable
chunkIdderived from the URL and the chunk's content hash — safe to use as a vector-DB upsert key. - Token-aware chunking against the real tokenizer (
cl100k_baseoro200k_base), not an estimate —tokenCountis measured. - Heading-aware splitting (
heading-recursive) keeps each chunk under its markdown heading breadcrumb (headingPath);recursiveandpage(one chunk per page) are also available. overlapTokensWithPreviousand character offsets (startCharOffset/endCharOffset) giving the offsets of the chunk's new (non-overlapping) content within the page's cleaned main-content markdown. They are useful for ordering and de-duplication, not for HTML positions, and the overlap prefix is not included.contentHashlets a re-crawl skip re-embedding chunks whose text hasn't changed.- Billing is per delivered chunk row, never for pages that produce no chunk (see Pricing).
- Pages that fail (including HTTP 404/5xx error pages) or produce no usable content become a diagnostic
status: "skipped"row (skipReason:robots_disallowed,http_error,non_html,empty_content,blockedorbelow_min_chunk_chars) and are never billed.
Input
| Field | Type | Default | Description |
|---|---|---|---|
startUrls | array (required) | — | Pages or sections to crawl, as {url} objects. |
maxCrawlDepth | integer | 1 | Link hops to follow from each start URL. 0 = only the start URLs. |
maxCrawlPages | integer | 50 | Hard cap on pages fetched (including pages that produce no chunk). |
maxResults | integer | 5000 | Hard cap on chunk rows pushed to the dataset. |
sameDomainOnly | boolean | true | Follow links only on the same hostname as the start URL. |
includeUrlGlobs | array | — | URL glob patterns that must match to be crawled, e.g. https://docs.example.com/guide/**. |
excludeUrlGlobs | array | — | URL glob patterns to exclude (changelogs, archives, locale duplicates). |
respectRobotsTxt | boolean | true | Honour robots.txt disallow rules (crawl-delay is not applied; control pacing with maxConcurrency). |
chunkStrategy | enum | heading-recursive | heading-recursive (split on headings, then recursively on paragraphs/sentences), recursive (ignore headings), or page (one chunk per page, no splitting). |
chunkSize | integer | 512 | Target chunk size, in tokens of the selected tokenizer. |
chunkOverlap | integer | 64 | Tokens of the previous chunk repeated at the start of the next one. Must be smaller than chunkSize. |
minChunkChars | integer | 120 | Chunks shorter than this (nav leftovers, empty sections) are dropped. |
tokenizer | enum | cl100k_base | cl100k_base (matches text-embedding-3-*/ada-002) or o200k_base. |
outputFormat | enum | markdown | markdown (keeps headings, lists, code fences) or text. |
includePageMetadata | boolean | true | Include per-page metadata (description, author, publishedAt, modifiedAt) on every chunk row. |
proxyConfiguration | object | off | Optional — only needed if the target site rate-limits datacenter traffic. |
Output
Each dataset row is one chunk (or one diagnostic skipped row for a page that produced none). Example row from a production run on docs.python.org (test/production-sample.json; text and description abridged here):
{"chunkId": "doc_9d6548fc_0000","url": "https://docs.python.org/3/tutorial/introduction.html","canonicalUrl": "https://docs.python.org/3/tutorial/introduction.html","pageTitle": "3. An Informal Introduction to Python","headingPath": [],"chunkIndex": 0,"totalChunksForPage": 13,"text": "In the following examples, input and output are distinguished by the presence or absence of prompts (>>> and …): to repeat the example, you must type everything after the prompt...","tokenCount": 399,"charCount": 1816,"overlapTokensWithPrevious": 0,"startCharOffset": 0,"endCharOffset": 1967,"contentHash": "b9176f2f827b1101","language": "en","pageMetadata": {"description": "In the following examples, input and output are distinguished by the presence or absence of prompts...","author": null,"publishedAt": null,"modifiedAt": null},"depth": 0,"httpStatus": 200,"crawledAt": "2026-10-03T10:28:22.952Z","chunkStrategy": "heading-recursive","tokenizer": "cl100k_base","status": "ok","skipReason": null}
A page that renders its content client-side (no browser rendering, by design — see "What it does not do") instead produces a row like this, from a real production run against https://app.gitbook.com/:
{"url": "https://app.gitbook.com/","status": "skipped","skipReason": "empty_content","depth": 0,"httpStatus": 200,"crawledAt": "2026-10-03T10:33:06.050Z"}
Output fields & fill rates
Measured on a 300-row production crawl (run p2g0zPUyHJ7odzZxW, 2026-10-03, three documentation sites, source: TEST_REPORT.json → production.medium.fill_rates):
| Field | Fill rate | Notes |
|---|---|---|
chunkId, url, canonicalUrl, chunkIndex, totalChunksForPage, text, tokenCount, charCount, overlapTokensWithPrevious, startCharOffset, endCharOffset, contentHash, language, pageMetadata, pageTitle, depth, httpStatus, crawledAt, chunkStrategy, tokenizer, status | 100% | Always present on ok rows |
headingPath | 18.0% | Empty array when no markdown heading sits above the chunk; this crawl had many such chunks (0% in page mode, 92.6% on the single Python tutorial page) |
skipReason | 0% on this run | Only populated on skipped rows; this crawl produced none |
Examples of each mode (real production runs)
| Mode / input | Result |
|---|---|
heading-recursive, chunkSize: 64, chunkOverlap: 0 on one Python tutorial page | Run YMxROYMhv6SCb9sus: 81 chunk rows for that page (small chunks, so many rows) |
chunkStrategy: "page" on the same page | Run 99VDMdsXGFKObirDs: 1 row, 5,063 tokens, headingPath empty |
Client-side-rendered page (app.gitbook.com) | Run XYXPLttPDnUAtEJR6: 1 skipped row, empty_content |
| Three start URLs: a robots.txt-disallowed page, a missing page (404) and a PDF | Run 8yV7eaBUGhj86kLyR (current build) SUCCEEDED with 3 rows, no error rows and httpStatus filled on 2 of 3 (the robots-disallowed page is never fetched, so its httpStatus is null). The first row is skipped / robots_disallowed. Pages answering HTTP 4xx/5xx become skipped rows with skipReason: "http_error" ("blocked" for 403/429), are never chunked or billed, and their links are not followed — covered by a unit test (httpErrorSkipReason). The per-row skipReason of the 404 and PDF rows is not recorded in the test report; an earlier run (WBGWl2ojFr0melpqt, older build) billed a 404 page before this fix |
Missing startUrls | Rejected before the run starts with an Apify "invalid input" error (Field input.startUrls is required). Malformed URLs inside startUrls are rejected the same way by Apify's input validation |
How to use
Run via the Apify API (replace <TOKEN>):
curl
curl "https://api.apify.com/v2/acts/YOUR_USERNAME~website-rag-chunk-feed/run-sync-get-dataset-items?token=<TOKEN>" \-H "Content-Type: application/json" \-d '{"startUrls": [{ "url": "https://docs.apify.com/academy" }],"maxCrawlDepth": 1,"maxCrawlPages": 50,"chunkStrategy": "heading-recursive","chunkSize": 512,"chunkOverlap": 64}'
JavaScript
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: '<TOKEN>' });const run = await client.actor('YOUR_USERNAME/website-rag-chunk-feed').call({startUrls: [{ url: 'https://docs.apify.com/academy' }],maxCrawlDepth: 1,maxCrawlPages: 50,chunkStrategy: 'heading-recursive',chunkSize: 512,chunkOverlap: 64,});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
Python
from apify_client import ApifyClientclient = ApifyClient("<TOKEN>")run = client.actor("YOUR_USERNAME/website-rag-chunk-feed").call(run_input={"startUrls": [{"url": "https://docs.apify.com/academy"}],"maxCrawlDepth": 1,"maxCrawlPages": 50,"chunkStrategy": "heading-recursive","chunkSize": 512,"chunkOverlap": 64,"includePageMetadata": True,})items = client.dataset(run["defaultDatasetId"]).list_items().itemsprint(items)
Loading chunks into a vector DB
Use chunkId as the upsert key and skip re-embedding when contentHash hasn't changed:
for (const chunk of items) {const existing = await myVectorStore.get(chunk.chunkId);if (existing && existing.contentHash === chunk.contentHash) continue; // unchanged, skipconst embedding = await embed(chunk.text);await myVectorStore.upsert(chunk.chunkId, embedding, {text: chunk.text,url: chunk.url,headingPath: chunk.headingPath,contentHash: chunk.contentHash,});}
Pricing
Pay-per-event: one page-chunked charge per delivered chunk row (every ok row is billed), never for skipped pages/rows.
| Tier | Price per 1,000 chunk rows |
|---|---|
| FREE | $1.20 |
| BRONZE | $1.04 |
| SILVER | $0.92 |
| GOLD / PLATINUM / DIAMOND | $0.80 |
Tune chunkSize/chunkOverlap/chunkStrategy to control how many chunk rows (and therefore how much you're billed) a page produces: e.g. chunkStrategy: "page" yields exactly 1 row per page, while a smaller chunkSize yields more, smaller rows for the same content (one Python tutorial page gave 81 rows at chunkSize: 64, 1 row in page mode).
Troubleshooting
- A page yields a
skippedrow withskipReason: "empty_content"— the page renders its content with JavaScript; this Actor only fetches HTML over plain HTTP. Use a browser-based crawler for that site. - Link text shows escapes such as
[\>>>]— the HTML-to-markdown conversion keeps markdown escapes inside link text; they are harmless for embedding but visible in rawtext. skipReason: "robots_disallowed"— the page is disallowed by the site'srobots.txt. SetrespectRobotsTxt: falseonly for sites you own.skipReason: "blocked"or manyhttp_errorrows — the target is rate-limiting Apify's datacenter IPs. EnableproxyConfiguration(DATACENTERfirst, thenRESIDENTIALif still blocked).headingPathis often empty — the page has no markdown headings above that chunk (confirmed on the measured run above: 18.0% fill rate on a mixed three-site crawl, not 100%). This is expected on pages without a heading structure, not a bug.- The run hits
maxCrawlPagesbefore finishing the site — raisemaxCrawlPages/maxCrawlDepth, or narrow the crawl withincludeUrlGlobs/excludeUrlGlobsto avoid wasting the cap on irrelevant pages.
FAQ
Does this generate embeddings? No. It outputs chunked, tokenized text ready to pass to the embedding model of your choice; it never calls an embedding or LLM API itself.
Can it crawl sites that need a login? No. It only fetches publicly reachable pages; it never submits credentials, reuses cookies/tokens, or bypasses a paywall or access control.
Does it respect robots.txt?
Yes, by default (respectRobotsTxt: true), for disallow rules (crawl-delay is not applied). Turn it off only for sites you own or are explicitly allowed to crawl without restriction.
What if the crawled pages contain personal data (author names, emails published on the page)? The Actor doesn't seek out personal data — it keeps whatever the site itself already publishes, unmodified. If your target pages publish personal data, you are the data controller under GDPR for that dataset and need your own lawful basis; you can delete the dataset at any time.
Who is responsible for the target site's terms of service?
You are. Crawl sites you own or are permitted to ingest; the Actor paces requests, caps concurrency and honours robots.txt by default so the target is never degraded, but third-party ToS compliance is your responsibility.
Keywords
website content crawler rag chunks, embedding ready website scraper, rag chunk feed, website to vector db, mcp ready website crawler, docs crawler for rag, markdown chunker crawler, token aware chunking scraper, website knowledge base crawler, pinecone qdrant website ingestion, llm ready web scraper
Hashtags
#RAG #VectorDB #LLM #Embeddings #WebCrawler #Chunking #AI #LangChain #MCP #Apify #DeveloperTools #Markdown