To get a screenshot image, you must first submit a request for the screenshot, wait a few seconds, and then try to retrieve the screenshot in a separate request. In order to get high quality screenshots that match what you see as a user, we use a real web browser through Selenium / Webdriver. As such it takes 6 to 12 seconds to capture a screenshot.
A request is first made to submit the URL you want to capture, along with all screenshot capture options. We then return a unique key which you can use to retrieve the screenshot request. Subsequently, you call our retrieve web service with this key until the request is available. When it is, you download the screenshot and store it on your server.
Please see our REST API and Code Samples for more information.