Country/state/city geotargeting
Targeting by Country
curl -x http://account-accountName-pipeline-pipelineName-country-US:[email protected]:7000 https://ipinfo.ioimport requests
proxies = {
'http': 'http://account-accountName-pipeline-pipelineName-country-US:[email protected]:7000',
'https': 'https://account-accountName-pipeline-pipelineName-country-US:[email protected]:7000'
}
url = 'https://ipinfo.io'
response = requests.get(url, proxies=proxies)
print(response.status_code)
print(response.text)const axios = require('axios');
const targetAddress = "http://ipinfo.io/json";
const getProxy = async () => {
return {
proxy: {
host: "account-accountName-pipeline-pipelineName-country-US:[email protected]",
port: 7000
}
}
}
const run = async () => {
const res = await axios(targetAddress, getProxy());
return res.data;
}
(async () => {
var response = await run()
console.log(response);
console.log("DONE!")
})();Targeting by US state
curl -x http://account-accountName-pipeline-pipelineName-country-US-state-KS:[email protected]:7000 https://ipinfo.ioimport requests
proxies = {
'http': 'http://account-accountName-pipeline-pipelineName-country-US-state-KS:[email protected]:7000',
'https': 'https://account-accountName-pipeline-pipelineName-country-US-state-KS:[email protected]:7000'
}
url = 'https://ipinfo.io'
response = requests.get(url, proxies=proxies)
print(response.status_code)
print(response.text)const axios = require('axios');
const targetAddress = "http://ipinfo.io/json";
const getProxy = async () => {
return {
proxy: {
host: "account-accountName-pipeline-pipelineName-country-US-state-KS:[email protected]",
port: 7000
}
}
}
const run = async () => {
const res = await axios(targetAddress, getProxy());
return res.data;
}
(async () => {
var response = await run()
console.log(response);
console.log("DONE!")
})();Targeting by city
curl -x http://account-accountName-pipeline-pipelineName-country-US-state-KS-city-wichita:[email protected]:7000 https://ipinfo.ioimport requests
proxies = {
'http': 'http://account-accountName-pipeline-pipelineName-country-US-state-KS-city-wichita:[email protected]:7000',
'https': 'https://account-accountName-pipeline-pipelineName-country-US-state-KS-city-wichita:[email protected]:7000'
}
url = 'https://ipinfo.io'
response = requests.get(url, proxies=proxies)
print(response.status_code)
print(response.text)const axios = require('axios');
const targetAddress = "http://ipinfo.io/json";
const getProxy = async () => {
return {
proxy: {
host: "account-accountName-pipeline-pipelineName-country-US-state-KS-city-wichita:[email protected]",
port: 7000
}
}
}
const run = async () => {
const res = await axios(targetAddress, getProxy());
return res.data;
}
(async () => {
var response = await run()
console.log(response);
console.log("DONE!")
})();Targeting geolocations with Authenticated IPs
Last updated
