Output formats
The scrape endpoint returns content in five formats. Choose with theoutput 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
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, andjavascript: URLs stripped. Event-handler and tracking attributes are removed.
Response