# Convert Bulk URLs to Clean LLM-Ready Markdown for RAG

**Use case:** 

Turn a list of web page URLs into clean, LLM-ready Markdown in one run for RAG pipelines, embeddings, and AI agents. Handles Cloudflare, DataDome, Akamai, and CAPTCHAs automatically with no proxy setup. Deduplicates URLs, exports JSON, CSV, or Excel, and costs $0.40 per 1,000 successful pages—failed fetches are never charged.

## Input

```json
{
  "startUrls": [
    "https://apify.com",
    "https://docs.apify.com/platform/actors",
    "https://en.wikipedia.org/wiki/Retrieval-augmented_generation"
  ],
  "jsRender": false,
  "includeMetadata": false,
  "formats": [
    "markdown"
  ],
  "deliverMode": "perPost"
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "link"
  },
  "fetch.loadedUrl": {
    "label": "Loaded URL",
    "format": "link"
  },
  "fetch.loadedTime": {
    "label": "Loaded Time",
    "format": "date"
  },
  "fetch.httpStatusCode": {
    "label": "HTTP Status",
    "format": "number"
  },
  "fetch.contentLengthBytes": {
    "label": "Content Length",
    "format": "number"
  },
  "fetch.contentType": {
    "label": "Content Type",
    "format": "text"
  },
  "metadata.canonicalUrl": {
    "label": "Canonical URL",
    "format": "link"
  },
  "metadata.title": {
    "label": "Title",
    "format": "text"
  },
  "metadata.description": {
    "label": "Description",
    "format": "text"
  },
  "metadata.author": {
    "label": "Author",
    "format": "text"
  },
  "metadata.keywords": {
    "label": "Keywords",
    "format": "text"
  },
  "metadata.languageCode": {
    "label": "Language",
    "format": "text"
  },
  "metadata.jsonLd": {
    "label": "JSON-LD",
    "format": "object"
  },
  "metadata.headers": {
    "label": "Headers",
    "format": "object"
  },
  "markdown": {
    "label": "Markdown",
    "format": "text"
  },
  "html": {
    "label": "HTML",
    "format": "text"
  },
  "text": {
    "label": "Text",
    "format": "text"
  },
  "links": {
    "label": "Links",
    "format": "array"
  },
  "raw": {
    "label": "Raw",
    "format": "text"
  }
}
```

## How it works

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

The Web Unblocker & URL to Markdown: Cloudflare Bypass, PDF & Bulk Actor is ready to run with the inputs already set for "Convert Bulk URLs to Clean LLM-Ready Markdown for RAG". [Sign up or log in](https://console.apify.com/create-task-from-example/E2o6V4VNvy7SNxnfe) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Convert Bulk URLs to Clean LLM-Ready Markdown for RAG" task

The Web Unblocker & URL to Markdown: Cloudflare Bypass, PDF & Bulk Actor will start running based on the input automatically. You can also change all the input fields, like URLs, render javascript, and more, to match your specific use case.

### 3. Receive the "Convert Bulk URLs to Clean LLM-Ready 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, loaded url, loaded time, 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 Bulk URLs to Clean LLM-Ready Markdown for RAG" task via API](https://apify.com/epctex/web-fetch.md).

## FAQ

### How many URLs can I convert to Markdown in a single run?

Paste as many HTTP or HTTPS URLs as needed into startUrls. Duplicate URLs are automatically fetched once, and every loaded page is saved as one clean Markdown item in the dataset.

### How much does bulk URL to Markdown conversion cost?

Standard conversion costs $0.40 per 1,000 successful pages ($0.0004/URL), discounting down to $0.35/1K on Diamond. There are no proxy, start, or dataset fees, and failed fetches are free.

### Does it work on websites protected by Cloudflare or bot blocks?

Yes. Cloudflare, DataDome, Akamai, PerimeterX, Imperva, AWS WAF, and CAPTCHAs are handled automatically on our side at the same $0.40/1K flat rate with no proxy setup.

### Why is Markdown better than raw HTML for RAG and LLMs?

Markdown keeps headings, lists, and links while stripping HTML boilerplate, scripts, and styling—cutting prompt and embedding token usage while giving LLMs cleaner document structure.

### Can I export the Markdown dataset for LangChain or LlamaIndex?

Yes. Export results as JSON, CSV, Excel, or XML from Apify Console, or pull items directly via the Apify API, Python/Node.js clients, LangChain, LlamaIndex, Make, or n8n.

### What happens if some URLs in my batch fail or are invalid?

Invalid URLs are skipped with a warning and not charged. Pages that fail to load are logged as errors, omitted from the dataset, and never billed.

## About this Actor

This example demonstrates how to use [Web Unblocker & URL to Markdown: Cloudflare Bypass, PDF & Bulk](https://apify.com/epctex/web-fetch.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/epctex/web-fetch.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/epctex/web-fetch.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`).
