Go to example tasks

Convert documentation pages to Markdown for RAG

Prepare documentation pages for a vector database. The task reads each page and returns its main content as Markdown with headings, tables and code blocks, plus the heading outline for chunking, a content hash that shows when a page changed, and an estimated token count. The example input uses MDN and the Python tutorial.

Try for free
URL to Markdown API - Web Pages to Clean Text for LLMs
URL to Markdown API - Web Pages to Clean Text for LLMsrocketyard/web-page-to-markdown
URL
Title
Site name
Language
+4 fields
Text
Number
Boolean
List
Object

Input

Start URLs(required)
url:https://developer.mozilla.org/en-US/docs/Web/HTTP/Overview+1
Output formats:markdown
Max results:10

Output fields

URL
Title
Site name
Language
Word count
Token estimate
Published at
Description

How it works

Sign up on Apify or log in

The URL to Markdown API - Web Pages to Clean Text for LLMs Actor is ready to run with the inputs already set for "Convert documentation pages to Markdown for RAG". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Convert documentation pages to Markdown for RAG" task

The URL to Markdown API - Web Pages to Clean Text for LLMs Actor will start running based on the input automatically. You can also change all the input fields, like start urls, output formats, and more, to match your specific use case.

Receive the "Convert documentation pages to 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, site name, and more.

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 documentation pages to Markdown for RAG" task via API.

Image

Integrate "Convert documentation pages to Markdown for RAG" into your workflow

Connect "Convert documentation pages to Markdown for RAG" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

Compare the contentHash field between runs of the documentation to Markdown for RAG task. It is a SHA-256 hash of the main text, so an unchanged hash means unchanged content.

No. The documentation to Markdown for RAG task returns one record per page, with a headings field listing each heading and its level, so you can chunk by section in your own pipeline.

The documentation to Markdown for RAG task asks for Markdown only through outputFormats, and formats left out are null. Add "text" or "html" to outputFormats to get them too.