Comment on page
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-Location
header 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.cURL
NodeJS
Python
PHP
Go
.NET
Ruby
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)
})
import requests
USERNAME = '<YOUR-PROXY-USERNAME>'
PASSWORD = '<YOUR-PROXY-PASSWORD>'
TARGET_URL = 'https://httpbin.org/get'