Turn a web page URL into clean Markdown via API
Send a URL and get back the main content of the page as clean Markdown, without navigation, cookie banners or footers. The task also returns plain text, title, description, language, word count, an estimated token count and the links on the page, ready for an LLM prompt, a RAG pipeline or an AI agent.
Input
Output fields
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 "Turn a web page URL into clean Markdown via API". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "Turn a web page URL into clean Markdown via API" 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 and max results, to match your specific use case.
Receive the "Turn a web page URL into clean Markdown via API" 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 "Turn a web page URL into clean Markdown via API" task via API.

Integrate "Turn a web page URL into clean Markdown via API" into your workflow
Connect "Turn a web page URL into clean Markdown via API" with 100+ integrations, or run it via API or MCP.
Webhook
n8n
Make
Zapier
Airbyte
Keboola
IFTTT
Hubspot
GDrive
Gmail
Apify MCP
GitHub
Slack
LangChain
LlamaIndex
Flowise
Pinecone
OpenAI
Mastra
Clay
Send the URL to Markdown API task's input in a POST to https://api.apify.com/v2/acts/rocketyard~web-page-to-markdown/run-sync-get-dataset-items with your Apify API token. The response has one JSON record per page.
The URL to Markdown API task fetches pages over HTTP without a browser. A page that builds its content with JavaScript, or sits behind bot protection, returns a free error item saying why.
The tokenEstimate field of the URL to Markdown API task is a rough count: the Markdown length divided by 4. Use your model's own tokenizer when you need an exact number.