Skip to main content

Output formats

The scrape endpoint returns content in five formats. Choose with the output field; markdown is the default.

Markdown

The default. Raw HTML is cleaned (scripts, styles, nav, ads, trackers removed), run through a readability extraction, and converted to ATX-style Markdown.
Response

Screenshot

Base64-encoded PNG (or JPEG). Visual outputs automatically enable media/CSS loading for correct rendering.
Response
Decode the base64 payload to save the file: echo "$B64" | base64 -d > page.png.

PDF

Base64-encoded PDF. Uses native page.pdf() when available, with a screenshot-to-PDF fallback for Firefox-based engines (Camoufox).
Response

CSV

Extracts <table> elements to CSV strings, honoring rowspan/colspan. Multiple tables are separated by blank lines.
Response

Clean HTML

Sanitized HTML with scripts, styles, ads, cookie banners, social buttons, trackers, and javascript: URLs stripped. Event-handler and tracking attributes are removed.
Response