Screenshots
Looking for images rather than HTML code? Use the X-WSA-Render custom header.
By setting the X-WSA-Render: screenshotcustom header the result will return a JSON object containing the base64 encrypted image.
Web Stealth Proxy Screenshot Examples
curl -k -x "http://stealthproxy.webscrapingapi.com:80" -U "<YOUR-PROXY-USERNAME>:<YOUR-PROXY-PASSWORD>" -X GET "https://httpbin.org/get" --header "X-WSA-Render: screenshot"const axios = require('axios');
const https = require('https');
const instance = axios.create({
httpsAgent: new https.Agent({
rejectUnauthorized: false
})
});
instance.get('https://httpbin.org/get', {
proxy: {
host: 'stealthproxy.webscrapingapi.com',
port: 8000,
auth: {
username: '<YOUR-PROXY-USERNAME>',
password: '<YOUR-PROXY-PASSWORD>'
},
headers: {
"X-WSA-Render": "screenshot"
}
}
}).then(function (response) {
console.log(response.data);
}, (err) => {
console.log(err)
})Last updated