
Screenshot APIs have revolutionized the way developers capture and process web content. In this comprehensive guide, we'll walk you through everything you need to know to get started with Screenshotty.
Traditional screenshot methods often fall short when dealing with modern web applications. Screenshot APIs solve common problems like:
Let's get you up and running in just a few minutes. First, sign up for a free account and grab your API key from the dashboard.
Here's a simple example using cURL:
curl -X POST https://api.screenshotty.link/v1/capture \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "viewport": {"width": 1920, "height": 1080}}'
If you're working with Node.js, here's a quick example:
const response = await fetch('https://api.screenshotty.link/v1/capture', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
url: 'https://example.com',
viewport: { width: 1920, height: 1080 }
})
});
const screenshot = await response.json();
console.log(screenshot.imageUrl);
Screenshotty offers many advanced options to customize your screenshots:
To get the most out of your screenshot API:
Now that you've captured your first screenshot, explore our advanced features like batch processing, custom JavaScript injection, and webhook integrations.
Check out our [API documentation](/docs) for complete details on all available options.