Website to Markdown API
Pricing
from $0.80 / 1,000 pages
Website to Markdown API
Website to Markdown API: convert any web page to clean Markdown for LLMs, RAG and AI agents, with JavaScript rendering. $0.80 per 1,000 pages, pay-per-page, failed items never charged. Callable from any MCP client (Claude, Cursor, ChatGPT).
Pricing
from $0.80 / 1,000 pages
Rating
0.0
(0)
Developer
Api Harbor
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
5 days ago
Last modified
Categories
Features
Share
Convert any web page to clean Markdown for LLMs, RAG pipelines and AI agents. Give it URLs, get the title, meta description, language and main content as Markdown, with navigation and clutter left out. JavaScript pages are rendered in a real browser when needed. Use it as a URL-to-Markdown API at $0.80 per 1,000 pages.
Price promise: $0.80 per 1,000 pages, pay-per-page. Rows that fail come back with an error field and are never charged. No proxy fees, no extra compute to budget: the price per page is all you pay (plus $0.00005 per run start).
What does Website to Markdown do?
For each URL, it fetches the page and returns:
markdown: the page content as clean Markdown (headings, lists, links, tables)title,descriptionandlanguageempty: truewhen the page has no readable content
If the plain HTML is empty (single-page apps), the page is rendered in Chromium before conversion.
Why use this URL to Markdown converter?
- Cheap. $0.80 per 1,000 pages. Comparable Store tools cost about $1.50 per 1,000 (Web Fetch) to $2.28 per 1,000 (RAG Web Browser).
- LLM-ready. Markdown is compact, readable and token-efficient compared to raw HTML.
- Robust. Direct fetch first, residential proxy fallback when a site blocks.
- Failures are free. A page that cannot be read returns a row with an
errorfield and is never billed.
Use cases
- RAG and vector databases: feed documentation, blogs or help centers into embeddings.
- AI agents: give your agent a cheap "read this URL" tool.
- Content monitoring: store a Markdown snapshot of pages and diff them over time.
- Dataset building: collect clean text for training or evaluation.
- Research and sales copilots: let an assistant read a company's pricing or about page and summarize it.
How much does it cost to convert web pages to Markdown?
| What | Price |
|---|---|
| Run start | $0.00005 per run |
| Page converted | $0.80 per 1,000 pages (with targets: one page per distinct target page found, the home page itself not billed) |
| You get | You pay |
|---|---|
| 1,000 pages | $0.80 |
| 10,000 pages | $8 |
| 100,000 pages | $80 |
How to convert a website to Markdown
- Click Try for free.
- Paste the URLs of the pages, one per line.
- Click Start, then download your data as JSON, CSV or Excel, or read it from the API.
Each URL is converted on its own: the Actor does not follow links. List every page you need, or use targets to let it find a site's pages for you (see below).
Input
| Field | Description |
|---|---|
urls | Page URLs (bare domains are read as their home page) |
targets | Optional. Pages to find on each site, up to 10: { "name", "pattern" } (see below) |
{"urls": ["https://apify.com", "https://docs.apify.com/platform/actors"]}
Find specific pages on a site (targets)
Don't know the URL of a company's references, team or pricing page? Give each page a name and a pattern. The Actor reads the home page, collects the links it finds there and the URLs of /sitemap.xml (same site only), and picks for each target the page whose path or link text matches the pattern. When several pages match, the shortest path wins.
name: lowercase letters, digits and_, starting with a letter, up to 40 characters, unique.pattern: a regular expression (RE2 syntax), case-insensitive, up to 200 characters. Accents are ignored:referencesmatches/référencesand the link text "Nos références".- At most 10 pages are read per site. Several targets can point to the same page.
{"urls": ["agence-x.fr"],"targets": [{ "name": "references", "pattern": "referen|realisation|portfolio" },{ "name": "team", "pattern": "equipe|team|qui-sommes-nous" }]}
With targets, the home page is only read to find links: it is neither returned nor billed unless a target matches it. You pay one page per distinct target page found and converted. A target with no matching page (found: false) is free, and a site where no target is found costs nothing.
What you get back
One row per page. Fields:
| Field | Type | Description |
|---|---|---|
input | string | URL as you gave it |
url | string | Page read |
domain | string | Domain, without www. |
title | string | Page title |
description | string | Meta description |
language | string | Page language, e.g. fr-FR |
markdown | string | Main content as clean Markdown (headings, lists, links, tables) |
empty | boolean | true when the page has no readable content |
targets | array | With targets in the input only (the row then has no page-level title, description, language, markdown or empty), in the same order: name, found (boolean), and for found pages url, title and markdown (up to 20,000 characters) |
error | string | Error message, on failed rows only (never billed) |
Output example
Trimmed item from a real run:
{"url": "https://www.blogdumoderateur.com/","domain": "blogdumoderateur.com","title": "BDM","description": "Le média des pros du digital : marketing, social media, IA, SEO, product, design, tech... Suivez l'actualité du numérique, comparez les outils, découvrez les événements.","language": "fr-FR","markdown": "# Le média des pros du digital\n\n## Les derniers articles\n\n \n\nAdobe12 novembreRéservé aux membres \n\nRéglementation12 novembre \n\nRéglementation12 novembreRéservé aux membres \n\n \n\nEnfin une newsletter efficace !\n\nGagnez du temps, abonnez-vous :S'inscrire à la newsletter\n\nChaque matin, l'essentiel de l'actu, par emailActiver la quotidienne\n\n \n\n \n\nAnthropic12 novembre \n\nProductivité12 novembre \n\nOpenAI10 novembre \n\nS …","empty": false}
Fields: url, domain, title, description, language, markdown, empty, targets when you ask for target pages, and error on failed items.
Use it from AI agents (MCP)
This Actor is callable from any MCP client (Claude, Cursor, ChatGPT, VS Code) through the Apify MCP server. Your agent gets it as a tool and calls it on demand.
- MCP server URL:
https://mcp.apify.com/?actors=api_harbor/website-to-markdown - Token: your Apify API token, from Apify Console > Settings > Integrations.
Claude Desktop (claude_desktop_config.json):
{"mcpServers": {"apify": {"url": "https://mcp.apify.com/?actors=api_harbor/website-to-markdown","headers": {"Authorization": "Bearer <APIFY_TOKEN>"}}}}
Claude Code:
$claude mcp add --transport http apify "https://mcp.apify.com/?actors=api_harbor/website-to-markdown" --header "Authorization: Bearer <APIFY_TOKEN>"
Cursor (.cursor/mcp.json) or VS Code (.vscode/mcp.json, use "servers" instead of "mcpServers"):
{"mcpServers": {"apify": {"url": "https://mcp.apify.com/?actors=api_harbor/website-to-markdown","headers": {"Authorization": "Bearer <APIFY_TOKEN>"}}}}
Example prompts:
- "Read https://docs.apify.com/platform/actors and summarize it in 5 bullets."
- "Convert these 30 help-center URLs to Markdown so I can add them to my knowledge base."
- "Fetch the pricing page of example.com and extract the plans into a table."
Caching and errors
- Caching: identical requests made shortly after each other can be served from cache, so results come back faster.
- Structured errors: a page that cannot be processed still returns a row, with the input and an
errorfield explaining why. These rows are never charged, so a batch never fails silently and you never pay for a miss.
FAQ
Does it crawl the whole website? No. It converts exactly the URLs you give it. Combine it with a sitemap or link list to process a full site.
Does it handle JavaScript pages? Yes. When the HTML has no content, the page is rendered in a headless browser first.
Is it legal to scrape web pages? Reading public pages is generally allowed, but the content may be copyrighted. You are responsible for how you use it.
Can I call it from Python or an API?
Yes, with the Apify API or the apify-client package for Python or JavaScript.
Can I use it with LangChain, Make, Zapier or n8n? Yes, through Apify's integrations or a webhook at the end of each run.
Can I use it from Claude, Cursor or ChatGPT (MCP)?
Yes. Add https://mcp.apify.com/?actors=api_harbor/website-to-markdown as an MCP server with your Apify token, see Use it from AI agents (MCP). Your agent then calls it as a tool and is billed per page like any other run.
Related Actors
- Website Contact Scraper: emails, phones and social profiles from any website
- Website Technology Detector: the tech stack of any website
- YouTube Transcript Scraper: video transcripts for your LLM pipeline