Screenshot API (1.0.0)

Download OpenAPI specification:Download

URL: https://lab.rahb.ca/ License: MIT

This project provides a simple API service that uses Selenium and Google Chrome to take screenshots of websites. It's powered by Flask and can be containerized using Docker for ease of deployment.

For more information and source code, please visit the GitHub repository: Selenium Screenshots.

Take a screenshot of a website.

Make a GET request to /screenshot endpoint with the required url parameter and optional viewport, format, and delay parameters to capture a screenshot. Requires API authentication using a bearer token.

Authorizations:
bearerAuth
query Parameters
url
required
string

The URL of the website to screenshot.

viewport
string

The viewport size. Default is '1440x900'. Useful for capturing screenshots of specific sizes.

format
string

The screenshot format. Supports PNG, JPG. Default is 'PNG'. Choose between the two image formats for different use cases.

delay
integer

The delay before the screenshot is taken to allow the page to load. Default is '0'. Useful for ensuring that dynamic content has loaded.

Responses