# Bulk Webpages to Clean LLM Markdown Extractor

**Use case:** 

Convert a fixed list of public article, blog, or documentation URLs into clean GitHub-Flavored Markdown without link following (maxDepth: 0) — extracts titles, authors, publish dates, heading outlines, GFM tables, fenced code blocks, and token-budgeted RAG chunks at 256MB RAM. $0 start, $0.001/page.

## Input

```json
{
  "startUrls": [
    "https://docs.python.org/3/tutorial/introduction.html",
    "https://docs.python.org/3/tutorial/controlflow.html"
  ],
  "discoverLlmsTxt": false,
  "discoverSitemap": false,
  "crawlLinks": false,
  "samePathPrefixOnly": false,
  "includeUrlPatterns": [],
  "excludeUrlPatterns": [],
  "maxPages": 10,
  "maxDepth": 0,
  "mainContentOnly": true,
  "includeChunks": true,
  "chunkMaxChars": 1500,
  "chunkMaxTokens": 400,
  "chunkOverlapChars": 150,
  "maxMarkdownChars": 50000,
  "concurrency": 4,
  "requestTimeoutSecs": 12,
  "maxResponseSizeKb": 1024
}
```

## Output

```json
{
  "title": {
    "label": "Title",
    "format": "string"
  },
  "domain": {
    "label": "Domain",
    "format": "string"
  },
  "discoverySource": {
    "label": "Discovery Source",
    "format": "string"
  },
  "depth": {
    "label": "Depth",
    "format": "integer"
  },
  "contentFormat": {
    "label": "Format",
    "format": "string"
  },
  "wordCount": {
    "label": "Words",
    "format": "integer"
  },
  "estimatedTokens": {
    "label": "Est. Tokens",
    "format": "integer"
  },
  "chunkCount": {
    "label": "RAG Chunks",
    "format": "integer"
  },
  "headingsCount": {
    "label": "Headings",
    "format": "integer"
  },
  "url": {
    "label": "Page URL",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Website to Markdown Crawler: Docs, Sitemaps & LLM RAG Actor is ready to run with the inputs already set for "Bulk Webpages to Clean LLM Markdown Extractor". [Sign up or log in](https://console.apify.com/create-task-from-example/HaCBGPjjccENe528l) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Bulk Webpages to Clean LLM Markdown Extractor" task

The Website to Markdown Crawler: Docs, Sitemaps & LLM RAG Actor will start running based on the input automatically. You can also change all the input fields, like start urls, discover llms.txt, and more, to match your specific use case.

### 3. Receive the "Bulk Webpages to Clean LLM Markdown Extractor" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as title, domain, discovery source, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Bulk Webpages to Clean LLM Markdown Extractor" task via API](https://apify.com/salmon_chaparral/website-markdown-rag-crawler.md).

## FAQ

### How do I convert only my exact seed URLs without crawling links?

Set maxDepth to 0 and disable discoverLlmsTxt, discoverSitemap, and crawlLinks so only the exact URLs in startUrls are fetched.

### Are code blocks and HTML tables preserved in the Markdown output?

Yes. Fenced code blocks retain language hints and HTML tables are converted cleanly into GitHub-Flavored Markdown tables.

### What metadata fields are included alongside the Markdown text?

Each record includes title, metaDescription, canonicalUrl, language, author, publishedAt, headingsOutline, wordCount, and estimatedTokens.

## About this Actor

This example demonstrates how to use [Website to Markdown Crawler: Docs, Sitemaps & LLM RAG](https://apify.com/salmon_chaparral/website-markdown-rag-crawler.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/salmon_chaparral/website-markdown-rag-crawler.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/salmon_chaparral/website-markdown-rag-crawler.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
