# Convert Technical Docs & Websites to Clean Markdown for RAG

**Use case:** 

Crawl developer documentation, help centers, and knowledge bases into noise-free Markdown and token-counted semantic chunks for Pinecone, Weaviate, and LangChain.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://docs.apify.com/platform/actors"
    }
  ],
  "maxPages": 10,
  "followInternalLinks": false,
  "chunkSizeTokens": 500,
  "chunkOverlapTokens": 50,
  "removeSelectors": "nav, footer, header, script, style, noscript, iframe, .cookie-banner, .ads, #sidebar"
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "link"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "wordCount": {
    "label": "Words",
    "format": "number"
  },
  "estimatedTokens": {
    "label": "Est. Tokens",
    "format": "number"
  },
  "chunkCount": {
    "label": "RAG Chunks",
    "format": "number"
  },
  "markdown": {
    "label": "Markdown",
    "format": "text"
  }
}
```

## How it works

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

The Website to Markdown & RAG Context Crawler \[🎁 1,000 Free\] Actor is ready to run with the inputs already set for "Convert Technical Docs & Websites to Clean Markdown for RAG". [Sign up or log in](https://console.apify.com/create-task-from-example/dl2pVCQCWIfr05b2y) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Convert Technical Docs & Websites to Clean Markdown for RAG" task

The Website to Markdown & RAG Context Crawler \[🎁 1,000 Free\] Actor will start running based on the input automatically. You can also change all the input fields, like start urls, max pages to crawl, and more, to match your specific use case.

### 3. Receive the "Convert Technical Docs & Websites to Clean Markdown for RAG" 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 URL, title, words, 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 "Convert Technical Docs & Websites to Clean Markdown for RAG" task via API](https://apify.com/laborious_rumor/ai-web-to-markdown-rag-scraper.md).

## FAQ

### What output data does the Convert Technical Docs & Websites to Clean Markdown for task return?

The Convert Technical Docs & Websites to Clean Markdown for RAG task returns structured JSON and CSV records including verified titles, source URLs, commercial metrics, and ISO timestamps.

### Does the Convert Technical Docs & Websites to Clean Markdown for RAG task require login cookies?

No, the Convert Technical Docs & Websites to Clean Markdown for RAG task runs 100% cookie-free in the cloud without requiring session cookies or browser extensions.

### How can I automate the Convert Technical Docs & Websites to Clean Markdown for task with AI agents or Clay?

You can trigger the Convert Technical Docs & Websites to Clean Markdown for RAG task via the Apify REST API, Apify MCP server (Claude, Cursor), Clay.com, n8n, or Make.com.

## About this Actor

This example demonstrates how to use [Website to Markdown & RAG Context Crawler [🎁 1,000 Free]](https://apify.com/laborious_rumor/ai-web-to-markdown-rag-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/laborious_rumor/ai-web-to-markdown-rag-scraper.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/laborious_rumor/ai-web-to-markdown-rag-scraper.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`).
