Static web page to text, Markdown, code and tables
extractRead public static HTML, Markdown or plain text. HTML includes code, tables, links, heading IDs, image alt text and unverified author/date provenance. Optional exact HTML section ID. Default 20,000 output characters, maximum 100,000; input 2 MiB. No JavaScript rendering, authentication or paywall access. Empty pages, invalid sections, browser challenges and execution errors are uncharged. Use to read docs or articles into context. Example: url=https://example.com, maxChars=20000, format=text, section=retry-policy. Price $0.002/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only; not marked read-only because each call is charged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute http(s) URL of the page to fetch | |
| format | No | Returned representation: text (default), markdown, or both. HTML structured details are included in every format; Markdown/plain sources have empty details. | |
| section | No | Optional exact visible HTML ID within primary content, 1-500 characters. Heading scope includes subsections until next same/higher-level heading; section/article/main/div scope is its subtree. Missing/ambiguous/unsupported targets fail uncharged. URL fragments alone do not select a section. | |
| maxChars | No | Maximum characters of body text to return (500-100000, default 20000) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| lang | Yes | ||
| text | No | ||
| links | Yes | ||
| title | Yes | ||
| format | Yes | ||
| status | Yes | ||
| tables | Yes | ||
| section | Yes | Null for full primary-content reading. Otherwise the explicitly requested scope; title/description/canonical remain page-level metadata. Heading scope ends before the next same/higher-level heading, including nested subsections; container scope is its subtree. | |
| finalUrl | Yes | ||
| headings | Yes | ||
| markdown | No | ||
| warnings | Yes | ||
| canonical | Yes | ||
| fetchedAt | Yes | ||
| truncated | Yes | Input or requested primary representation is incomplete. Structured detail limits are reported separately in warnings. | |
| codeBlocks | Yes | ||
| hashFormat | Yes | ||
| textLength | Yes | Full extracted text length before the character cap, within the input limit. | |
| contentHash | Yes | ||
| contentType | Yes | ||
| description | Yes | ||
| linkBaseUrl | Yes | Effective source-derived HTTP(S) base for links: the first supported HTML base href outside inert/foreign subtrees, otherwise finalUrl. Credentials and non-HTTP(S) base values are ignored with a warning. HTML links/canonical use this base; raw Markdown keeps relative syntax and can be resolved using this field. No linked resource is fetched. This static interpretation does not evaluate scripts or Content Security Policy. | |
| sourceFormat | Yes | Source interpretation. Markdown is identified by text/markdown, or a .md/.markdown final path served as text/plain (warned). Markdown syntax is retained verbatim within the cap, not converted to HTML or parsed for structured details; text also retains that syntax. HTML section IDs are unsupported for Markdown/plain text. | |
| sourceMetadata | Yes | Page-level source declarations, not verified authorship or freshness. Head author/Open Graph date tags and bounded direct Schema.org JSON-LD Article/WebPage-like nodes only; exact-URL matches preferred, otherwise only one identity-free candidate. Author @id references resolve only to unambiguous local Person/Organization names, with both paths recorded. No external context/reference fetching or general JSON-LD expansion. Separate 2000-character value+provenance budget; 5 authors/10 dates. Original date strings are not normalized. Empty for Markdown/plain sources; unrelated entities and ambiguous nodes are omitted with warnings. | |
| contentSelection | Yes |