API Pillar 03 / Public Web Capture

Public Web Capture & Extraction APIs

Convert public web pages into clean LLM-ready Markdown, deterministic PC and H5 screenshots, discovered URL maps, and bounded multi-page site dossiers backed by PageReceipt.

Planned routes: 4 V1 Flagship: 4 V1 Multi-Upstream: 0 V2 Hard-Source: 0 Snapshot: 2026-11-22

LLM agents and RAG pipelines need compact, deterministic text stripped of navigation boilerplate. PageReceipt escalates from fast HTTP extraction to rendered viewport capture only when JavaScript rendering is required, keeping latency and unit cost predictable.

Bounded site dossiers cap page budget, return per-URL HTTP status and content hashes, and operate strictly on public pages accessible without user authentication.

Showing 4 of 4 planned endpoints

Planned Route & Capability Stage Engine & Friction Tier Target Fields & MCP Tool
POST /v1/web/markdown
Page Extraction · URL to LLM Markdown — Extract clean, boilerplate-free Markdown, canonical URL resolution, and HTTP metadata from any public web page.
V1 Flagship PageReceipt Tier 1 · First-Party Capture
urlfinal_urlhttp_statustitle
MCP: web_to_markdown
POST /v1/web/screenshot
Visual Capture · Desktop (PC) & Mobile (H5) Screenshot — Capture deterministic desktop or mobile viewport PNG screenshots alongside HTTP status and SHA-256 content hashes.
V1 Flagship PageReceipt Tier 2 · Rendered Viewport
urlviewportfull_pageimage_url
MCP: web_screenshot
POST /v1/web/map
Site Discovery · Domain Site Map — Enumerate public URLs across a domain from sitemaps and internal links within a predictable page ceiling.
V1 Flagship PageReceipt Tier 1 · First-Party Crawl
originurls[]sitemaps_found[]total_discovered
MCP: web_map
POST /v1/web/dossier
Multi-Page Research · Bounded Site Dossier — Assemble a structured multi-page snapshot of a target site (homepage, pricing, docs, changelog) in one bounded API call.
V1 Flagship PageReceipt Tier 2 · Bounded Research Run
originpages_captured[]pricing_urls[]docs_urls[]
MCP: web_site_dossier

Operational Specification

Target Fields, Friction Tiers & Failover Policies

Planned Endpoint Friction Tier Primary Response Fields Failover & Compliance Note
/v1/web/markdown Tier 1 · First-Party Capture url, final_url, http_status, title, markdown, word_count, captured_at Fast HTTP readability path with automatic headless browser escalation for JS-rendered pages.
/v1/web/screenshot Tier 2 · Rendered Viewport url, viewport, full_page, image_url, content_hash, http_status, captured_at Managed headless rendering pool with deterministic viewport retries and timeout isolation.
/v1/web/map Tier 1 · First-Party Crawl origin, urls[], sitemaps_found[], total_discovered, bounded_limit Sitemap-first discovery falling back to bounded internal link extraction.
/v1/web/dossier Tier 2 · Bounded Research Run origin, pages_captured[], pricing_urls[], docs_urls[], summary_markdown, evidence_hashes[] Budget-bounded capture run returning per-page receipts and content hashes for agent research.

Questions & Answers

Web Capture API Questions

How does /v1/web/markdown handle JavaScript-heavy web pages?

PageReceipt attempts fast static HTML retrieval and boilerplate extraction first. When a target page requires client-side hydration, execution escalates to a managed headless browser pool to render final DOM text before converting it to clean LLM-ready Markdown.

What viewports does /v1/web/screenshot support?

The planned screenshot endpoint supports both Desktop (PC) and Mobile (H5) viewport presets with optional full-page capture, returning the final resolved URL, HTTP status code, capture timestamp, and SHA-256 content hash.

How does /v1/web/dossier bound latency and cost?

Bounded site dossiers enforce an explicit maximum page count and crawl depth per request, prioritizing high-signal public pages such as homepage, pricing, documentation, and changelog routes while attaching per-URL evidence hashes.

Can Web Capture endpoints fetch paywalled or login-protected pages?

No. PageReceipt captures publicly reachable HTTP/HTTPS pages only. Cookie-authenticated portals, private dashboards, and CAPTCHA bypass routines are strictly outside DataRoute scope.