Tools / Website to RAG Chunks: LLM-Ready Text for Vector Databases

Website to RAG Chunks: LLM-Ready Text for Vector Databases

Crawl a website or docs site (sitemap + internal links) and get clean, heading-aware Markdown chunks ready for embeddings. Input: startUrls. Output (JSON/CSV): one row per item with url, title, headingPath, chunkIndex, totalChunks, tokenEstimate, text, chunkId.

Run it on Apify Store →

What it's for

Example input

{
 "startUrls": [
  "https://docs.apify.com/academy",
  "https://therealtour360.com",
  "not a url ::"
 ],
 "maxPagesPerSite": 6,
 "chunkSize": 400
}

Example output

{
  "chunkId": "6ccb6c366c25a517e75b",
  "url": "https://docs.apify.com/academy",
  "title": "Apify Academy | Academy | Apify Documentation",
  "language": "en",
  "headingPath": [],
  "chunkIndex": 0,
  "totalChunks": 1,
  "tokenEstimate": 300,
  "charCount": 1200,
  "contentHash": "a9e5b1509ae7255d",
  "crawledAt": "2026-10-12T04:44:03.470Z"
}

Input reference

FieldTypeNotes
startUrls requiredarraySite homepages, docs roots or single pages.
crawlbooleanFollow the sitemap and internal links.
maxPagesPerSiteintegerMax pages per site
useSitemapbooleanUse sitemap.xml
chunkSizeinteger~4 characters per token.
chunkOverlapintegerChunk overlap (tokens)
minChunkTokensintegerSmaller pieces are merged into the previous chunk.
mainContentOnlybooleanStrip menus, footers and sidebars.
includeLinksbooleanKeep links
respectRobotsbooleanRespect robots.txt
maxConcurrencyintegerMax concurrent sites

Pricing

Pay per event: Page crawled and chunked $0.0015. Plus Apify's small per-run start fee. Apify's free plan includes monthly credit to try it.

How to run

  1. Open the Store page and click Try for free.
  2. Fill in the input (or paste the example JSON in the JSON tab).
  3. Click Start, then export results as CSV, Excel or JSON, or call it via the Apify API.
  4. Optional: add a Schedule and a webhook/Slack/email integration for ongoing monitoring.

Open Website to RAG Chunks on Apify →