# Website Crawler to Markdown for RAG

**Use case:** 

Use a website crawler to convert public pages to clean Markdown for RAG, AI agents, search indexes, and knowledge-base ingestion.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://docs.apify.com"
    }
  ],
  "maxCrawlPages": 10,
  "maxCrawlDepth": 1,
  "outputFormat": "markdown",
  "includeUrlGlobs": [],
  "excludeUrlGlobs": [],
  "useSitemap": false,
  "maxConcurrency": 5,
  "pageTimeout": 30
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "text"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "wordCount": {
    "label": "Words",
    "format": "number"
  },
  "depth": {
    "label": "Depth",
    "format": "number"
  },
  "statusCode": {
    "label": "Status",
    "format": "number"
  }
}
```

## About this Actor

This example demonstrates how to use [Website Crawler API — Markdown for RAG](https://apify.com/tugelbay/website-content-crawler) with a specific input configuration. Visit the [Actor detail page](https://apify.com/tugelbay/website-content-crawler) to learn more, explore other use cases, and run it yourself.