Screenshot API Use Case
Convert Any URL to PDF Instantly
Generate pixel-perfect PDFs from any URL. Perfect for invoices, reports, documentation, and archiving.
Key Features
Code Example
<?php
$response = Http::withHeaders([
'X-API-Key' => 'gsc_your_api_key',
])->post('https://goscreenapi.com/api/v1/screenshot', [
'url' => 'https://example.com',
'format' => 'png',
'full_page' => true,
'async' => true,
'webhook_url' => 'https://your-server.com/webhook',
]);
$data = $response->json();
echo $data['request_id'];
Frequently Asked Questions
Set format=pdf in your request. The API returns a URL to the generated PDF file.
Yes. Use the css parameter to inject styles — useful for hiding headers, footers, or cookie banners.
Yes. Set full_page=true to capture the entire scrollable page as a PDF.