Overview
Capture a rendered screenshot of any webpage
Credits
1 credit per call
Providers
Anchor
SDK Method
client.screenshot(...)
Parameters
urlRequiredstring
URL to capture.
widthnumber (default: 1280)
Viewport width.
heightnumber (default: 720)
Viewport height.
formatselect (default: png)
Output format.
PNG
JPG
WebP
full_pageboolean (default: false)
Capture full scrollable page.
Example Response
{
"success": true,
"data": {
"image_base64": "iVBORw0KGgoAAAANSUhEUg...(base64 image data)",
"format": "png",
"width": 1280,
"height": 720,
"full_page": false,
"size_bytes": 6325
},
"metadata": {
"provider_used": "anchor",
"providers_tried": [
"anchor"
],
"mode_used": null,
"response_time_ms": 6753,
"request_id": "req_70d8a7af"
},
"credits_used": 1
}Get Started
Use this API through the O-mega platform. Create an API key in your dashboard, then call the endpoint with your key in the Authorization header.