URL to Markdown - Clean Page Text for AI, RAG & LLMs avatar

URL to Markdown - Clean Page Text for AI, RAG & LLMs

Pricing

$0.80 / 1,000 pages

Go to Apify Store
URL to Markdown - Clean Page Text for AI, RAG & LLMs

URL to Markdown - Clean Page Text for AI, RAG & LLMs

Turn any list of web pages into clean Markdown, plain text and metadata for AI agents, RAG pipelines and LLM prompts. Main-content extraction removes menus and ads. Obeys robots.txt. Pay only per page converted.

Pricing

$0.80 / 1,000 pages

Rating

0.0

(0)

Developer

Conor Wilson

Conor Wilson

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 days ago

Last modified

Share

URL to Markdown

Turn any list of web pages into clean Markdown (plus optional plain text) with title, description, author, language and word count. Built for AI agents, RAG pipelines, LLM prompts and knowledge bases.

$0.80 per 1,000 pages. Pages that fail, are blocked or are disallowed by robots.txt are returned with the reason and never charged.

Why this one

  • Main-content extraction. A readability algorithm removes menus, cookie bars, footers and sidebars, so you pay for fewer LLM tokens. Switch it off to convert the whole page.
  • Clean, consistent Markdown. ATX headings, fenced code blocks, absolute links, optional images, collapsed whitespace.
  • Cheap and fast. Plain HTTP fetching with no browser, so runs finish in seconds.
  • Token control. maxCharacters truncates long pages and flags them with truncated: true.
  • Respectful by design. Obeys robots.txt, identifies itself honestly, and never bypasses logins, paywalls or bot protection.

Quick start

{
"urls": [{ "url": "https://en.wikipedia.org/wiki/Markdown" }, { "url": "https://docs.apify.com/platform/actors" }],
"mainContentOnly": true,
"includeLinks": true,
"maxCharacters": 20000
}

Call it from code (one row per page comes back):

curl -X POST "https://api.apify.com/v2/acts/ennobling_spray~url-to-markdown/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"urls":[{"url":"https://en.wikipedia.org/wiki/Markdown"}]}'

Output

FieldDescription
markdownPage content as Markdown
textPlain text, if includeText is on
title, description, author, siteName, language, publishedTimePage metadata when available
wordCount, truncatedSize of the extracted content
url, finalUrl, statusCode, fetchedAtRequest details
ok, errorWhether conversion succeeded, and why not

Input options

OptionDefaultNotes
urlsrequiredPages to convert
mainContentOnlytrueReadability extraction; off converts the whole <body>
includeLinkstrueKeep hyperlinks (absolute URLs)
includeImagesfalseKeep image references
includeTextfalseAlso return plain text
maxCharacters0Truncate Markdown above this length (0 = no limit)
maxConcurrency8Parallel requests; a per-site pace of about 4 requests per second always applies

Limits and good use

  • JavaScript-only pages (content rendered entirely in the browser) may come back short. Most news, docs, blogs and reference sites work well.
  • PDFs are not converted here. Use PDF to Text from the same author.
  • The actor fetches only what robots.txt allows for its user agent WilsDataTools. Disallowed or bot-protected pages are reported, not bypassed.
  • You are responsible for having the right to use the content you convert, for example under the site's terms or a licence.

Pricing

Pay per event: one event per page successfully converted. Set a maximum cost per run to cap spend.