๐ Snapshot Site API: Capture High-Resolution Website Screenshots Easily

๐ Overview
The Snapshot Site API enables developers to generate high-quality screenshots of websites programmatically. Whether you need full-page captures or specific viewports, this API helps automate visual monitoring, SEO auditing, and thumbnail generation with minimal setup.
โ Why Use the Snapshot Site API?
โข ๐ท Automatically generate high-resolution screenshots of any website.
โข ๐ ๏ธ Ideal for SEO tools, preview generators, UI testing, and archiving.
โข โ๏ธ Highly customizable with options for dimensions, delay, and full-page mode.
โข ๐ก Inject JavaScript or hide elements dynamically before rendering.
๐คย API Endpoint and Example Request
Node Js
const http = require('https');
const options = {
method: 'POST',
hostname: 'screenshot-snapshot-site2.p.rapidapi.com',
port: null,
path: '/api/v1/screenshot',
headers: {
'x-rapidapi-key': '[CUSTOMER-RAPIDAPI-KEY]',
'x-rapidapi-host': 'screenshot-snapshot-site2.p.rapidapi.com',
'Content-Type': 'application/json',
Accept: 'application/json'
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({
url: 'https://wikipedia.org',
format: 'png',
width: 1280,
height: 720,
delay: 0,
fullSize: false,
hideCookie: false,
hide: '#js-link-box-en, #js-link-box-fr'
}));
req.end();๐ง Parameters Reference
- urlย (string, required): Target website URL
- formatย (string): “png”, “jpeg”, or “pdf”
- widthย (integer): 100โ8000
- heightย (integer): 100โ20000
- delayย (integer): 0โ10
- fullSizeย (boolean): Capture full page or just viewport
- hideCookieย (boolean): Hide cookie banners
- hideย (string): CSS selectors to hide
- javascriptCodeย (string): JS code to inject
๐ Integration Tips
- Mask sensitive elements using ‘hide’.
- Use delay or JavaScript injection for dynamic content.
๐ก Use Cases
- SEO preview thumbnails
- Competitor landing page archiving
- Campaign change monitoring
- Dynamic documentation and UAT evidence
๐ง Final Thoughts
Snapshot Site API is a powerful tool to automate website capture with precision. Its flexibility and simplicity make it perfect for developers, analysts, and marketers.