Log into the client dashboard, capture the full page, generate a PDF, and record the interaction as
an MP4 — all in a single API call. Assets are pushed to your Google Drive folder as soon as the job finishes.
# Screenshot + PDF + video for a client dashboard
curl -X POST https://api.screenshotcenter.com/v1/screenshot \
-H "X-API-KEY: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://client-dashboard.example.com/overview",
"steps": [
{ "command": "click", "selector": "#login-link" },
{ "command": "type", "selector": "#email", "value": "[email protected]" },
{ "command": "type", "selector": "#password", "value": "secret" },
{ "command": "click", "selector": "button[type=submit]" },
{ "command": "wait", "value": 2000 },
{ "command": "screenshot" }
],
"size": "page",
"pdf": true,
"video": true,
"video_format": "mp4",
"hide_popups": true,
"apps": [42]
}'
import { ScreenshotCenterClient } from 'screenshotcenter';
const client = new ScreenshotCenterClient({ apiKey: 'YOUR_API_KEY' });
const shot = await client.screenshot.create({
url: 'https://client-dashboard.example.com/overview',
steps: [
{ command: 'click', selector: '#login-link' },
{ command: 'type', selector: '#email', value: '[email protected]' },
{ command: 'type', selector: '#password', value: 'secret' },
{ command: 'click', selector: 'button[type=submit]' },
{ command: 'wait', value: 2000 },
{ command: 'screenshot' },
],
size: 'page',
pdf: true,
video: true,
video_format: 'mp4',
hide_popups: true,
apps: [42], // 42 = Google Drive app config ID
});
const result = await client.waitFor(shot.id);
console.log(result.screenshot_url);
console.log(result.pdf_url);
console.log(result.video_url);
from screenshotcenter import ScreenshotCenterClient
client = ScreenshotCenterClient(api_key="YOUR_API_KEY")
shot = client.screenshot.create(
url="https://client-dashboard.example.com/overview",
steps=[
{"command": "click", "selector": "#login-link"},
{"command": "type", "selector": "#email", "value": "[email protected]"},
{"command": "type", "selector": "#password", "value": "secret"},
{"command": "click", "selector": "button[type=submit]"},
{"command": "wait", "value": 2000},
{"command": "screenshot"},
],
size="page",
pdf=True,
video=True,
video_format="mp4",
hide_popups=True,
apps=[42], # 42 = Google Drive app config ID
)
result = client.wait_for(shot["id"])
print(result["screenshot_url"])
print(result["pdf_url"])
print(result["video_url"])
use ScreenshotCenter\Client;
$client = new Client(getenv('SCREENSHOTCENTER_API_KEY'));
$shot = $client->screenshot->create('https://client-dashboard.example.com/overview', [
'steps' => [
['command' => 'click', 'selector' => '#login-link'],
['command' => 'type', 'selector' => '#email', 'value' => '[email protected]'],
['command' => 'type', 'selector' => '#password', 'value' => 'secret'],
['command' => 'click', 'selector' => 'button[type=submit]'],
['command' => 'wait', 'value' => 2000],
['command' => 'screenshot'],
],
'size' => 'page',
'pdf' => true,
'video' => true,
'video_format' => 'mp4',
'hide_popups' => true,
'apps' => [42], // 42 = Google Drive app config ID
]);
$result = $client->waitFor($shot['id']);
echo $result['screenshot_url'] . PHP_EOL;
echo $result['pdf_url'] . PHP_EOL;
echo $result['video_url'] . PHP_EOL;