Capture screenshots of websites that require HTTP authentication using the authentication Page option. See Screenshot options for all available screenshot options.

Example

curl --request POST 'https://api.doczilla.app/v1/screenshot' \
  --header 'Authorization: Bearer <your token>' \
  --header 'Content-Type: application/json' \
  --output 'website.png' \
  --data '{
    "page": {
      "url": "https://httpbin.org/basic-auth/Doczilla/screenshot",
      "authentication": {
        "username": "Doczilla",
        "password": "screenshot"
      }
    },
    "screenshot": {
      "viewport": {
        "width": 500,
        "height": 250
      }
    }
  }'

Output

Was this page helpful?