Skip to content

Website Screenshot Engine

Heavstal Screenshot uses the “@heavstaltech/api” module’s engine to capture high-quality screenshots of websites. It supports device emulation for responsive testing.

Note: Due to IP reputation, some sites (like Cloudflare-protected pages) may block the request.

POST /screenshot

FieldTypeRequiredDescription
urlstringYesThe URL to capture.
typestringNo’desktop’ (default), ‘tablet’, or ‘phone’.
const res = await fetch('https://heavstal.com.ng/api/v1/screenshot', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
url: 'https://example.com',
type: 'phone'
})
});

Returns a JSON object containing the hosted image link.

{
"status": "success",
"creator": "HEAVSTAL TECH",
"data": {
"title": "Website Screenshot",
"url": "https://example.com",
"device": "phone",
"provider": "Heavstal API",
"link": "https://files.catbox.moe/xxx.jpg"
}
}