Taking a screenshot of a website/url using Python is simple. You can make a request to the Clearshot screenshot API using the Python “requests” module.
In the headers, you pass through your Clearshot access token, and set the content type for the relevant response type you want to receive. In the example below, we want a json response. Passing the URL and the json parameter in the body payload will take a screenshot of the URL and return a json formatted response containing the screenshot resource and any other relevant information.
For further documentation, parameters & error codes, check out the full documentation here.