Screenshot
A PNG of any page, viewport or full length.
BrowsersFree demo, no keyLong-running: consider /v1/jobs
POST/v1/screenshot/3 credits
Request
curl -X POST https://api.hushsearch.io/v1/screenshot/ \
-H "X-API-Key: hs_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/",
"full_page": false
}'Renders the page in a browser and returns the image as base64.
Parameters
| Field | Type | Default | Notes |
|---|---|---|---|
url | string | — | Required. Up to 2,048 characters. |
full_page | boolean | false | Capture the full scroll height instead of the viewport. |
Response
{
"url": "https://example.com/",
"image_base64": "iVBORw0KGgo…",
"full_page": false,
"credits_used": 3,
"credits_remaining": 497,
"response_time_ms": 2300
}Decode image_base64 to get the PNG bytes. The free demo always captures the viewport.