# Blog Articles to Markdown for AI Training

**Use case:** 

Collect blog articles from a website as clean Markdown text with titles and URLs, ready for AI fine-tuning datasets, summaries or newsletters. Boilerplate removed, chunks and token counts included. Only crawl content you are allowed to use.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://docs.apify.com/"
    }
  ],
  "maxPages": 3,
  "maxDepth": 3,
  "sameDomain": true,
  "chunkSize": 500,
  "chunkOverlap": 0,
  "tokenizer": "o200k_base",
  "includeLinks": false,
  "includeTables": true,
  "includeChunks": true,
  "respectRobotsTxt": true,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "link"
  },
  "status": {
    "label": "Status"
  },
  "title": {
    "label": "Title"
  },
  "description": {
    "label": "Description"
  },
  "wordCount": {
    "label": "Words",
    "format": "number"
  },
  "tokenCountEstimate": {
    "label": "Tokens",
    "format": "number"
  },
  "chunkCount": {
    "label": "Chunks",
    "format": "number"
  },
  "depth": {
    "label": "Depth",
    "format": "number"
  },
  "markdown": {
    "label": "Markdown"
  }
}
```

## How it works

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

The Website to Markdown for RAG – Chunks + Tokens, $1.50/1k Actor is ready to run with the inputs already set for "Blog Articles to Markdown for AI Training". [Sign up or log in](https://console.apify.com/create-task-from-example/keBvcLMIbgJhxydZ5) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Blog Articles to Markdown for AI Training" task

The Website to Markdown for RAG – Chunks + Tokens, $1.50/1k Actor will start running based on the input automatically. You can also change all the input fields, like start urls or sitemap urls, max pages, and more, to match your specific use case.

### 3. Receive the "Blog Articles to Markdown for AI Training" 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, status, title, 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 "Blog Articles to Markdown for AI Training" task via API](https://apify.com/fast_data_asap/website-to-llm-markdown.md).

## About this Actor

This example demonstrates how to use [Website to Markdown for RAG – Chunks + Tokens, $1.50/1k](https://apify.com/fast_data_asap/website-to-llm-markdown.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/fast_data_asap/website-to-llm-markdown.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/fast_data_asap/website-to-llm-markdown.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`).
