LLM-Ready Web Extractor — HTML & PDF to Markdown
Pricing
from $1.80 / 1,000 extracted documents
LLM-Ready Web Extractor — HTML & PDF to Markdown
Extract public static HTML and text-layer PDFs into Markdown, structured JSON or character-bounded chunks. One row per successful document with source URL and metadata. Includes a ready-to-run PDF example. USD 0.0018 per result row. No source API key; no OCR or JavaScript rendering.
Pricing
from $1.80 / 1,000 extracted documents
Rating
0.0
(0)
Developer
Lilambd Crossing
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
4 days ago
Last modified
Categories
Features
Share
LLM-Ready Web Extractor
Turn public static HTML/XHTML and text-layer PDFs into Markdown, structured JSON or text chunks for retrieval. Each successfully extracted document produces one dataset row with its source URL and metadata.
Try it in Apify Console
- Open LLM-Ready Web Extractor and open its input editor. The Actor uses paid per-result pricing.
- Use the input below. It is the same one-page W3C PDF used by the default Console example.
- Start the run, then open its Dataset to view or export the result. Check that rows were produced; a successful run can still contain zero results.
{"urls": ["https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"],"maxPages": 1,"format": "markdown"}
Actual output example
This result comes from the same public PDF in a verified run. Only the variable durationMs field is omitted here.
{"url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf","canonicalUrl": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf","title": "dummy.pdf","language": null,"headings": [],"tables": [],"metadata": { "contentType": "application/pdf", "pageCount": 1 },"markdown": "Dummy PDF file"}
Pricing
USD 0.0018 per successfully extracted document row written to the default dataset, equivalent to USD 1.80 per 1,000 rows. One document is one row in all three output formats; a chunks array stays inside that row. Failed URLs do not create result rows. Platform usage or account charges may apply separately; review Apify's run estimate and pricing for your account.
Input
Supply exactly one of urls or query. The Console's prefilled PDF is an example, not an implicit URL used when the runtime input is empty. API callers must send the example JSON explicitly; a POST without URLs or a query is invalid.
| Field | Default | Behavior |
|---|---|---|
urls | None | 1–20 public HTTP(S) URLs. Only the supplied URLs are attempted; there is no recursive link crawling. |
query | None | Search document titles in the public RFC Editor index. Every query word must occur in the title. This is not general web search. Up to 200 characters. |
maxPages | 5 | Maximum distinct URLs to attempt, including failures. Range 1–20; the prefilled PDF example uses 1. |
format | markdown | markdown, json or chunks, as described below. |
chunkLength | 1200 | Maximum characters per chunk, not tokens. Range 200–5000. Used only by chunks. |
For chunks, change only the output settings in the same PDF example:
{"urls": ["https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"],"maxPages": 1,"format": "chunks","chunkLength": 500}
Output and failures
All formats retain url, canonicalUrl, title, language, metadata and durationMs where available.
markdown: top-levelmarkdown,headingsandtables.json:documentcontainsmarkdown,headingsandtables.chunks: top-levelchunksis an array of Markdown text segments;headingsandtablesremain top-level.
HTML tables expand row and column spans. PDF metadata includes the page count; PDF headings are inferred from text. Language and other metadata can be absent or null.
In normal batch runs, failed URLs and their error codes are saved under FAILURES in the run's default key-value store. A run with no extracted rows has no useful dataset output, even if its status is SUCCEEDED.
Scope and limits
The HTTP crawler checks robots.txt before requests and redirects and skips recognizable login gates. It does not render JavaScript or use a browser. Use public documents you have permission to process. Private/internal addresses, URLs with credentials and unsupported ports are rejected.
Text-layer PDFs of up to 50 pages are supported; larger PDFs are rejected. OCR, scanned-image text, PDF table reconstruction, authenticated pages and access-control bypass are outside the current scope. Results depend on the source markup and accessible text. Extraction does not generate embeddings or guarantee an answer from an LLM.
Local development
Requires Node.js 24 and npm. From this directory:
npm cinpx --no-install apify validate-schema .actor/input_schema.jsonnpx --no-install apify run --no-purge --input-file samples/input.jsonnpm run checknpm test
Local rows go to the default dataset. Use a fresh APIFY_LOCAL_STORAGE_DIR for independent runs.
Standby and MCP
The implementation includes an MCP Streamable HTTP endpoint at /mcp and the extract_web_pages tool. For local development, set LOCAL_STANDBY_PORT=19146 and run npm start; the server binds to loopback. GET /health reports readiness. Tool calls return {rows, failures} directly rather than writing batch dataset rows. Cloud MCP charging and persistence have not been verified here; the pricing and Dataset instructions above describe normal batch runs. Use the batch workflow for the documented example.