🚀 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.