ScreenshotApi-Js is a simple, promise based Node.js library for making screenshot requests with www.screenshotapi.io.
npm install screenshotapi --save
Or if rather than download the screenshot to a local file you prefer to retrieve the URL where your screenshot capture is hosted, use the below function. Note that the S3 URL will only last for 72 hours, after which it will be automatically removed, so you will need to download it for permanent storage.
Debug output is disabled by default. To enable debug output to see status while screenshot requests are progressing, use: