Screenshotlayer is a free REST API built to deliver high quality URL to PNG, JPEG & GIF website screenshots and thumbnails through a simple API interface. Its architecture is focused on ease of use and integration, making for a high level of compatibility with any application, framework and programming language.
The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.
The Screenshotlayer Python Sample Code by Screenshotlayer presents API communication, offering encode URL and secret key generation. Parameters from a captured image via cnn.com include a full page with specific width, format, and css url.
The Screenshotlayer Ruby Sample Code by Screenshotlayer demonstrates how to take screenshots from URLs by interacting with the API. By setting access key, setting secret keyword, and defining parameters, developers can receive a captured image from cnn.com
The Screenshotlayer PHP Sample Code by Screenshotlayer demonstrates API usage, providing access key, key word set up, and URL encode. An image capture should be the response developers can obtain after experimenting with the example.