Clearshot makes taking screenshots of websites/URLs with Javascript/Node quick and painless. In the example below, after requiring the request node package, we make a POST request to the Clearshot screenshot API endpoint. Get your access token and pass through the URL you want to screenshot along with the response type you would prefer.
For further documentation, parameters & error codes, check out the full documentation here.