Web Page to Markdown for LLMs: URLs to Clean Text & Metadata avatar

Web Page to Markdown for LLMs: URLs to Clean Text & Metadata

Pricing

from $0.70 / 1,000 page converteds

Go to Apify Store
Web Page to Markdown for LLMs: URLs to Clean Text & Metadata

Web Page to Markdown for LLMs: URLs to Clean Text & Metadata

Turn web page URLs into clean Markdown, plain text and metadata (title, description, language, headings, links, word count, token estimate) for LLM and RAG use. Optional same-site crawl. robots.txt honoured. $1.00 per 1,000 pages + $0.001/run.

Pricing

from $0.70 / 1,000 page converteds

Rating

0.0

(0)

Developer

Tagada Data

Tagada Data

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Features

Limited permissions

Share

Paste a list of web page URLs and get one row per page with clean Markdown, plain text and the page's metadata, ready to feed a language model, a RAG index or a vector database. Menus, headers, footers, sidebars and cookie banners are dropped; headings, lists, tables, code blocks and links are kept. Each row also carries the title, description, canonical URL, language, author, publish date, the page's headings and links, a word count and a token estimate. Optionally follow same-site links a few levels deep to convert a whole docs section or blog.

$1.00 per 1,000 pages on Free ($0.70 on Gold), plus $0.001 per run. Platform usage is included. Pages over 1 MB of HTML add $0.001 per extra started MB (most pages are far below). Pages that could not be converted are free. No API key, no login, no proxy needed.

What you get

One flat row per page.

FieldWhat it is
urlThe page URL you gave (or the crawl found)
finalUrlWhere the page ended after redirects
statusOK for a converted page; otherwise why it was not converted (see below)
markdownThe page as clean Markdown: headings, paragraphs, lists, GitHub-style tables, fenced code, links
textThe same content as plain text, no Markdown syntax
titleThe page's <title>
headlineThe page's main heading (its <h1>), else the title
descriptionThe meta description
canonicalUrlThe canonical URL the page declares
langThe page's language code (en, fr, ja...)
author, siteName, publishedTimeFrom the page's meta tags, when present
imageUrlThe page's preview image (og:image)
metaRobotsThe page's robots meta tag, if any (noindex, nofollow...)
headingsThe headings of the converted content: [{level, text}]
linksThe links inside the converted content: [{url, text}], up to 300
linkCountHow many distinct links the converted content holds
wordCount, charCountSize of the plain text (CJK characters count as one word each)
tokenEstimateAbout how many LLM tokens the Markdown is (about 4 characters per token, 1 per CJK character; an estimate, not a tokenizer count)
extractionmain-content, full-page, full-page-fallback (no clear main block was found, so the page minus its menus and footers was kept) or plain-text
httpStatus, contentType, htmlBytes, truncatedThe HTTP answer, its type, the HTML size, and true if the page was over 8 MB and cut
startUrl, depthFor crawls: the start URL that led here and how many links away it is
messageWhy a page was not converted, or a note
fetchedAtWhen the page was fetched (ISO 8601)

Who uses it

  • AI and RAG builders who need a list of pages (docs, help centers, blogs, Wikipedia) as clean Markdown chunks with titles and headings, without writing a scraper.
  • Agents and automations (n8n, Make, Zapier, LangChain, LlamaIndex) that need "read this URL" as one cheap API call with a predictable row.
  • Content and SEO teams who want the text, headings, word count and links of many pages in one table.

Examples

Prefill (the canary run): two pages, main content only.

{"startUrls":["https://en.wikipedia.org/wiki/Markdown","https://docs.python.org/3/tutorial/introduction.html"]}

Convert a documentation section: the start page plus the pages it links to under the same folder, up to 50 pages.

{"startUrls":["https://docs.python.org/3/tutorial/index.html"],"maxCrawlDepth":1,"maxPagesPerStartUrl":50}

Whole page instead of the main content, with images kept in the Markdown:

{"startUrls":["https://www.gov.uk/browse/benefits"],"extractMainContent":false,"includeImages":true}

How it reads pages

  • Plain HTTP fetch, no JavaScript. The actor reads the HTML the site serves. Pages that build their text in the browser (single-page apps that serve an empty shell) come back with status JS_SHELL and are not charged. Most articles, docs, blogs, news, Wikipedia and government pages are served as HTML and convert fine.
  • robots.txt is honoured for every page. Each site's robots.txt is read once per run (the * group, or a group addressed to WebPageToMarkdown). A disallowed page is reported as ROBOTS_DISALLOWED; a site whose robots.txt says Content-Signal: ai-input=no is reported as AI_INPUT_RESERVED; neither is fetched nor charged. A site whose robots.txt answers with a server error is treated as closed (ROBOTS_UNREACHABLE), as the robots.txt standard asks.
  • Polite pace. At most 2 requests at a time and 4 per second to any one site, slower when robots.txt sets a Crawl-delay (honoured up to 5 s). Requests identify the actor in their User-Agent.
  • Main-content extraction scores the page's text blocks (paragraph length, commas, link density, class names) to find the article, the way browser reader modes do, and keeps sections split across several blocks together. Turn Main content only off to convert the whole body.
  • Character sets are read from the server header or the page's meta tag, so pages in any encoding come out as UTF-8.
  • Only public http/https addresses are fetched; private and internal addresses are refused (BLOCKED_ADDRESS).

Results, zeros and errors

Every page you list gets a row. Rows with a status other than OK are free and say why in message:

StatusMeaning
JS_SHELLThe page needs JavaScript to show its text; the served HTML is an empty app shell
EMPTY_PAGEThe page has no readable text
ROBOTS_DISALLOWED, AI_INPUT_RESERVED, ROBOTS_UNREACHABLEThe site's robots.txt does not allow it (see above)
HTTP_ERRORThe site answered with an error (httpStatus says which: 404, 403, 500...)
UNSUPPORTED_CONTENT_TYPENot a web page (PDF, image, JSON, ZIP...)
TIMEOUT, NETWORK_ERROR, DNS_ERROR, TLS_ERRORThe site did not answer properly
INVALID_URL, BLOCKED_ADDRESS, TOO_MANY_REDIRECTS, DUPLICATEThe URL could not or should not be fetched

During a crawl, links that robots.txt disallows and pages already converted in the run are skipped silently (counted in the run's status message).

The run ends with a status such as DELIVERED: 98 page(s) converted to Markdown. Not converted, not charged: 1 HTTP error (403 x1), 1 JavaScript-only. A run where nothing could be converted because sites refused or did not answer ends FAILED; a run where every page got a definite answer (JS shell, 404, robots.txt) ends SUCCEEDED with NOTHING_TO_CONVERT. Invalid input ends right away with an Input error: ... message and only the $0.001 start charge.

Pricing

  • $0.001 per run (start).
  • $1.00 per 1,000 converted pages on Free, with lower prices on higher Apify plans ($0.70 per 1,000 on Gold). Platform usage is included.
  • Large pages: a page with more than 1 MB of HTML adds $0.001 per extra started MB on Free ($0.0007 on Gold). A 1.5 MB page costs $0.002, a 2.5 MB page $0.003. Typical articles and docs pages are well under 1 MB.
  • Free: every page that was not converted (JS shells, empty pages, robots.txt, HTTP errors, timeouts, non-HTML files, duplicates).

Set a maximum charge per run in Apify if you want a hard ceiling; the actor checks it before fetching each page, stops at it and says so in the status.

FAQ

Does it run JavaScript? No. It is a fast HTTP fetch. Pages that only render in a browser are flagged JS_SHELL and cost nothing, so you know which URLs need a browser-based tool.

Can it crawl a whole site? It follows same-site links up to 5 levels deep, up to 1,000 pages per start URL and 10,000 per run. With Crawl only under the start URL's folder on, a crawl from /docs/guide/ stays in /docs/guide/.

How are tokens counted? tokenEstimate is an estimate (about 4 characters per token for Latin scripts, 1 token per Chinese or Japanese character), good for sizing chunks and budgets. Use your model's tokenizer for exact counts.

Why was a page skipped by robots.txt? The site asked crawlers not to fetch that path. The actor respects that for every URL, including the ones you list.

Can I convert PDFs? Not with this actor: PDF links come back as UNSUPPORTED_CONTENT_TYPE (free).

Data use

The actor fetches only the public pages you list (and, if you ask, same-site pages they link to), follows each site's robots.txt and identifies itself in its User-Agent. You are responsible for how you use the content: respect each site's terms and copyright, and do not use it to collect personal data.