ContextPack — HTML to Markdown and Source-Linked Chunks
Pricing
from $20.00 / 1,000 prepared documents
ContextPack — HTML to Markdown and Source-Linked Chunks
Prepare authorized HTML for AI agents: Markdown, bounded chunks, heading paths, source ranges and SHA-256 hashes. No crawling or model API.
Pricing
from $20.00 / 1,000 prepared documents
Rating
0.0
(0)
Developer
Cristian Araujo
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
4 days ago
Last modified
Categories
Share
Prepare authorized HTML for a support agent, knowledge base or product-guide workflow. Get Markdown, bounded chunks, heading paths, SHA-256 hashes and source ranges in one dataset row per document. No model API key or remote crawling.
HTML to Markdown API for RAG and support agents
Already have HTML you are allowed to process? Convert support pages, product guides or knowledge-base exports into Markdown and source-linked chunks without operating a server. This Actor does not fetch URLs or run a model. If Markdown alone is enough, a free converter may meet your needs; the paid utility here is bounded extraction, chunk metadata, budget-aware execution and Dataset delivery in one Apify workflow.
Start with one document
- Select Try for free / Use Actor to open Apify Console. Your account balance and Apify's credit rules apply; this is a monetized Actor.
- Paste one document into
documents. Keep memory at 256 MiB, timeout 30 seconds and maximum run cost USD0.05. That budget permits two successful documents, not a twenty-document batch. - Start once. One delivered document costs USD0.02005 including the start event.
- Read the run status and
RUN_SUMMARY, then open Output / Storage → Dataset → Export → JSON. The output is a JSON array with one row per delivered document. JSON preserves nested chunk metadata. - If a timeout leaves the result uncertain, check the existing run before retrying. Do not automatically resubmit a paid job.
Developer identity verification was confirmed by Apify on 17 October 2026. The live Pricing tab is authoritative. No uptime or support response-time agreement is offered.
What is included
- Markdown preserving headings, basic lists, links, code and simple tables.
- Chunks of 400–4,000 UTF-16 code units (default 1,200), with source metadata.
- Exact-duplicate chunk markers without deleting content.
- Explicit warnings for scoped extraction, split blocks and complex table spans.
Supply documents (1–20), each with id, html, and optional source_url. The source URL is only caller-supplied metadata. The Actor never requests it. Use only content you are entitled to process. Do not include credentials or personal data.
{"documents":[{"id":"guide","html":"<h1>Guide</h1><p>Authorized content.</p>","source_url":"https://example.com/guide"}],"options":{"max_chunk_chars":1200,"remove_navigation":true,"include_links":true}}
Limits
128 KiB of UTF-8 HTML per document, 1 MiB total; 20 documents; 256 MiB memory; process watchdog 30 seconds. HTML depth 120, node count 15,000, table size 256 rows × 32 columns; 512 chunks and 1 MiB generated output per document. An invalid top-level input ends the run. Per-document extraction errors are recorded in RUN_SUMMARY and are not billable.
Pricing and predictable budgets
USD0.02 per successfully delivered HTML document, plus USD0.00005 per Actor run at the required 256MiB. Event names: document-prepared and automatic apify-actor-start. Platform usage is included. There is no extra default-Dataset-item charge. An invalid input or empty result does not create a document event, but the small start event can still apply.
Examples: one delivered document = USD0.02005; two = USD0.04005; twenty = USD0.40005. The minimum allowed run budget is USD0.03, which is budget capacity, not a minimum charge. The initial default budget of USD0.05 permits two successful documents; use USD0.41 if you intend to process twenty. The Actor stops when the next document cannot fit the remaining budget. Inspect RUN_SUMMARY.budget_limited for partial fulfillment; do not automatically retry uncertain paid jobs.
The same document price applies across available tiers. Apify Free users can use their finite platform credits under Apify's rules; these runs do not earn developer revenue. No trial, coupon or owner run is a verified external sale. No model, proxy, crawling or third-party API expense is incurred by this Actor.
Integration
Use this public Actor through Apify's HTTP API, official SDK or MCP search/call tools. Actor ID: 9c6k8uQ2TUVAMv0kX, name cris_araujo/contextpack-html-to-context. The synchronous dataset API returns the rows. RUN_SUMMARY reports per-document errors, partial fulfillment, resumed items, actual platform event prices and event debits. It never labels a run as a verified sale. Download the default Dataset as JSON for the nested chunk metadata; CSV is available through Apify but is less convenient for nested arrays.
Authentication, balance checks, event charging and delivery run on Apify. Source/output content is held in the calling run's Apify storages under its platform retention and permissions. This package does not send content to another provider.
Reliability and limitations
No browser, PDF, OCR, model inference, fact verification, copyright verification or prompt-injection filtering. Treat all input/output as untrusted data. The source HTML range points to a containing element, not an exact inverse map. CSS/JavaScript rendering is not supported. Complex layouts need review.
On restart, existing delivered document IDs and source hashes are skipped. This reduces duplicate delivery; it is not a guarantee of exactly-once charging across platform crashes. Reconcile exceptional runs with platform event and dataset records. Do not automatically resubmit a paid job after an uncertain timeout.
Programmatic quick start
Use your own Apify token in your local environment; never paste it into a chat or URL. Example using the official HTTP API and a single authorized document:
curl --fail-with-body -X POST \'https://api.apify.com/v2/acts/9c6k8uQ2TUVAMv0kX/run-sync-get-dataset-items?memory=256&timeout=30&maxTotalChargeUsd=0.05' \-H "Authorization: Bearer $APIFY_TOKEN" \-H 'Content-Type: application/json' \--data '{"documents":[{"id":"guide","source_url":"https://example.com/guide","html":"<main><h1>Guide</h1><p>Authorized content.</p></main>"}]}' \-o contextpack-result.json
The JSON array contains delivered rows. Each has markdown, source_sha256, chunks (with text, heading_path, markdown_range, source_html_range, hashes), warnings and stats. Use the run's Output/Storage tabs or API run output to read RUN_SUMMARY; an HTTP timeout does not prove that the run stopped.
Why use this instead of a free converter?
Use a free converter if Markdown alone is enough. This small service combines bounded extraction, chunking, provenance fields, budget-aware delivery and an Apify API/Dataset workflow without running your own server. It does not claim exclusive extraction technology or improved model accuracy.
Example delivered output
Excerpt from our own synthetic cloud QA, not a customer result or sale. An original input <main><h1>Atlas desk lamp 1</h1><p>Power: 8 W. Warranty: 2 years.</p></main> produced:
{"id":"owner-qa-20261017-1","status":"ok","markdown":"# Atlas desk lamp 1\n\nPower: 8 W. Warranty: 2 years.","source_sha256":"e7ea717801af42c9d5e7e632e0586d8280fa720ff1d8325887a3466bde080c10","stats":{"input_bytes":76,"markdown_chars":51,"chunks":2,"duplicate_chunks":0}}
The full row also contains two chunks with heading paths, UTF-16 Markdown ranges, containing-element HTML ranges, chunk hashes and a CONTENT_SCOPE warning. Output does not prove the source is true, licensed or safe to follow.