Take website screenshots with one line of code. No browser, no Puppeteer, no infrastructure.
npm install grabshotconstGrabShot=require('grabshot');constclient=newGrabShot('your-api-key');// Get screenshot as Bufferconstimage=awaitclient.screenshot('https://github.com');// Save to fileawaitclient.screenshotToFile('https://github.com','github.png');Get your free API key at grabshot.dev/dashboard (25 screenshots/month free).
awaitclient.screenshot('https://example.com',{width: 1440,// Viewport width (100-4000)height: 900,// Viewport height (100-4000)fullPage: true,// Capture entire pagedelay: 2000,// Wait 2s before captureformat: 'jpeg',// png, jpeg, or webpquality: 85,// JPEG/WebP quality (1-100)device: 'mobile',// mobile or tablet emulationdarkMode: true,// Dark modeselector: '#hero',// Capture specific elementretina: true,// 2x resolutionblockAds: true,// Block adsframe: 'macbook',// Device frame: iphone, macbook, browsercleanup: true,// AI-powered popup/cookie cleanup (paid)});| Plan | Screenshots/mo | Price |
|---|---|---|
| Free | 25 | $0 |
| Starter | 1,000 | $9/mo |
| Pro | 10,000 | $29/mo |
| Business | 50,000 | $79/mo |
MIT