# Convert Webpages to Markdown for AI Workflows

**Use case:** 

Turn public documentation pages into clean Markdown with links, images, word counts, and token estimates for LLM or RAG pipelines.

## Input

```json
{
  "urls": [
    "https://en.wikipedia.org/wiki/Markdown",
    "https://en.wikipedia.org/wiki/Artificial_intelligence"
  ],
  "includeImages": true,
  "includeLinks": true,
  "maxContentLength": 0,
  "requestTimeout": 30,
  "maxRetries": 2
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "link"
  },
  "title": {
    "label": "Title"
  },
  "wordCount": {
    "label": "Words"
  },
  "charCount": {
    "label": "Characters",
    "format": "number"
  },
  "tokenEstimate": {
    "label": "Est. tokens",
    "format": "number"
  },
  "success": {
    "label": "Success",
    "format": "boolean"
  },
  "extractedAt": {
    "label": "Extracted At"
  }
}
```

## About this Actor

This example demonstrates how to use [Webpage to Markdown Converter](https://apify.com/automation-lab/webpage-to-markdown-converter) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/webpage-to-markdown-converter) to learn more, explore other use cases, and run it yourself.