Screenshot API Use Case
Generate Link Previews and OG Images
Automatically generate Open Graph images, link previews, and social media thumbnails from any URL.
Key Features
Code Example
const res = await fetch('https://goscreenapi.com/api/v1/screenshot', {
method: 'POST',
headers: {
'X-API-Key': 'gsc_your_api_key',
'Content-Type': 'application/json',
},
body: JSON.stringify({
url: 'https://example.com',
format: 'png',
full_page: true,
async: true,
webhook_url: 'https://your-server.com/webhook',
}),
});
const data = await res.json();
console.log(data.request_id);
Frequently Asked Questions
Standard OG image size is 1200×630. Set width=1200 and height=630 in your request.
Yes. Set cache_ttl to cache the screenshot for hours or days.
WebP for best compression, PNG for maximum quality, JPEG for broad compatibility.