authentication Page option.
See Screenshot options for all available screenshot options.
Example
Output

Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Take screenshots of protected websites with our screenshot API.
authentication Page option.
See Screenshot options for all available screenshot options.
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
}
}
}'
import Doczilla from '@doczilla/node'
const doczilla = new Doczilla('<your token>')
const screenshot = await doczilla.screenshot.direct({
page: {
url: 'https://httpbin.org/basic-auth/Doczilla/screenshot',
authentication: {
username: 'Doczilla',
password: 'screenshot'
}
},
screenshot: {
viewport: {
width: 500,
height: 250
}
}
})

Was this page helpful?