Take screenshots of protected websites with our screenshot API.
Capture screenshots of websites that require HTTP authentication using the authentication Page option. See Screenshot options for all available screenshot options.
authentication
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 } } }'
Was this page helpful?