- Full page content: Get raw HTML for custom processing
- Readable text: Convert pages to clean markdown format
- Visual records: Capture screenshots for monitoring or archival
- Link extraction: Get all URLs from the page for further crawling
You can combine multiple formats in a single request. All specified formats will be included in the response.
Parameters
formats
formats
Choose which types of content you want in your response. You can request multiple formats at once, and each will be included in the result.Available formats:
html- The full HTML source code of the page- Best for: Custom parsing, preserving exact page structure, accessing all DOM elements
markdown- Clean, readable markdown version of the page- Best for: Content analysis, LLM processing, human-readable output
Usage
Single HTML format
Request one format type - html (default). Best for:- Custom HTML parsing
- Preserving exact page structure
- Accessing all DOM elements and attributes
- Archival purposes
Multiple formats
Combine multiple formats to get different data representations:Markdown format
Convert the page to clean, readable markdown. Best for:- Clean text extraction
- Content analysis
- LLM processing
- Human-readable output:
Example response
When formats are specified, all requested data is included in the response. The response includes:- data.html: Raw HTML if requested
- data.markdown: Converted markdown if requested
- data.screenshot: Base64-encoded PNG if requested
- data.links: Array of extracted URLs if requested
- data.parsing: Structured data if parsing was used
- metadata: Execution details and formats included:
Best practices
Format selection
Choose formats based on your needs:- Use
htmlwhen you need full DOM access - Use
markdownfor clean text and content analysis - Use
screenshotfor visual verification - Use
linksfor discovering URLs to crawl
Performance considerations
- Each format adds processing time
- Screenshots require rendering and are slower
- HTML and markdown are faster to generate
- Request only needed formats for optimal performance

