URL to Markdown - Clean Page Text for AI, RAG & LLMs
Pricing
$0.80 / 1,000 pages
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
13 days ago
Last modified
Categories
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.
maxCharacterstruncates long pages and flags them withtruncated: 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
| Field | Description |
|---|---|
markdown | Page content as Markdown |
text | Plain text, if includeText is on |
title, description, author, siteName, language, publishedTime | Page metadata when available |
wordCount, truncated | Size of the extracted content |
url, finalUrl, statusCode, fetchedAt | Request details |
ok, error | Whether conversion succeeded, and why not |
Input options
| Option | Default | Notes |
|---|---|---|
urls | required | Pages to convert |
mainContentOnly | true | Readability extraction; off converts the whole <body> |
includeLinks | true | Keep hyperlinks (absolute URLs) |
includeImages | false | Keep image references |
includeText | false | Also return plain text |
maxCharacters | 0 | Truncate Markdown above this length (0 = no limit) |
maxConcurrency | 8 | Parallel 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.