HTML
Screenshot HTML to image
Capture a screenshot of an HTML document.
Options
- format: Output image format (png, jpeg)
- width: Viewport width in pixels (default: 1920)
- full_page: Capture full scrollable page (default: false)
post/html/to-image
Request
- Base URL: https://api.filegraph.ai (the document declares no server; this is the origin it was published from)
- URL: https://api.filegraph.ai/html/to-image
- Auth: API key in header X-API-Key
Query parameters
formatstring
widthinteger
full_pageboolean
Response
Successful Response
Example response
{
"content_base64": "JVBERi0xLjQK...",
"content_type": "application/pdf",
"filename": "output.pdf",
"size_bytes": 102400
}Changes
No recorded changes to this operation across all 1 revision of this API.