Go to example tasks

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.

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://en.wikipedia.org/wiki/Web_scraping+1
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 "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.

Image

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

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

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.