A simple and effective way to extract a screenshot from a website.
Screenshotty removes you the hassle of dealing with browser automation and extract screenshots from the websites in the easiest way possible (through a REST API).
You can make requests in either POST or GET HTTP Methods, whatever suits you the best.
You can make a GET request to https://screenshotty1.p.rapidapi.com/api/v1/screenshot
passing all the parameters you’ll need as querystring parameters.
Let’s imagine you want to take a Screenshot from Google’s main home page and receive it as a JSON url.
So you’ll insert the following parameter to the API:
url=https://google.com
responseType=url
The request would be:
curl 'https://screenshotty1.p.rapidapi.com/api/v1/screenshot?url=https://google.com&responseType=url' --header 'X-RapidAPI-Key: <Your API Key>'
Your response would be something like:
{"url":"https://screenshotty.us-east-1.linodeobjects.com/screenshots/e3V4_Ir1qYHW3tYrY8K2t4cH8rDYEsPQvjo5mGnIJj.png"}
If you wish to receive the image binary file directly, you can also omit the responseType=url
parameter or even use: responseType=file