If you are building a RAG pipeline or an AI agent that needs clean Markdown from documentation, blog posts, or Wikipedia pages, you don't always need a recurring monthly API subscription just to test or run occasional batches.
We built publicrecords/url-to-markdown on Apify as a pay-per-page alternative ($0.0012 per converted page + $0.002 Actor start on the FREE tier, with failed or unreachable pages not charged).
Quick try in the browser
You can run it directly with two prefilled test URLs in the Apify Console before writing any code.
Node.js (apify-client)
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('publicrecords/url-to-markdown').call({
urls: [
'https://en.wikipedia.org/wiki/Web_scraping',
'https://quotes.toscrape.com/',
],
contentScope: 'main',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0].title, items[0].markdown.slice(0, 500));
Python (apify-client)
import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("publicrecords/url-to-markdown").call(run_input={
"urls": [
"https://en.wikipedia.org/wiki/Web_scraping",
"https://quotes.toscrape.com/",
],
"contentScope": "main",
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items[0]["title"], items[0]["markdown"][:500])
REST / n8n / Make
Call run-sync-get-dataset-items from curl, an n8n HTTP Request node, or a Make HTTP module (set timeout >= 60s and store your token in credentials):
curl "https://api.apify.com/v2/acts/publicrecords~url-to-markdown/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"urls":["https://en.wikipedia.org/wiki/Web_scraping","https://quotes.toscrape.com/"],"contentScope":"main"}'
Using it with MCP
Point any MCP client at https://mcp.apify.com/?tools=publicrecords/url-to-markdown with Authorization: Bearer <APIFY_TOKEN> and pass the same JSON input.
What comes back (and one honest caveat)
Each item returns markdown, title, description, canonicalUrl, tokensEstimate, and needsJavaScript.
Caveat: This Actor uses plain HTTP rather than a headless browser, which keeps it fast and cheap for static docs, articles, and server-rendered pages. If a target is a heavy client-side SPA that renders empty HTML without JS, the output sets needsJavaScript: true so your pipeline can route only those URLs to a browser-based extractor instead of paying browser rates for every page.
Try it here: publicrecords/url-to-markdown
Top comments (0)