Geolocation
Use an IP address from a specific country.
Web Stealth Proxy allows you to send the request from different countries, by passing the X-WSA-Geo-Locationheader to your request. For example, if you want the targeted website to receive your request from an IP address located in Germany, you just need to pass the X-WSA-Geo-Location: de header to your request. You can check the full list of supported countries below.
Web Stealth Proxy Geolocation 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-Geo-Location: de"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-Geo-Location": "de"
}
}
}).then(function (response) {
console.log(response.data);
}, (err) => {
console.log(err)
})Access to 195 countries is available to Enterprise customers upon request.
Last updated